edsigner

package
v1.1.1 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: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

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

Signer implements signer interface.

func New

func New(privKey ed25519.PrivateKey, alg, kid string) *Signer

New returns ED25519 signer.

func (*Signer) Headers

func (signer *Signer) Headers() jws.Headers

Headers provides required JWS protected headers. It provides information about signing key and algorithm.

func (*Signer) Sign

func (signer *Signer) Sign(msg []byte) ([]byte, error)

Sign signs msg and returns signature value.

Jump to

Keyboard shortcuts

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