Documentation ¶
Index ¶
- func Address(input interface{}) []byte
- func Bool(input interface{}) []byte
- func Bytes32(input interface{}) []byte
- func ConcatByteSlices(arrays ...[]byte) []byte
- func Int128(input interface{}) []byte
- func Int16(input interface{}) []byte
- func Int256(input interface{}) []byte
- func Int32(input interface{}) []byte
- func Int64(input interface{}) []byte
- func Int8(input interface{}) []byte
- func SoliditySHA3(data ...[]byte) []byte
- func SoliditySHA3WithPrefix(data []byte) []byte
- func String(input interface{}) []byte
- func Uint128(input interface{}) []byte
- func Uint16(input interface{}) []byte
- func Uint256(input interface{}) []byte
- func Uint32(input interface{}) []byte
- func Uint64(input interface{}) []byte
- func Uint8(input interface{}) []byte
- type PaymentSigner
- type SignedMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConcatByteSlices ¶
ConcatByteSlices concat byte slices
func SoliditySHA3WithPrefix ¶
SoliditySHA3WithPrefix solidity sha3 with prefix
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)
Click to show internal directories.
Click to hide internal directories.