Versions in this module Expand all Collapse all v0 v0.0.1 Mar 23, 2021 Changes in this version + const HashSizeV1 + func Marshal(item interface{}) ([]byte, error) + func Unmarshal(serialized []byte, out interface{}) error + type ChecksumV1 struct + Checksum []byte + Identifier []byte + type ConsistencyProofV1 struct + ConsistencyPath []NodeHash + LogId Namespace + TreeSize1 uint64 + TreeSize2 uint64 + type CosignedTreeHeadV1 struct + Cosignatures []SignatureV1 + SignedTreeHead SignedTreeHeadV1 + type Ed25519V1 struct + Namespace [32]byte + type GetConsistencyProofV1 struct + First uint64 + Second uint64 + type GetEntriesV1 struct + End uint64 + Start uint64 + type GetProofByHashV1 struct + Hash [HashSizeV1]byte + TreeSize uint64 + type InclusionProofV1 struct + InclusionPath []NodeHash + LeafIndex uint64 + LogId Namespace + TreeSize uint64 + type Namespace struct + Ed25519V1 *Ed25519V1 + Format NamespaceFormat + func NewNamespaceEd25519V1(vk []byte) (*Namespace, error) + func (n *Namespace) Fingerprint() (*[NamespaceFingerprintSize]byte, error) + func (n Namespace) String() string + func (ns *Namespace) Verify(message, signature []byte) error + type NamespaceFormat tls.Enum + const NamespaceFingerprintSize + const NamespaceFormatEd25519V1 + const NamespaceFormatReserved + func (f NamespaceFormat) String() string + type NamespacePool struct + func NewNamespacePool(namespaces []*Namespace) (*NamespacePool, error) + func (np *NamespacePool) Find(namespace *Namespace) (*Namespace, bool) + func (np *NamespacePool) List() []*Namespace + type NodeHash struct + Data []byte + type SignatureV1 struct + Namespace Namespace + Signature []byte + type SignedChecksumV1 struct + Data ChecksumV1 + Signature SignatureV1 + type SignedTreeHeadV1 struct + Signature SignatureV1 + TreeHead TreeHeadV1 + type StFormat tls.Enum + const StFormatConsistencyProofV1 + const StFormatCosignedTreeHeadV1 + const StFormatInclusionProofV1 + const StFormatReserved + const StFormatSignedChecksumV1 + const StFormatSignedTreeHeadV1 + func (f StFormat) String() string + type StItem struct + ConsistencyProofV1 *ConsistencyProofV1 + CosignedTreeHeadV1 *CosignedTreeHeadV1 + Format StFormat + InclusionProofV1 *InclusionProofV1 + SignedChecksumV1 *SignedChecksumV1 + SignedTreeHeadV1 *SignedTreeHeadV1 + func NewConsistencyProofV1(id *Namespace, size1, size2 uint64, path []NodeHash) *StItem + func NewCosignedTreeHeadV1(sth *SignedTreeHeadV1, cosig []SignatureV1) *StItem + func NewInclusionProofV1(id *Namespace, size, index uint64, path []NodeHash) *StItem + func NewSignedChecksumV1(data *ChecksumV1, sig *SignatureV1) *StItem + func NewSignedTreeHeadV1(th *TreeHeadV1, sig *SignatureV1) *StItem + func (i StItem) String() string + type StItemList struct + Items []StItem + type TreeHeadV1 struct + Extension []byte + RootHash NodeHash + Timestamp uint64 + TreeSize uint64 + func NewTreeHeadV1(timestamp, size uint64, hash, extension []byte) *TreeHeadV1