eddsa

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Cryptosuite2022 = "eddsa-rdfc-2022"
	ProofType       = credential.ProofTypeDataIntegrity
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SignOptions

type SignOptions struct {
	VerificationMethod string
	ProofPurpose       string
	Created            time.Time
	Domain             string
	Challenge          string
}

SignOptions contains options for signing

type Suite

type Suite struct {
}

Suite implements the EdDSA Cryptosuite v1.0 (eddsa-rdfc-2022)

func NewSuite

func NewSuite() *Suite

NewSuite creates a new EdDSA cryptosuite

func (*Suite) Sign

Sign signs a credential using eddsa-rdfc-2022

func (*Suite) Verify

func (s *Suite) Verify(cred *credential.RDFCredential, key ed25519.PublicKey) error

Verify verifies a credential using eddsa-rdfc-2022

Jump to

Keyboard shortcuts

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