signer

package
v1.1.0-rc.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer interface {
	// Sign takes a message as bytes and returns its signature.
	Sign(ctx context.Context, message []byte) ([]byte, error)

	// GetPublic returns the public key paired with this private key.
	GetPublic() (crypto.PubKey, error)

	// GetAddress returns the address of the signer.
	GetAddress() ([]byte, error)
}

Signer is an interface for signing and verifying messages.

func NewSigner

func NewSigner(ctx context.Context, config *rollconf.Config, passphrase string) (Signer, error)

NewSigner creates a new Signer based on the configuration.

func NewSignerForInit

func NewSignerForInit(ctx context.Context, config *rollconf.Config, passphrase string) (Signer, error)

NewSignerForInit creates a new Signer for init-time flows. For file signer, it creates a new key if signer.json is missing.

Directories

Path Synopsis
Package aws implements a signer.Signer backed by AWS KMS.
Package aws implements a signer.Signer backed by AWS KMS.
File Remote Signer implements the Signer interface using a file to store the keys.
File Remote Signer implements the Signer interface using a file to store the keys.
Package gcp implements a signer.Signer backed by Google Cloud KMS.
Package gcp implements a signer.Signer backed by Google Cloud KMS.
Noop remote signer implements the Signer interface using a no-op signer.
Noop remote signer implements the Signer interface using a no-op signer.

Jump to

Keyboard shortcuts

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