x25519vm

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 (
	JsonLdContext2019 = "https://w3id.org/security/suites/x25519-2019/v1"
	Type2019          = "X25519KeyAgreementKey2019"
)
View Source
const (
	JsonLdContext2020 = "https://w3id.org/security/suites/x25519-2020/v1"
	Type2020          = "X25519KeyAgreementKey2020"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyAgreementKey2019

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

func NewKeyAgreementKey2019

func NewKeyAgreementKey2019(id string, pubkey *x25519.PublicKey, controller did.DID) *KeyAgreementKey2019

func (KeyAgreementKey2019) Controller

func (k KeyAgreementKey2019) Controller() string

func (KeyAgreementKey2019) ID

func (k KeyAgreementKey2019) ID() string

func (KeyAgreementKey2019) JsonLdContext

func (k KeyAgreementKey2019) JsonLdContext() string

func (KeyAgreementKey2019) KeyExchange

func (k KeyAgreementKey2019) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)

func (KeyAgreementKey2019) MarshalJSON

func (k KeyAgreementKey2019) MarshalJSON() ([]byte, error)

func (KeyAgreementKey2019) PrivateKeyIsCompatible

func (k KeyAgreementKey2019) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool

func (KeyAgreementKey2019) Type

func (k KeyAgreementKey2019) Type() string

func (*KeyAgreementKey2019) UnmarshalJSON

func (k *KeyAgreementKey2019) UnmarshalJSON(bytes []byte) error

type KeyAgreementKey2020

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

func NewKeyAgreementKey2020

func NewKeyAgreementKey2020(id string, pubkey *x25519.PublicKey, controller did.DID) *KeyAgreementKey2020

func (KeyAgreementKey2020) Controller

func (k KeyAgreementKey2020) Controller() string

func (KeyAgreementKey2020) ID

func (k KeyAgreementKey2020) ID() string

func (KeyAgreementKey2020) JsonLdContext

func (k KeyAgreementKey2020) JsonLdContext() string

func (KeyAgreementKey2020) KeyExchange

func (k KeyAgreementKey2020) KeyExchange(local crypto.PrivateKeyKeyExchange) ([]byte, error)

func (KeyAgreementKey2020) MarshalJSON

func (k KeyAgreementKey2020) MarshalJSON() ([]byte, error)

func (KeyAgreementKey2020) PrivateKeyIsCompatible

func (k KeyAgreementKey2020) PrivateKeyIsCompatible(local crypto.PrivateKeyKeyExchange) bool

func (KeyAgreementKey2020) Type

func (k KeyAgreementKey2020) Type() string

func (*KeyAgreementKey2020) UnmarshalJSON

func (k *KeyAgreementKey2020) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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