did

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonDID

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

CommonDID common did operation

func New

func New(config *Config) *CommonDID

New return new instance of common DID

func (*CommonDID) CreateDID

func (o *CommonDID) CreateDID(keyType, signatureType, didID, privateKey, keyID, purpose string,
	registrar model.UNIRegistrar) (string, string, error)

CreateDID create did

type Config

type Config struct {
	KeyManager      keyManager
	VDRI            vdrapi.Registry
	Domain          string
	TLSConfig       *tls.Config
	DIDAnchorOrigin string
}

Config defines configuration for vcs operations

Jump to

Keyboard shortcuts

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