Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateUpdateEntryRequest ¶
func CreateUpdateEntryRequest( trusted *trillian.SignedLogRoot, getResp *tpb.GetEntryResponse, vrfPub vrf.PublicKey, userID, appID string, profileData []byte, signers []signatures.Signer, authorizedKeys []*tpb.PublicKey) (*tpb.UpdateEntryRequest, error)
CreateUpdateEntryRequest creates UpdateEntryRequest given GetEntryResponse, user ID and a profile.
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) VerifyGetEntryResponse ¶
func (v *Verifier) VerifyGetEntryResponse(ctx context.Context, userID, appID string, trusted *trillian.SignedLogRoot, in *tpb.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.