Skip to content
Alpha: see what works today →
Menu

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 each cascade:Snapshot: datatype xsd:string; pattern "^[0-9a-f]{64}$"; minCount 1; maxCount 1 A 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