Documentation ¶
Overview ¶
Package create implements sidetree create did option
Index ¶
- type Option
- func WithAlsoKnownAs(uri string) Option
- func WithAnchorOrigin(anchorOrigin string) Option
- func WithMultiHashAlgorithm(multiHashAlgorithm uint) Option
- func WithPublicKey(publicKey *doc.PublicKey) Option
- func WithRecoveryPublicKey(recoveryPublicKey crypto.PublicKey) Option
- func WithService(service *docdid.Service) Option
- func WithSidetreeEndpoint(getEndpoints func(disableCache bool) ([]string, error)) Option
- func WithUpdatePublicKey(updatePublicKey crypto.PublicKey) Option
- type Opts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(opts *Opts)
Option is a create DID option.
func WithAlsoKnownAs ¶
WithAlsoKnownAs adds also known as URI.
func WithAnchorOrigin ¶
WithAnchorOrigin set anchor origin for sidetree request.
func WithMultiHashAlgorithm ¶
WithMultiHashAlgorithm set multi hash algorithm for sidetree request.
func WithPublicKey ¶
WithPublicKey add DID public key.
func WithRecoveryPublicKey ¶
WithRecoveryPublicKey set recovery public key.
func WithSidetreeEndpoint ¶
WithSidetreeEndpoint get sidetree endpoints.
func WithUpdatePublicKey ¶
WithUpdatePublicKey set update public key.
type Opts ¶
type Opts struct { PublicKeys []doc.PublicKey Services []docdid.Service AlsoKnownAs []string GetEndpoints func(disableCache bool) ([]string, error) RecoveryPublicKey crypto.PublicKey UpdatePublicKey crypto.PublicKey SigningKey crypto.PrivateKey SigningKeyID string MultiHashAlgorithm uint AnchorOrigin string }
Opts create did opts.
Click to show internal directories.
Click to hide internal directories.