Skip to content

Instantly share code, notes, and snippets.

@jeremyorme
Last active June 12, 2022 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeremyorme/2894259577f0d02ff7287f6fcfbf2663 to your computer and use it in GitHub Desktop.
Save jeremyorme/2894259577f0d02ff7287f6fcfbf2663 to your computer and use it in GitHub Desktop.
Add clock validations
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