secp256k1vm

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 (
	JsonLdContext = "https://w3id.org/security/suites/secp256k1-2019/v1"
	Type2019      = "EcdsaSecp256k1VerificationKey2019"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VerificationKey2019

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

func NewVerificationKey2019

func NewVerificationKey2019(id string, pubkey *secp256k1.PublicKey, controller did.DID) *VerificationKey2019

func (VerificationKey2019) Controller

func (vm VerificationKey2019) Controller() string

func (VerificationKey2019) ID

func (vm VerificationKey2019) ID() string

func (VerificationKey2019) JsonLdContext

func (vm VerificationKey2019) JsonLdContext() string

func (VerificationKey2019) KeyExchange

func (vm VerificationKey2019) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)

func (VerificationKey2019) MarshalJSON

func (vm VerificationKey2019) MarshalJSON() ([]byte, error)

func (VerificationKey2019) PrivateKeyIsCompatible

func (vm VerificationKey2019) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool

func (VerificationKey2019) Type

func (vm VerificationKey2019) Type() string

func (*VerificationKey2019) UnmarshalJSON

func (vm *VerificationKey2019) UnmarshalJSON(bytes []byte) error

func (VerificationKey2019) VerifyASN1

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

func (VerificationKey2019) VerifyBytes

func (vm VerificationKey2019) 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