Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PublicKeyEncodingJwk define jwk encoding type PublicKeyEncodingJwk = "Jwk" // KeyPurposeAuth defines key purpose as authentication key KeyPurposeAuth = "auth" // KeyPurposeAssertion defines key purpose as assertion key KeyPurposeAssertion = "assertion" // KeyPurposeDelegation defines key purpose as delegation key KeyPurposeDelegation = "delegation" // KeyPurposeInvocation defines key purpose as invocation key KeyPurposeInvocation = "invocation" // KeyPurposeGeneral defines key purpose as general key KeyPurposeGeneral = "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
func WithSidetreeEndpoint ¶ added in v0.1.4
func WithSidetreeEndpoint(sidetreeEndpoint string) CreateDIDOption
WithSidetreeEndpoint go directly to sidetree
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
type PublicKey ¶
type PublicKey struct {
ID string
Type string
Encoding string
KeyType string
Purpose []string
Recovery bool
Update bool
Value []byte
}
PublicKey DID doc public key.
func (*PublicKey) GetValueFromJWK ¶ added in v0.1.4
func (pk *PublicKey) GetValueFromJWK(jwk *jose.JSONWebKey) error
GetValueFromJWK Populate the PublicKey contents from a JSON Web Key
Click to show internal directories.
Click to hide internal directories.