Documentation ¶
Overview ¶
Runs a simple client, designed to interact with a personality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TreeVerifier ¶
func TreeVerifier() (*tc.LogVerifier, error)
TreeVerifier returns a verifier configured for the log.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
A client is a verifier that maintains a checkpoint as state.
func NewClient ¶
func NewClient(prsn Personality) Client
NewClient creates a new client with an empty checkpoint and a given personality to talk to.
func (Client) UpdateChkpt ¶
UpdateChkpt allows a client to update its stored checkpoint.
type Personality ¶
type Personality interface { // Append stores an entry in the log. Append(context.Context, []byte) p.Chkpt // ProveIncl proves the inclusion of a given entry. ProveIncl(context.Context, p.Chkpt, []byte) *trillian.Proof // UpdateChkpt provides a new checkpoint and proves it is consistent // with an old one. UpdateChkpt(context.Context, p.Chkpt) (p.Chkpt, *trillian.Proof) }
Personality is the interface to the the Trillian log.
Click to show internal directories.
Click to hide internal directories.