block

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CASH_TRANSFER = "CASH_TRANSFER"
	//DELEGATE_REGISTER = "DELEGATE_REGISTER"
	CONCESSION_REG = "CONCESSION_REG"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountKey string `edn:"AccountKey"`
}

func AccountFromString

func AccountFromString(key string) Account

type Block

type Block struct {
	Hash            [32]byte
	Prev_Block_Hash [32]byte
	Height          int
	Txs             []Tx
	Timestamp       time.Time
	Signature       btcec.Signature
}

type Tx

type Tx struct {
	TxType   string `edn:"TxType"`
	Amount   int    `edn:"Amount"`
	Sender   string `edn:"Sender"`   //[32]byte
	Receiver string `end:"Receiver"` //[32]byte
	//TODO delete
	SenderPubkey string `edn:"SenderPubkey"` //hex string
	Signature    string `edn:"Signature"`    //hex string
	Nonce        int    `edn:"Nonce"`
}

OLD

type TxSigmap

type TxSigmap struct {
	SenderPubkey string `edn:"senderPubkey"`
	Signature    string `edn:"signature"`
}

Jump to

Keyboard shortcuts

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