tagion.dart.DARTBasic

Basic fuinction and types used in the DART database

Members

Aliases

DARTIndex
alias DARTIndex = Typedef!(Buffer, null, BufferType.HASHPOINTER.stringof)

This is the raw-hash value of a message and is used when message is signed.

Functions

binaryHash
immutable(Buffer) binaryHash(const(HashNet) net, const(ubyte[]) h1, const(ubyte[]) h2)
Undocumented in source.
binaryHash
Fingerprint binaryHash(const(HashNet) net, const(Fingerprint) h1, const(Fingerprint) h2)
Undocumented in source. Be warned that the author may not have intended to support it.
dartIndex
immutable(DARTIndex) dartIndex(const(HashNet) net, const(Document) doc)
immutable(DARTIndex) dartIndex(const(HashNet) net, T value)

Calculates the fingerprint used as an index for the DART Handles the hashkey '#' and stub used in the DART

dartKey
DARTIndex dartKey(const(HashNet) net, const(char[]) name, T val)
Undocumented in source. Be warned that the author may not have intended to support it.
sparsed_merkletree
Buffer sparsed_merkletree(HashNet net, const(Buffer[]) table)

Calculates the sparsed Merkle root from the branch-table list The size of the table must be KEY_SPAN Leaves in the branch table which doen't exist should have the value null

sparsed_merkletree
Fingerprint sparsed_merkletree(HashNet net, const(Fingerprint[]) table, Flag!"flat" flat)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta