eddsa

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// VerificationMethodType of eddsa.
	VerificationMethodType = "Ed25519VerificationKey2018"
	// JWKKeyType of eddsa.
	JWKKeyType = "OKP"
	// JWKCurve of eddsa.
	JWKCurve = "Ed25519"
	// JWTAlg of eddsa.
	JWTAlg = "EdDSA"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Proof

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

Proof describes ed25519 proof type.

func New

func New() *Proof

New an instance of ed25519 proof type descriptor.

func (*Proof) CWTAlgorithm added in v1.1.1

func (s *Proof) CWTAlgorithm() cose.Algorithm

CWTAlgorithm return cwt algorithm that corresponds to VerificationMethod.

func (*Proof) JWTAlgorithm

func (s *Proof) JWTAlgorithm() string

JWTAlgorithm return jwt alg that corresponds to VerificationMethod.

func (*Proof) SupportedVerificationMethods

func (s *Proof) SupportedVerificationMethods() []proof.SupportedVerificationMethod

SupportedVerificationMethods returns list of verification methods supported by this proof type.

Jump to

Keyboard shortcuts

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