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

Use nonce instead of timestampin "9.1 Last-Write Replace" #80

Closed
oed opened this issue Jul 30, 2021 · 4 comments
Closed

Use nonce instead of timestampin "9.1 Last-Write Replace" #80

oed opened this issue Jul 30, 2021 · 4 comments

Comments

@oed
Copy link
Contributor

oed commented Jul 30, 2021

The use of timestamp in the DAG-JOSE header can be problematic. If a users computer has a miscsonfigured system clock they may end up with a timestamp that is in the future and it will be impossible to replace the object for a (long) while. Also, timestamp is not a registered header property in IANA. We could however use nonce where the highest nonce would always be the one that's selected to mitigate these issues.

Note: we do something similar in the suggested DID Publish stream type in Ceramic. We also use the URL property to indicate which object is being replaced.

@csuwildcat
Copy link
Member

@oed good point, was just looking for highest incremented change anyway, so whatever standard value format is best seems fine.

@bumblefudge
Copy link
Contributor

bumblefudge commented Aug 4, 2021

by "nonce" do you mean a "cnonce" or just a monotonic counter?

@oed
Copy link
Contributor Author

oed commented Aug 5, 2021

@bumblefudge just an incrementing number similar to the transaction nonce in ethereum for example.

@csuwildcat
Copy link
Member

Has been amended in the current spec, closing as completed.

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

3 participants