10.02.2016 Views

Bitcoin and Cryptocurrency Technologies

1Qqc4BN

1Qqc4BN

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 1.10 GoofyCoin ​coin. ​Shown here is a coin that’s been created (bottom) <strong>and</strong> spent twice<br />

(middle <strong>and</strong> top).<br />

To summarize, the rules of GoofyCoin are:<br />

●<br />

●<br />

●<br />

Goofy can create new coins by simply signing a statement that he’s making a new coin with a<br />

unique coin ID.<br />

Whoever owns a coin can pass it on to someone else by signing a statement that saying, “Pass<br />

on this coin to X” (where X is specified as a public key)<br />

Anyone can verify the validity of a coin by following the chain of hash pointers back to its<br />

creation by Goofy, verifying all of the signatures along the way.<br />

Of course, there’s a fundamental security problem with GoofyCoin. Let’s say Alice passed her coin on<br />

to Bob by sending her signed statement to Bob but didn’t tell anyone else. She could create another<br />

signed statement that pays the very same coin to Chuck. To Chuck, it would appear that it is perfectly<br />

valid transaction, <strong>and</strong> now he’s the owner of the coin. Bob <strong>and</strong> Chuck would both have valid‐looking<br />

claims to be the owner of this coin. This is called a double‐spending attack — Alice is spending the<br />

same coin twice. Intuitively, we know coins are not supposed to work that way.<br />

In fact, double‐spending attacks are one of the key problems that any cryptocurrency has to solve.<br />

GoofyCoin does not solve the double‐spending attack <strong>and</strong> therefore it’s not secure. GoofyCoin is<br />

simple, <strong>and</strong> its mechanism for transferring coins is actually very similar to <strong>Bitcoin</strong>, but because it is<br />

insecure it won’t cut it as a cryptocurrency.<br />

ScroogeCoin<br />

To solve the double‐spending problem, we’ll design another cryptocurrency, which we’ll call<br />

ScroogeCoin. ScroogeCoin is built off of GoofyCoin, but it’s a bit more complicated in terms of data<br />

structures.<br />

44

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!