Versions in this module Expand all Collapse all v0 v0.1.0 Jun 6, 2021 v0.0.1 Mar 23, 2021 Changes in this version + const EndpointAddCosignature + const EndpointAddEntry + const EndpointGetConsistencyProof + const EndpointGetCosignedSth + const EndpointGetEntries + const EndpointGetLatestSth + const EndpointGetProofByHash + const EndpointGetStableSth + func NewNodePathFromHashPath(hashes [][]byte) []types.NodeHash + func NewStItemListFromLeaves(leaves []*trillian.LogLeaf) (*types.StItemList, error) + func NewTreeHeadV1FromLogRoot(lr *ttypes.LogRootV1) *types.TreeHeadV1 + type ActiveSthSource struct + func NewActiveSthSource(cli trillian.TrillianLogClient, lp *LogParameters) (*ActiveSthSource, error) + func (s *ActiveSthSource) AddCosignature(_ context.Context, costh *types.StItem) error + func (s *ActiveSthSource) Cosigned(_ context.Context) (*types.StItem, error) + func (s *ActiveSthSource) Latest(ctx context.Context) (*types.StItem, error) + func (s *ActiveSthSource) Run(ctx context.Context) + func (s *ActiveSthSource) Stable(_ context.Context) (*types.StItem, error) + type Endpoint string + func (e Endpoint) Path(components ...string) string + type Handler struct + Endpoint Endpoint + Handler func(context.Context, *Instance, http.ResponseWriter, *http.Request) (int, error) + Instance *Instance + Method string + func (a Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (h Handler) Path() string + type Instance struct + Client trillian.TrillianLogClient + LogParameters *LogParameters + SthSource SthSource + func (i *Instance) Handlers() []Handler + type LogParameters struct + Deadline time.Duration + HashType crypto.Hash + Interval time.Duration + LogId *types.Namespace + LogIdBytes []byte + LogIdStr string + MaxRange int64 + Prefix string + Signer crypto.Signer + SubmitterPolicy bool + Submitters *types.NamespacePool + TreeId int64 + WitnessPolicy bool + Witnesses *types.NamespacePool + func NewLogParameters(signer crypto.Signer, logId *types.Namespace, treeId int64, prefix string, ...) (*LogParameters, error) + func (lp *LogParameters) SignTreeHeadV1(th *types.TreeHeadV1) (*types.StItem, error) + type SthSource interface + AddCosignature func(context.Context, *types.StItem) error + Cosigned func(context.Context) (*types.StItem, error) + Latest func(context.Context) (*types.StItem, error) + Run func(context.Context) + Stable func(context.Context) (*types.StItem, error)