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: 14 Imported by: 3

Documentation

Index

Constants

View Source
const JSONWebKey2020 = "JsonWebKey2020"

JSONWebKey2020 type.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyManager

type KeyManager interface {
	CreateAndExportPubKeyBytes(kt kms.KeyType) (string, []byte, error)
}

KeyManager creates keys.

type TrustblocDIDCreator

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

TrustblocDIDCreator creates DIDs.

func NewTrustblocDIDCreator

func NewTrustblocDIDCreator(blocDomain, didAnchorOrigin, didcommInboundURL string,
	km KeyManager, rootCAs *x509.CertPool, token string, keyType, keyAgreementType kms.KeyType,
) (*TrustblocDIDCreator, error)

NewTrustblocDIDCreator returns a new TrustblocDIDCreator.

func (*TrustblocDIDCreator) Create

func (p *TrustblocDIDCreator) Create() (*did.Doc, error)

Create a new did:trustbloc DID.

func (*TrustblocDIDCreator) CreateV2 added in v0.1.8

func (p *TrustblocDIDCreator) CreateV2() (*did.Doc, error)

CreateV2 creates a did:orb DID for DIDComm V2.

Jump to

Keyboard shortcuts

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