Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Block ¶
type Block struct { DiffLength string `json:"difflength,omitempty"` Error error `json:"error,omitempty"` Length int `json:"length,omitempty"` Nonce *big.Int `json:"nonce,omitempty"` PrevHash string `json:"prevhash,omitempty"` Target string `json:"target,omitempty"` Time time.Time `json:"time,omitempty"` Txs []*Tx `json:"txs,omitempty"` Version string `json:"version,omitempty"` }
type DB ¶
type DB struct { AddBlock bool DiffLength string Length int RecentHash int SigLength int Storage *leveldb.DB SuggestedBlocks []*Block SuggestedTxs []*Tx Txs []*Tx }
func (*DB) GetAccount ¶
type HalfWay ¶
type Serializer ¶
type Serializer interface {
JSON() string
}
type Tx ¶
type Tx struct { Amount int `json:"amount,omitempty"` Count int `json:"count,omitempty"` PubKeys []*btcec.PublicKey `json:"pubkeys,omitempty"` Signatures []*btcec.Signature `json:"signatures,omitempty"` To string `json:"to,omitempty"` Type string `json:"type,omitempty"` }
Tx holds all related info for a transaction NOTE: Types int/int64 are probably not enough for Amount. Python has Long (big) numbers support builtin, Go doesn't, so "the big.Int way" Extracted from `gui.py:13`
Source Files ¶
Click to show internal directories.
Click to hide internal directories.