signer

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalEcdsaIssuerSigner

type LocalEcdsaIssuerSigner struct {
	PublicKeyUrl string
	Key          *ecdsa.PrivateKey
}

LocalEcdsaIssuerSigner supports signing an Issuer with a locally passed private ecdsa key. Key lengths of 256, 384 and 521 are supported.

func (*LocalEcdsaIssuerSigner) GetKeyUrl

func (signer *LocalEcdsaIssuerSigner) GetKeyUrl() (string, error)

func (*LocalEcdsaIssuerSigner) Sign

func (signer *LocalEcdsaIssuerSigner) Sign(message []byte) ([]byte, error)

type LocalEd25519IssuerSigner

type LocalEd25519IssuerSigner struct {
	PublicKeyUrl string
	Key          ed25519.PrivateKey
}

LocalEd25519IssuerSigner supports signing an Issuer with a locally passed private ed25519 key.

func (*LocalEd25519IssuerSigner) GetKeyUrl

func (signer *LocalEd25519IssuerSigner) GetKeyUrl() (string, error)

func (*LocalEd25519IssuerSigner) Sign

func (signer *LocalEd25519IssuerSigner) Sign(message []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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