Documentation ¶
Index ¶
Constants ¶
View Source
const ( SignatureSize = ed25519.SignatureSize PublicKeySize = ed25519.PublicKeySize )
View Source
const ( EndpointAddLeaf = Endpoint("add-leaf") EndpointAddCosignature = Endpoint("add-cosignature") EndpointGetTreeHeadToCosign = Endpoint("get-tree-head-to-cosign") EndpointGetTreeHeadCosigned = Endpoint("get-tree-head-cosigned") EndpointGetInclusionProof = Endpoint("get-inclusion-proof/") EndpointGetConsistencyProof = Endpoint("get-consistency-proof/") EndpointGetLeaves = Endpoint("get-leaves/") EndpointGetTreeHeadUnsigned = Endpoint("get-tree-head-unsigned") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsistencyProof ¶
type ConsistencyProof struct { NewSize uint64 OldSize uint64 Path []merkle.Hash `ascii:"consistency_path"` }
func (*ConsistencyProof) FromASCII ¶
func (p *ConsistencyProof) FromASCII(r io.Reader, oldSize, newSize uint64) error
func (*ConsistencyProof) ToASCII ¶
func (p *ConsistencyProof) ToASCII(w io.Writer) error
func (*ConsistencyProof) Verify ¶
func (p *ConsistencyProof) Verify(oldRoot, newRoot *merkle.Hash) error
type CosignedTreeHead ¶
type CosignedTreeHead struct { SignedTreeHead Cosignature []Signature `ascii:"cosignature"` KeyHash []merkle.Hash `ascii:"key_hash"` }
func (*CosignedTreeHead) FromASCII ¶
func (cth *CosignedTreeHead) FromASCII(r io.Reader) error
func (*CosignedTreeHead) ToASCII ¶
func (cth *CosignedTreeHead) ToASCII(w io.Writer) error
type InclusionProof ¶
type InclusionProof struct { TreeSize uint64 LeafIndex uint64 `ascii:"leaf_index"` Path []merkle.Hash `ascii:"inclusion_path"` }
func (*InclusionProof) FromASCII ¶
func (p *InclusionProof) FromASCII(r io.Reader, treeSize uint64) error
func (*InclusionProof) ToASCII ¶
func (p *InclusionProof) ToASCII(w io.Writer) error
type Leaf ¶
type PublicKey ¶
type PublicKey [PublicKeySize]byte
type Signature ¶
type Signature [SignatureSize]byte
type SignedTreeHead ¶
func (*SignedTreeHead) FromASCII ¶
func (sth *SignedTreeHead) FromASCII(r io.Reader) error
func (*SignedTreeHead) ToASCII ¶
func (sth *SignedTreeHead) ToASCII(w io.Writer) error
type Statement ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.