wallet

package
v0.0.0-...-2589273 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateSignature

func ValidateSignature(data interface{}, signature string, public_key rsa.PublicKey) error

Types

type Wallet

type Wallet struct {
	KeyPair *rsa.PrivateKey
}

func NewWallet

func NewWallet() (*Wallet, error)

func (*Wallet) CreateTransaction

func (w *Wallet) CreateTransaction(receiver_public_key rsa.PublicKey, amount int64, type_ string) (*transaction.Transaction, error)

func (*Wallet) Sign

func (w *Wallet) Sign(data interface{}) (string, error)

Jump to

Keyboard shortcuts

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