Documentation
¶
Index ¶
- Constants
- func LeavesToASCII(w io.Writer, leaves []Leaf) error
- func ParseCosignatures(p *ascii.Parser) (map[crypto.Hash]Cosignature, bool, error)
- func SignLeafChecksum(signer crypto.Signer, checksum *crypto.Hash) (crypto.Signature, error)
- func SignLeafMessage(signer crypto.Signer, msg []byte) (crypto.Signature, error)
- func SigsumCheckpointOrigin(publicKey *crypto.PublicKey) string
- func VerifyLeafChecksum(key *crypto.PublicKey, checksum *crypto.Hash, sig *crypto.Signature) bool
- func VerifyLeafMessage(key *crypto.PublicKey, msg []byte, sig *crypto.Signature) bool
- type ConsistencyProof
- func (pr *ConsistencyProof) FromASCII(r io.Reader) error
- func (pr *ConsistencyProof) Parse(p *ascii.Parser) error
- func (pr *ConsistencyProof) ParseBase64(r *ascii.LineReader) (bool, error)
- func (pr *ConsistencyProof) ToASCII(w io.Writer) error
- func (pr *ConsistencyProof) ToBase64(w io.Writer) error
- func (pr *ConsistencyProof) Verify(oldTree, newTree *TreeHead) error
- type Cosignature
- type CosignedTreeHead
- type Endpoint
- type InclusionProof
- type Leaf
- type SignedTreeHead
- func (sth *SignedTreeHead) FromASCII(r io.Reader) error
- func (sth *SignedTreeHead) Parse(p *ascii.Parser) error
- func (sth *SignedTreeHead) ToASCII(w io.Writer) error
- func (sth *SignedTreeHead) Verify(key *crypto.PublicKey) bool
- func (sth *SignedTreeHead) VerifyVersion0(key *crypto.PublicKey) booldeprecated
- type TreeHead
- func (th *TreeHead) Cosign(signer crypto.Signer, origin string, timestamp uint64) (Cosignature, error)
- func (th *TreeHead) FormatCheckpoint(origin string) string
- func (th *TreeHead) FromASCII(r io.Reader) error
- func (th *TreeHead) Parse(p *ascii.Parser) error
- func (th *TreeHead) Sign(signer crypto.Signer) (SignedTreeHead, error)
- func (th *TreeHead) ToASCII(w io.Writer) error
Constants ¶
View Source
const ( // Sigsum log api. EndpointAddLeaf = Endpoint("add-leaf") EndpointGetTreeHead = Endpoint("get-tree-head") EndpointGetInclusionProof = Endpoint("get-inclusion-proof/") EndpointGetConsistencyProof = Endpoint("get-consistency-proof/") EndpointGetLeaves = Endpoint("get-leaves/") // For primary/secondary replication. EndpointGetSecondaryTreeHead = Endpoint("get-secondary-tree-head") // Witness api. EndpointAddCheckpoint = Endpoint("add-checkpoint") )
View Source
const ( CosignatureNamespace = "cosignature/v1" CheckpointNamePrefix = "sigsum.org/v1/tree/" )
View Source
const (
TreeLeafNamespace = "sigsum.org/v1/tree-leaf"
)
Variables ¶
This section is empty.
Functions ¶
func ParseCosignatures ¶ added in v0.1.23
Second return value is true if list was terminated by an empty line, false if terminated by EOF.
func SignLeafChecksum ¶ added in v0.1.3
func SignLeafMessage ¶ added in v0.1.3
func SigsumCheckpointOrigin ¶ added in v0.9.1
func VerifyLeafChecksum ¶ added in v0.1.3
Types ¶
type ConsistencyProof ¶
func (*ConsistencyProof) Parse ¶ added in v0.2.0
func (pr *ConsistencyProof) Parse(p *ascii.Parser) error
func (*ConsistencyProof) ParseBase64 ¶ added in v0.10.0
func (pr *ConsistencyProof) ParseBase64(r *ascii.LineReader) (bool, error)
First return value is true if list was terminated by an empty line, false if terminated by EOF.
func (*ConsistencyProof) ToBase64 ¶ added in v0.9.0
func (pr *ConsistencyProof) ToBase64(w io.Writer) error
func (*ConsistencyProof) Verify ¶
func (pr *ConsistencyProof) Verify(oldTree, newTree *TreeHead) error
type Cosignature ¶ added in v0.1.6
type CosignedTreeHead ¶
type CosignedTreeHead struct { SignedTreeHead Cosignatures map[crypto.Hash]Cosignature }
type InclusionProof ¶
func (*InclusionProof) Parse ¶ added in v0.10.0
func (pr *InclusionProof) Parse(p ascii.Parser) error
type SignedTreeHead ¶
func (*SignedTreeHead) Parse ¶ added in v0.1.23
func (sth *SignedTreeHead) Parse(p *ascii.Parser) error
func (*SignedTreeHead) VerifyVersion0
deprecated
added in
v0.1.25
func (sth *SignedTreeHead) VerifyVersion0(key *crypto.PublicKey) bool
Deprecated: This backwards compatibility function should be deleted.
type TreeHead ¶
func NewEmptyTreeHead ¶ added in v0.1.22
func NewEmptyTreeHead() TreeHead
func (*TreeHead) FormatCheckpoint ¶ added in v0.9.0
Produces the checkpoint body, i.e., the data to be signed when represented as a "signed note".
Click to show internal directories.
Click to hide internal directories.