awssigner

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package awssigner contains a new signer that uses aws-kms as an hsm

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PubKeyData

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

PubKeyData is the public key data.

type Signer

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

Signer is an aws signer.

func NewKmsSigner

func NewKmsSigner(ctx context.Context, awsRegion, awsAccessKey, awsSecretAccessKey, keyID string) (_ *Signer, err error)

NewKmsSigner creates a kms handler.

func (*Signer) Address

func (signingHandler *Signer) Address() common.Address

Address gets the address of the signing group.

func (*Signer) GetTransactor

func (signingHandler *Signer) GetTransactor(ctx context.Context, chainID *big.Int) (*bind.TransactOpts, error)

GetTransactor creates a kms transactor.

func (*Signer) SignMessage

func (signingHandler *Signer) SignMessage(ctx context.Context, message []byte, hash bool) (signer.Signature, error)

SignMessage signs a hashed message.

Directories

Path Synopsis
Package kmsmock sets up a mock kms server that is used for testing our kms driver TODO: we should consider moving this to a common testutils/mocking folder or something internal to avoid exporting
Package kmsmock sets up a mock kms server that is used for testing our kms driver TODO: we should consider moving this to a common testutils/mocking folder or something internal to avoid exporting
internal
Package internal contains modules exported from local-kms in order to avoid rewriting code
Package internal contains modules exported from local-kms in order to avoid rewriting code

Jump to

Keyboard shortcuts

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