key

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Overview

Package key contains a did:key creator implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Creator

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

Creator is used for creating did:key DID Documents.

func NewCreator

func NewCreator() *Creator

NewCreator returns a new did:key document Creator.

func (*Creator) Create

func (d *Creator) Create(rawKey []byte, verificationMethodType string) (*did.DocResolution, error)

Create creates a new did:key document using the given rawKey and verificationMethodType.

Jump to

Keyboard shortcuts

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