Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PublicKeyEncodingJwk define jwk encoding type PublicKeyEncodingJwk = "Jwk" // KeyUsageOps defines key usage as operations key KeyUsageOps = "ops" // KeyUsageAuth defines key usage as authentication key KeyUsageAuth = "auth" // KeyUsageAssertion defines key usage as assertion key KeyUsageAssertion = "assertion" // KeyUsageDelegation defines key usage as delegation key KeyUsageDelegation = "delegation" // KeyUsageInvocation defines key usage as invocation key KeyUsageInvocation = "invocation" // KeyUsageGeneral defines key usage as general key KeyUsageGeneral = "general" // JWSVerificationKey2020 defines key type signature JWSVerificationKey2020 = "JwsVerificationKey2020" // Ed25519VerificationKey2018 define key type signature Ed25519VerificationKey2018 = "Ed25519VerificationKey2018" // Ed25519KeyType defines ed25119 key type Ed25519KeyType = "Ed25519" // P256KeyType EC P-256 key type P256KeyType = "P256" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDIDOption ¶
type CreateDIDOption func(opts *CreateDIDOpts)
CreateDIDOption is a create DID option
func WithPublicKey ¶
func WithPublicKey(publicKey *PublicKey) CreateDIDOption
WithPublicKey add DID public key
func WithService ¶
func WithService(service *docdid.Service) CreateDIDOption
WithService add service
type CreateDIDOpts ¶
type CreateDIDOpts struct {
// contains filtered or unexported fields
}
CreateDIDOpts create did opts
type Option ¶
type Option func(opts *Client)
Option is a DID client instance option
func WithTLSConfig ¶
WithTLSConfig option is for definition of secured HTTP transport using a tls.Config instance
Click to show internal directories.
Click to hide internal directories.