Documentation ¶
Overview ¶
Package kt holds Key Transparency message generation and verification routines.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Verifier ¶
type Verifier struct {
// contains filtered or unexported fields
}
Verifier is a client helper library for verifying request and responses.
func New ¶
func New(vrf vrf.PublicKey, hasher hashers.MapHasher, mapPubKey crypto.PublicKey, logVerifier client.LogVerifier) *Verifier
New creates a new instance of the client verifier.
func (*Verifier) NewMutation ¶
func (v *Verifier) NewMutation( domainID, appID, userID string, profileData []byte, authorizedKeys []*keyspb.PublicKey, vrfProof, oldLeaf []byte) ( *entry.Mutation, error)
NewMutation creates a Mutation given the userID, desired state, and previous entry.
func (*Verifier) VerifyGetEntryResponse ¶
func (v *Verifier) VerifyGetEntryResponse(ctx context.Context, domainID, appID, userID string, trusted *trillian.SignedLogRoot, in *pb.GetEntryResponse) error
VerifyGetEntryResponse verifies GetEntryResponse:
- Verify commitment.
- Verify VRF.
- Verify tree proof.
- Verify signature.
- Verify consistency proof from log.Root().
- Verify inclusion proof.
Click to show internal directories.
Click to hide internal directories.