Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2021 Changes in this version + const Checksum + const ConsistencyPath + const Delim + const DomainHint + const EOL + const EndSize + const EndpointAddCosignature + const EndpointAddLeaf + const EndpointGetConsistencyProof + const EndpointGetLeaves + const EndpointGetProofByHash + const EndpointGetTreeHeadCosigned + const EndpointGetTreeHeadLatest + const EndpointGetTreeHeadToSign + const HashSize + const InclusionPath + const KeyHash + const LeafHash + const LeafHashPrefix + const LeafIndex + const LeafSize + const MessageSize + const NewSize + const NumFieldConsistencyProof + const NumFieldConsistencyProofRequest + const NumFieldCosignatureRequest + const NumFieldInclusionProof + const NumFieldInclusionProofRequest + const NumFieldLeaf + const NumFieldLeafRequest + const NumFieldLeavesRequest + const NumFieldSignedTreeHead + const OldSize + const RootHash + const ShardHint + const Signature + const SignatureOverMessage + const SignatureSize + const StartSize + const Timestamp + const TreeSize + const VerificationKey + const VerificationKeySize + func Hash(buf []byte) *[HashSize]byte + func HashLeaf(buf []byte) *[HashSize]byte + type ConsistencyProof struct + NewSize uint64 + OldSize uint64 + Path []*[HashSize]byte + func (p *ConsistencyProof) MarshalASCII(w io.Writer) error + func (p *ConsistencyProof) UnmarshalASCII(r io.Reader) error + func (p *ConsistencyProof) Verify(oldTH, newTH *TreeHead) error + type ConsistencyProofRequest struct + NewSize uint64 + OldSize uint64 + func (req *ConsistencyProofRequest) UnmarshalASCII(r io.Reader) error + type CosignatureRequest struct + func (req *CosignatureRequest) UnmarshalASCII(r io.Reader) error + type Endpoint string + func (e Endpoint) Path(components ...string) string + type InclusionProof struct + LeafIndex uint64 + Path []*[HashSize]byte + TreeSize uint64 + func (p *InclusionProof) MarshalASCII(w io.Writer) error + func (p *InclusionProof) UnmarshalASCII(r io.Reader) error + func (p *InclusionProof) Verify(leaf *Leaf, th *TreeHead) error + type InclusionProofRequest struct + LeafHash *[HashSize]byte + TreeSize uint64 + func (req *InclusionProofRequest) UnmarshalASCII(r io.Reader) error + type Leaf struct + func (l *Leaf) Marshal() []byte + func (l *Leaf) MarshalASCII(w io.Writer) error + func (l *Leaf) Unmarshal(buf []byte) error + type LeafList []*Leaf + func (ll *LeafList) UnmarshalASCII(r io.Reader) error + type LeafRequest struct + DomainHint string + Signature *[SignatureSize]byte + VerificationKey *[VerificationKeySize]byte + func (req *LeafRequest) UnmarshalASCII(r io.Reader) error + type LeavesRequest struct + EndSize uint64 + StartSize uint64 + func (req *LeavesRequest) UnmarshalASCII(r io.Reader) error + type Message struct + Checksum *[HashSize]byte + ShardHint uint64 + func (m *Message) Marshal() []byte + type MessageASCII struct + func NewMessageASCII(r io.Reader, numFieldExpected int) (*MessageASCII, error) + func (msg *MessageASCII) GetHash(key string) (*[HashSize]byte, error) + func (msg *MessageASCII) GetSignature(key string) (*[SignatureSize]byte, error) + func (msg *MessageASCII) GetString(key string) (string, error) + func (msg *MessageASCII) GetStrings(key string) []string + func (msg *MessageASCII) GetUint64(key string) (uint64, error) + func (msg *MessageASCII) GetVerificationKey(key string) (*[VerificationKeySize]byte, error) + func (msg *MessageASCII) NumField() int + type SigIdent struct + KeyHash *[HashSize]byte + Signature *[SignatureSize]byte + func (si *SigIdent) MarshalASCII(w io.Writer) error + type SignedTreeHead struct + SigIdent []*SigIdent + func (sth *SignedTreeHead) MarshalASCII(w io.Writer) error + func (sth *SignedTreeHead) UnmarshalASCII(r io.Reader) error + type TreeHead struct + RootHash *[HashSize]byte + Timestamp uint64 + TreeSize uint64 + func (th *TreeHead) Marshal() []byte + func (th *TreeHead) Sign(signer crypto.Signer) (*SignedTreeHead, error) + func (th *TreeHead) Verify(vk *[VerificationKeySize]byte, sig *[SignatureSize]byte) error