Documentation ¶
Overview ¶
Package recovery implements sidetree recovery did option
Index ¶
- type Option
- func WithAlsoKnownAs(uri string) Option
- func WithAnchorOrigin(anchorOrigin string) Option
- func WithMultiHashAlgorithm(multiHashAlgorithm uint) Option
- func WithNextRecoveryPublicKey(nextRecoveryPublicKey crypto.PublicKey) Option
- func WithNextUpdatePublicKey(nextUpdatePublicKey crypto.PublicKey) Option
- func WithOperationCommitment(operationCommitment string) Option
- func WithPublicKey(publicKey *doc.PublicKey) Option
- func WithService(service *docdid.Service) Option
- func WithSidetreeEndpoint(getEndpoints func(disableCache bool) ([]string, error)) Option
- func WithSigner(signer api.Signer) 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 recover 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 WithNextRecoveryPublicKey ¶
WithNextRecoveryPublicKey set next recovery public key.
func WithNextUpdatePublicKey ¶
WithNextUpdatePublicKey set next update public key.
func WithOperationCommitment ¶
WithOperationCommitment sets last operation commitment.
func WithPublicKey ¶
WithPublicKey add DID public key.
func WithSidetreeEndpoint ¶
WithSidetreeEndpoint get sidetree endpoints.
type Opts ¶
type Opts struct { PublicKeys []doc.PublicKey Services []docdid.Service AlsoKnownAs []string GetEndpoints func(disableCache bool) ([]string, error) NextRecoveryPublicKey crypto.PublicKey NextUpdatePublicKey crypto.PublicKey Signer api.Signer OperationCommitment string MultiHashAlgorithm uint AnchorOrigin string }
Opts recover did opts.
Click to show internal directories.
Click to hide internal directories.