account

package
v0.0.0-...-bc5e9de Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Addr      Address          `json:"addr"`
	PublicKey crypto.PublicKey `json:"public_key"`
	Balance   int              `json:"balance"`
}

func New

func New(pub crypto.PublicKey) Account

type Address

type Address string

func GenerateAddress

func GenerateAddress(pub crypto.PublicKey) Address

func (*Address) ToString

func (a *Address) ToString() string

Jump to

Keyboard shortcuts

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