create

package
v0.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 WithPublicKey

func WithPublicKey(publicKey *doc.PublicKey) Option

WithPublicKey add DID public key

func WithRecoveryPublicKey

func WithRecoveryPublicKey(recoveryPublicKey crypto.PublicKey) Option

WithRecoveryPublicKey set recovery public key

func WithService

func WithService(service *docdid.Service) Option

WithService add service

func WithSidetreeEndpoint

func WithSidetreeEndpoint(sidetreeEndpoint string) Option

WithSidetreeEndpoint go directly to sidetree

func WithUpdatePublicKey

func WithUpdatePublicKey(updatePublicKey crypto.PublicKey) Option

WithUpdatePublicKey set update public key

type Opts

type Opts struct {
	PublicKeys        []doc.PublicKey
	Services          []docdid.Service
	SidetreeEndpoints []*models.Endpoint
	RecoveryPublicKey crypto.PublicKey
	UpdatePublicKey   crypto.PublicKey
	SigningKey        crypto.PrivateKey
	SigningKeyID      string
}

Opts create did opts

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL