Last active
June 10, 2022 16:29
-
-
Save jeremyorme/e2eac6f53fa2138892b6623870d2f25d to your computer and use it in GitHub Desktop.
Remaining self-contained 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
validate IStoreManifest { | |
ownerIdentity: ID; | |
} | |
validate IEntry { | |
clock: Clock; | |
} | |
validate IEntryBlockList { | |
ownerIdentity: ID; | |
clock: Clock; | |
} | |
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment