v0.1.4
← All Versions
📖 Package Overview
No package documentation available.
Functions
func CalculateFinalChallenge
func CalculateFinalChallenge()
Types
type Challenge
type Challenge [32]byte
type EphClaim
type EphClaim struct { EphID string `json:"ephId"` EphPK string `json:"ephPK"` SignAlg EphSigAlgorithm `json:"signAlg"` Expiry uint64 `json:"expiry"` }
type EphSigAlgorithm
type EphSigAlgorithm string
type FinalChallengeHex
type FinalChallengeHex string
type UserAuthId
type UserAuthId string
type UserAuthMethod
type UserAuthMethod string
type UserAuthentication
type UserAuthentication struct { // Credentials contains signing information required for verification. Credentials UserCredentials `json:"credentials"` // Signature is a signature according to credentials. Signature string `json:"signature"` }
type UserCredentials
type UserCredentials struct { // ID is an arbitrary ID of the signature among passed from a user to a verifier. ID string `json:"id"` // Method defines the format of the credentials field. Method UserAuthMethod `json:"method"` // Credentials contains public key or a more complex structure required to verify a signature. Credentials string `json:"credentials"` }
type UserSignatures
type UserSignatures map[UserAuthId]UserAuthentication