noop

package
v1.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Noop remote signer implements the Signer interface using a no-op signer.

This is useful for testing and development purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopSigner

func NewNoopSigner(privKey crypto.PrivKey) (signer.Signer, error)

NewNoopSigner creates a new signer with a fresh Ed25519 key pair.

Types

type NoopSigner

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

NoopSigner implements the remote_signer.Signer interface. It generates a new Ed25519 key pair for each instance.

func (*NoopSigner) GetAddress

func (n *NoopSigner) GetAddress() ([]byte, error)

GetAddress implements the Signer interface by returning the Ed25519 address.

func (*NoopSigner) GetPublic

func (n *NoopSigner) GetPublic() (crypto.PubKey, error)

GetPublic implements the Signer interface by returning the Ed25519 public key.

func (*NoopSigner) Sign

func (n *NoopSigner) Sign(message []byte) ([]byte, error)

Sign implements the Signer interface by signing the message with the Ed25519 private key.

Jump to

Keyboard shortcuts

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