ed25519vm

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 (
	JsonLdContext2018 = "https://w3id.org/security/suites/ed25519-2018/v1"
	Type2018          = "Ed25519VerificationKey2018"
)
View Source
const (
	JsonLdContext2020 = "https://w3id.org/security/suites/ed25519-2020/v1"
	Type2020          = "Ed25519VerificationKey2020"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type VerificationKey2018

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

func NewVerificationKey2018

func NewVerificationKey2018(id string, pubkey ed25519.PublicKey, controller did.DID) *VerificationKey2018

func (VerificationKey2018) Controller

func (v VerificationKey2018) Controller() string

func (VerificationKey2018) ID

func (v VerificationKey2018) ID() string

func (VerificationKey2018) JsonLdContext

func (v VerificationKey2018) JsonLdContext() string

func (VerificationKey2018) MarshalJSON

func (v VerificationKey2018) MarshalJSON() ([]byte, error)

func (VerificationKey2018) Type

func (v VerificationKey2018) Type() string

func (*VerificationKey2018) UnmarshalJSON

func (v *VerificationKey2018) UnmarshalJSON(bytes []byte) error

func (VerificationKey2018) VerifyASN1

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

func (VerificationKey2018) VerifyBytes

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

type VerificationKey2020

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

func NewVerificationKey2020

func NewVerificationKey2020(id string, pubkey ed25519.PublicKey, controller did.DID) *VerificationKey2020

func (VerificationKey2020) Controller

func (v VerificationKey2020) Controller() string

func (VerificationKey2020) ID

func (v VerificationKey2020) ID() string

func (VerificationKey2020) JsonLdContext

func (v VerificationKey2020) JsonLdContext() string

func (VerificationKey2020) MarshalJSON

func (v VerificationKey2020) MarshalJSON() ([]byte, error)

func (VerificationKey2020) Type

func (v VerificationKey2020) Type() string

func (*VerificationKey2020) UnmarshalJSON

func (v *VerificationKey2020) UnmarshalJSON(bytes []byte) error

func (VerificationKey2020) VerifyASN1

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

func (VerificationKey2020) VerifyBytes

func (v VerificationKey2020) 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