Versions in this module Expand all Collapse all v1 v1.1.0 Sep 9, 2021 Changes in this version + var KeyNotFoundError = errors.New("matching key not found") + var NoKeysInsertedError = errors.New("no security keys inserted") v1.0.0 Nov 13, 2018 Changes in this version + type AuthenticateResponse struct + AuthenticateRequest u2ftoken.AuthenticateRequest + Counter uint32 + KeyHandleIndex int + Signature ECSignatureBytes + func (a AuthenticateResponse) CheckSignature(pubkey *ecdsa.PublicKey) error + type Client struct + ErrorHandler func(error) + FacetID FacetID + func NewClient(url string) Client + func (c Client) Authenticate(ctx context.Context, keyhandlers []KeyHandler) (AuthenticateResponse, error) + func (c Client) CheckAuthenticate(ctx context.Context, keyhandlers []KeyHandler) (bool, error) + func (c Client) Facet() []byte + func (c Client) Register(ctx context.Context) (RegisterResponse, error) + type ClientInterface interface + Authenticate func(ctx context.Context, keyhandlers []KeyHandler) (AuthenticateResponse, error) + CheckAuthenticate func(ctx context.Context, keyhandlers []KeyHandler) (bool, error) + Facet func() []byte + Register func(ctx context.Context) (RegisterResponse, error) + type ECSignature struct + R *big.Int + S *big.Int + type ECSignatureBytes []byte + func (ec ECSignatureBytes) ECSignature() (ECSignature, error) + type FacetID [32]byte + type KeyHandle []byte + func (k KeyHandle) KeyHandle() KeyHandle + type KeyHandler interface + KeyHandle func() KeyHandle + type RegisterResponse struct + AttestationCert []byte + KeyHandle KeyHandle + PublicKey *ecdsa.PublicKey + Signature ECSignatureBytes + func (r RegisterResponse) CheckSignature() error