Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What determines coin uniqueness? #3

Open
jhb opened this issue Jan 23, 2013 · 2 comments
Open

What determines coin uniqueness? #3

jhb opened this issue Jan 23, 2013 · 2 comments

Comments

@jhb
Copy link
Member

jhb commented Jan 23, 2013

What determines that a coin is unique?

hash of:

  • serial
  • serial + signature
  • whole payload
  • serial + mint_key_id
  • ....
@nilstoedtmann
Copy link
Member

See also

On 01/23/2013 01:45 PM, Joerg Baach wrote:

If I follow your thoughts then we need the serials to be so long to be practical collision free (if you user proper randomness).

Of course, as per Chaum. See https://github.com/OpenCoin/opencoin-memoranda/blob/master/opencoin-v3.txt#L326

    serial = base64(128bit random number) [[This random
                          value is generated by clients. A high entropy
                          (crypto grade quality) is important.]]

so maybe storing the serial is enough?

👍

The serial (or maybe serial+mind_key_id) should be the unique coin identifier. And i do not see any protocol-side reasons to store anything else in the DSDB [1].

There might be other reasons to store whole coins, e.g. to harden the DSDB against manipulation. But that is a issuer-side implementation/operations question and not relevant to the protocol.


[1] For i minute i was thinking that there might be a very different reason to store whole coins at the DSDB: they could serve as issuer-signed reject reasons in case of double-spending attempts. But in most cases, the double-spend coin will be identical to the originally accepted one; also if we want to sign messages, the signatures needed to be time-stamped - so this would not really work ...

@jhb
Copy link
Member Author

jhb commented Jan 27, 2013

In the last conf call we decided that for now its the serial only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants