Last active
June 12, 2022 07:45
-
-
Save jeremyorme/2894259577f0d02ff7287f6fcfbf2663 to your computer and use it in GitHub Desktop.
Add clock validations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
check_signature(IEntryBlockList.publicKey, IEntryBlockList.signature, IEntryBlock) | |
check_not_empty(IEntryBlockList.entryBlockCids); | |
check_not_empty(IEntryBlock[last].entries) | |
check_size(IEntryBlock[!last].entries, IStoreOptions.entryBlockSize) | |
check_has_write_access(IEntryBlockList.ownerIdentity, IStoreManifest.ownerIdentity) | |
check_max_clock(IEntry.clock, IEntryBlockList.clock) | |
check_greater than(IEntry[N].clock, IEntry[N-1].clock) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment