blob: 5aa7609bb6b0594e38e0625670f99ea9498f84bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package state
import (
"context"
"git.sigsum.org/sigsum-lib-go/pkg/types"
)
// StateManager coordinates access to a log's tree heads and (co)signatures
type StateManager interface {
Latest(context.Context) (*types.SignedTreeHead, error)
ToSign(context.Context) (*types.SignedTreeHead, error)
Cosigned(context.Context) (*types.CosignedTreeHead, error)
AddCosignature(context.Context, *types.PublicKey, *types.Signature) error
Run(context.Context)
}
|