didcreator

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 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 DIDCreator

type DIDCreator struct {
	// contains filtered or unexported fields
}

DIDCreator implements creation of new dids

func New

func New(provider provider, opts ...Option) (*DIDCreator, error)

New return new instance of did creator

func (*DIDCreator) Create

func (dc *DIDCreator) Create(didMethod string, opts ...api.DocOpts) (*did.Doc, error)

Create returns new DID Document

type Option

type Option func(opts *DIDCreator)

Option configures the did creator

func WithCreatorKeyType

func WithCreatorKeyType(keyType string) Option

WithCreatorKeyType allows for setting key type

func WithCreatorServiceEndpoint

func WithCreatorServiceEndpoint(serviceEndpoint string) Option

WithCreatorServiceEndpoint allows for setting service endpoint

func WithCreatorServiceType

func WithCreatorServiceType(serviceType string) Option

WithCreatorServiceType is service type for this creator

func WithDidMethod

func WithDidMethod(method api.DidMethod) Option

WithDidMethod adds did method implementation for creator

Jump to

Keyboard shortcuts

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