wallet

package
v0.0.0-...-1213b31 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeSignature

func DecodeSignature(signature string) (r, s *big.Int, err error)

func SignData

func SignData(privateKey *ecdsa.PrivateKey, data []byte) (r, s *big.Int, err error)

func VerifySignature

func VerifySignature(address string, r, s *big.Int, data []byte) bool

Types

type Wallet

type Wallet struct {
	PrivateKey *ecdsa.PrivateKey
	PublicKey  *ecdsa.PublicKey
}

func NewWallet

func NewWallet() *Wallet

func (*Wallet) Address

func (w *Wallet) Address() string

Jump to

Keyboard shortcuts

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