Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalCheckpoint ¶
func MarshalCheckpoint(c Checkpoint) string
func NewTilesForSize ¶
NewTilesForSize is like tlog.NewTiles but only lists the largest partial tile for each coordinate.
This makes only the tree of size newTreeSize retrievable, and not the trees of sizes oldTreeSize+1 to newTreeSize-1 (until the relevant full tiles are available), assuming tiles for oldTreeSize were similarly generated.
NewTilesForSize also doesn't return tiles that have not grown since oldTreeSize; it's unclear why tlog.NewTiles does.
Types ¶
type Checkpoint ¶
func ParseCheckpoint ¶
func ParseCheckpoint(text string) (Checkpoint, error)
type InjectedSigner ¶
type InjectedSigner struct {
// contains filtered or unexported fields
}
func NewInjectedSigner ¶
func NewInjectedSigner(name string, alg uint8, key, sig []byte) (*InjectedSigner, error)
NewInjectedSigner constructs a new InjectedSigner that produces note signatures bearing the provided fixed value.
func (*InjectedSigner) Verifier ¶
func (s *InjectedSigner) Verifier() note.Verifier
type RFC6962Verifier ¶
type RFC6962Verifier struct { // Timestamp, if not nil, is called with the timestamp extracted from any // valid verified signature. Timestamp func(uint64) // contains filtered or unexported fields }
func NewRFC6962Verifier ¶
func NewRFC6962Verifier(name string, key crypto.PublicKey) (*RFC6962Verifier, error)
NewRFC6962Verifier constructs a new RFC6962Verifier that verifies a RFC 6962 TreeHeadSignature formatted per c2sp.org/checkpoint.