cascade:setHash set hash
https://ns.cascadeprotocol.org/cascade#setHash
Of a snapshot, the order-free hash of the set of files the writer held when its act ended, every file of it but the act's own file, which the snapshot's name binds instead: Bitcoin Core's MuHash3072 over one member per file, the file's path relative to the pod in UTF-8, a 0x00 byte and the SHA-256 of its bytes, written as the 64 lower-case hexadecimal digits of its SHA-256 digest in byte order, where Bitcoin Core writes them reversed. Two writers hold one set when the set hashes of what each holds agree.
- Type
owl:DatatypeProperty- Domain
cascade:Snapshot- Range
xsd:string- Shapes
cascade:SnapshotShape, on eachcascade:Snapshot: datatypexsd:string; pattern"^[0-9a-f]{64}$"; minCount1; maxCount1A snapshot carries one set hash, 64 lower-case hexadecimal digits.
Where it comes from and what uses it
- See also
- https://github.com/bitcoin/bitcoin/blob/a773e1e33b349dc819b5a0edc1c7a4839dc73b48/src/crypto/muhash.cpp, https://cseweb.ucsd.edu/~mihir/papers/inchash.pdf
- Rules
- N14. Every act leaves one snapshot, chained to the writer's previous one runtime/naming.feature
- S3. A sync's snapshot merges every head the writer holds runtime/sync.feature
- S5. Two writers hold one set when the set hashes of what each holds agree, whatever order the files arrived in runtime/sync.feature