signer

package
v0.0.0-...-7a67c8d Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: LGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(input interface{}) []byte

Address address

func Bool

func Bool(input interface{}) []byte

Bool bool

func Bytes32

func Bytes32(input interface{}) []byte

Bytes32 bytes32

func ConcatByteSlices

func ConcatByteSlices(arrays ...[]byte) []byte

ConcatByteSlices concat byte slices

func Int128

func Int128(input interface{}) []byte

Int128 int128

func Int16

func Int16(input interface{}) []byte

Int16 int16

func Int256

func Int256(input interface{}) []byte

Int256 int256

func Int32

func Int32(input interface{}) []byte

Int32 int32

func Int64

func Int64(input interface{}) []byte

Int64 int64

func Int8

func Int8(input interface{}) []byte

Int8 int8

func SoliditySHA3

func SoliditySHA3(data ...[]byte) []byte

SoliditySHA3 solidity sha3

func SoliditySHA3WithPrefix

func SoliditySHA3WithPrefix(data []byte) []byte

SoliditySHA3WithPrefix solidity sha3 with prefix

func String

func String(input interface{}) []byte

String string

func Uint128

func Uint128(input interface{}) []byte

Uint128 uint128

func Uint16

func Uint16(input interface{}) []byte

Uint16 uint16

func Uint256

func Uint256(input interface{}) []byte

Uint256 uint256

func Uint32

func Uint32(input interface{}) []byte

Uint32 uint32

func Uint64

func Uint64(input interface{}) []byte

Uint64 uint64

func Uint8

func Uint8(input interface{}) []byte

Uint8 uint8

Types

type PaymentSigner

type PaymentSigner struct {
	Key *ecdsa.PrivateKey
}

func GeneratePaymentSigner

func GeneratePaymentSigner(keyFilePath, keyPass string) (*PaymentSigner, error)

GeneratePaymentSigner is used to generate our helper struct for signing payments keyFilePath is the path to a key as generated by geth

func (*PaymentSigner) GenerateSignedPaymentMessagePrefixed

func (ps *PaymentSigner) GenerateSignedPaymentMessagePrefixed(ethAddress common.Address, paymentMethod uint8, paymentNumber, chargeAmountInWei *big.Int) (*SignedMessage, error)

type SignedMessage

type SignedMessage struct {
	H [32]byte `json:"h"`
	R [32]byte `json:"r"`
	S [32]byte `json:"s"`
	V uint8    `json:"v"`
}

Jump to

Keyboard shortcuts

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