Documentation ¶
Overview ¶
Package common implements common functionality like jwt sign and did public key resolve.
Index ¶
Constants ¶
View Source
const ( // Ed25519VerificationKey2018 is a supported DID verification type. Ed25519VerificationKey2018 = "Ed25519VerificationKey2018" // JSONWebKey2020 is a supported DID verification type. JSONWebKey2020 = "JsonWebKey2020" // EdDSA is signature algorithm for Ed25519VerificationKey2018. EdDSA = "EdDSA" )
Variables ¶
This section is empty.
Functions ¶
func DefaultHTTPClient ¶
DefaultHTTPClient creates an http.Client with default parameters.
Types ¶
type JWSSigner ¶
type JWSSigner struct {
// contains filtered or unexported fields
}
JWSSigner utility class used to sign jwt using api.Crypto.
func NewJWSSigner ¶
NewJWSSigner creates jwt signer.
type VDRKeyResolver ¶
type VDRKeyResolver struct {
// contains filtered or unexported fields
}
VDRKeyResolver resolves DID in order to find public keys for VC verification using vdr.Registry. A source of DID could be issuer of VC or holder of VP. It can be also obtained from JWS "issuer" claim or "verificationMethod" of Linked Data Proof.
func NewVDRKeyResolver ¶
func NewVDRKeyResolver(resolver api.DIDResolver) *VDRKeyResolver
NewVDRKeyResolver creates VDRKeyResolver.
func (*VDRKeyResolver) PublicKeyFetcher ¶
func (r *VDRKeyResolver) PublicKeyFetcher() verifiable.PublicKeyFetcher
PublicKeyFetcher returns Public Key Fetcher via DID resolution mechanism.
Click to show internal directories.
Click to hide internal directories.