multikey

package
v1.0.0-pre1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// This is apparently the right context despite the spec above saying otherwise.
	JsonLdContext = "https://w3id.org/security/multikey/v1"
	Type          = "Multikey"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiKey

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

func NewMultiKey

func NewMultiKey(id string, pubkey crypto.PublicKey, controller did.DID) *MultiKey

func (MultiKey) Controller

func (m MultiKey) Controller() string

func (MultiKey) ID

func (m MultiKey) ID() string

func (MultiKey) JsonLdContext

func (m MultiKey) JsonLdContext() string

func (MultiKey) KeyExchange

func (m MultiKey) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)

func (MultiKey) MarshalJSON

func (m MultiKey) MarshalJSON() ([]byte, error)

func (MultiKey) PrivateKeyIsCompatible

func (m MultiKey) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool

func (MultiKey) Type

func (m MultiKey) Type() string

func (*MultiKey) UnmarshalJSON

func (m *MultiKey) UnmarshalJSON(bytes []byte) error

func (MultiKey) VerifyASN1

func (m MultiKey) VerifyASN1(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)

func (MultiKey) VerifyBytes

func (m MultiKey) VerifyBytes(data []byte, sig []byte, opts ...crypto.SigningOption) (bool, error)

Jump to

Keyboard shortcuts

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