p256vm

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonLdContext2021 = "https://w3id.org/security/suites/multikey-2021/v1"
	Type2021          = "P256Key2021"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Key2021

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

func NewKey2021

func NewKey2021(id string, pubkey *p256.PublicKey, controller did.DID) *Key2021

func (Key2021) Controller

func (m Key2021) Controller() string

func (Key2021) ID

func (m Key2021) ID() string

func (Key2021) JsonLdContext

func (m Key2021) JsonLdContext() string

func (Key2021) KeyExchange

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

func (Key2021) MarshalJSON

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

func (Key2021) PrivateKeyIsCompatible

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

func (Key2021) Type

func (m Key2021) Type() string

func (*Key2021) UnmarshalJSON

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

func (Key2021) VerifyASN1

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

func (Key2021) VerifyBytes

func (m Key2021) 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