util

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsEthereumSignatureValid

func IsEthereumSignatureValid(walletAddressHex string, message string, signature string) (bool, error)

func SignMessageEthereum

func SignMessageEthereum(privateKeyHex string, message string) (string, error)

Types

type EthereumWallet

type EthereumWallet struct {
	PublicKey     string `json:"public_key"`
	PrivateKey    string `json:"private_key"`
	Address       string `json:"address"`
	PublicKeyHash string `json:"hash"`
}

func NewEthereumWallet

func NewEthereumWallet() (*EthereumWallet, error)

Jump to

Keyboard shortcuts

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