signer

package
v0.0.0-...-8f2686c Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Code = 0x1300
View Source
const Name = verifier.Name
View Source
const SignatureAlgorithm = verifier.SignatureAlgorithm
View Source
const SignatureCode = verifier.SignatureCode

Variables

This section is empty.

Functions

func Decode

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

func Generate

func Generate() (principal.Signer, error)

func Parse

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

Types

type Ed25519Signer

type Ed25519Signer []byte

func (Ed25519Signer) Code

func (s Ed25519Signer) Code() uint64

func (Ed25519Signer) DID

func (s Ed25519Signer) DID() did.DID

func (Ed25519Signer) Encode

func (s Ed25519Signer) Encode() []byte

func (Ed25519Signer) Sign

func (s Ed25519Signer) Sign(msg []byte) signature.SignatureView

func (Ed25519Signer) SignatureAlgorithm

func (s Ed25519Signer) SignatureAlgorithm() string

func (Ed25519Signer) SignatureCode

func (s Ed25519Signer) SignatureCode() uint64

func (Ed25519Signer) Verifier

func (s Ed25519Signer) Verifier() principal.Verifier

Jump to

Keyboard shortcuts

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