genesis

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL