signer

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

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

Go to latest
Published: Apr 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ed25519Signer

type Ed25519Signer struct {
	// privateKey []byte
	Key ed25519.PrivateKey
}

func NewEd25519Signer

func NewEd25519Signer(secret string) (*Ed25519Signer, error)

func (*Ed25519Signer) PublicKey

func (s *Ed25519Signer) PublicKey() []byte

func (*Ed25519Signer) Sign

func (sk *Ed25519Signer) Sign(msg []byte) ([]byte, error)

type SignerI

type SignerI interface {
	Sign(data []byte) ([]byte, error)
	PublicKey() []byte
}

Jump to

Keyboard shortcuts

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