Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateIdGenesis ¶
func CalculateIdGenesis(claimKOp *claims.ClaimKeyBabyJub, extraGenesisClaims []merkletree.Entrier) (*core.ID, error)
CalculateIdGenesis calculates the ID given the input claims using memory Merkle Trees. Adds the given parameters into an ephemeral MerkleTree to calculate the MerkleRoot. ID: base58 ( [ type | root_genesis | checksum ] ) where checksum: hash( [type | root_genesis ] ) where the hash function is Poseidon
func CalculateIdGenesisMT ¶
func CalculateIdGenesisMT(clt *merkletree.MerkleTree, rot *merkletree.MerkleTree, claimKOp *claims.ClaimKeyBabyJub, extraGenesisClaims []merkletree.Entrier) (*core.ID, error)
CalculateIdGenesisMT calculates the Genesis ID from the given claims using the given Claims Merkle Tree and Roots Merkle Tree.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.