signer

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthereumWallet

type EthereumWallet struct{}

func (*EthereumWallet) SignTransaction

func (ew *EthereumWallet) SignTransaction(privateKeys []string, unsignedTx *UnsignedTx) (*SignedTx, error)

type SignedTx

type SignedTx struct {
	Data []byte
}

SignedTx represents a signed transaction.

type Signer

type Signer interface {
	// SignTransaction signs an unsigned transaction with the given private key and protocol.
	SignTransaction(privateKeys []string, unsignedTx *UnsignedTx) (*SignedTx, error)
}

Signer is an interface for signing unsigned transactions.

func New

func New(protocol string) Signer

type SolanaWallet added in v0.4.0

type SolanaWallet struct{}

func (*SolanaWallet) SignTransaction added in v0.4.0

func (sw *SolanaWallet) SignTransaction(privateKeys []string, unsignedTx *UnsignedTx) (*SignedTx, error)

type UnsignedTx

type UnsignedTx struct {
	Data []byte
}

UnsignedTx represents an unsigned transaction.

type Wallet

type Wallet struct {
	PublicKey  string
	PrivateKey string
}

Wallet defines a structure to hold the public and private keys.

Jump to

Keyboard shortcuts

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