verifier

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Code = 0xed
View Source
const Name = "Ed25519"
View Source
const SignatureAlgorithm = "EdDSA"
View Source
const SignatureCode = signature.EdDSA

Variables

This section is empty.

Functions

func Decode

func Decode(b []byte) (principal.Verifier, error)

func Parse

func Parse(str string) (principal.Verifier, error)

Types

type Ed25519Verifier

type Ed25519Verifier []byte

func (Ed25519Verifier) Code

func (v Ed25519Verifier) Code() uint64

func (Ed25519Verifier) DID

func (v Ed25519Verifier) DID() did.DID

func (Ed25519Verifier) Encode

func (v Ed25519Verifier) Encode() []byte

func (Ed25519Verifier) Verify

func (v Ed25519Verifier) Verify(msg []byte, sig signature.Signature) bool

Jump to

Keyboard shortcuts

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