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

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)

Calculates the dartIndex of a #key

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 don't exist should have the value null