signer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Unwrapper

type Unwrapper interface {
	// Unwrap returns the unwrapped did:key of this signer.
	Unwrap() principal.Signer
}

type WrappedSigner

type WrappedSigner interface {
	principal.Signer
	Unwrapper
}

func Wrap

func Wrap(key principal.Signer, id did.DID) (WrappedSigner, error)

Wrap the key of this signer into a signer with a different DID. This is primarily used to wrap a did:key signer with a signer that has a DID of a different method.

Jump to

Keyboard shortcuts

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