Versions in this module Expand all Collapse all v1 v1.0.0 Jul 11, 2017 Changes in this version + func ReadVarInt(buffer *bytes.Buffer) uint64 + type ExecResult struct + IsCoinbase bool + SumCurrentOutputs uint64 + SumPriorOutputs uint64 + type InMemoryStore struct + Map map[Key]*TX_TXOUT + TranMap map[string][]byte + func (ims *InMemoryStore) DelState(key Key) error + func (ims *InMemoryStore) GetState(key Key) (*TX_TXOUT, bool, error) + func (ims *InMemoryStore) GetTran(key string) ([]byte, bool, error) + func (ims *InMemoryStore) PutState(key Key, value *TX_TXOUT) error + func (ims *InMemoryStore) PutTran(key string, value []byte) error + type Key struct + TxHashAsHex string + TxIndex uint32 + type Store interface + DelState func(Key) error + GetState func(Key) (*TX_TXOUT, bool, error) + GetTran func(string) ([]byte, bool, error) + PutState func(Key, *TX_TXOUT) error + PutTran func(string, []byte) error + func MakeInMemoryStore() Store + type TX struct + Blocks [][]byte + Fee uint64 + LockTime uint32 + Txin []*TX_TXIN + Txout []*TX_TXOUT + Version uint32 + func ParseUTXOBytes(txAsUTXOBytes []byte) *TX + func (*TX) Descriptor() ([]byte, []int) + func (*TX) ProtoMessage() + func (m *TX) GetBlocks() [][]byte + func (m *TX) GetFee() uint64 + func (m *TX) GetLockTime() uint32 + func (m *TX) GetTxin() []*TX_TXIN + func (m *TX) GetTxout() []*TX_TXOUT + func (m *TX) GetVersion() uint32 + func (m *TX) Reset() + func (m *TX) String() string + type TX_TXIN struct + Ix uint32 + Script []byte + Sequence uint32 + SourceHash []byte + func (*TX_TXIN) Descriptor() ([]byte, []int) + func (*TX_TXIN) ProtoMessage() + func (m *TX_TXIN) GetIx() uint32 + func (m *TX_TXIN) GetScript() []byte + func (m *TX_TXIN) GetSequence() uint32 + func (m *TX_TXIN) GetSourceHash() []byte + func (m *TX_TXIN) Reset() + func (m *TX_TXIN) String() string + type TX_TXOUT struct + Color []byte + Quantity uint64 + Script []byte + Value uint64 + func (*TX_TXOUT) Descriptor() ([]byte, []int) + func (*TX_TXOUT) ProtoMessage() + func (m *TX_TXOUT) GetColor() []byte + func (m *TX_TXOUT) GetQuantity() uint64 + func (m *TX_TXOUT) GetScript() []byte + func (m *TX_TXOUT) GetValue() uint64 + func (m *TX_TXOUT) Reset() + func (m *TX_TXOUT) String() string + type UTXO struct + Store Store + func MakeUTXO(store Store) *UTXO + func (u *UTXO) Execute(txData []byte) (*ExecResult, error) + func (u *UTXO) GetTransactionHash(txData []byte) [32]byte + func (u *UTXO) IsCoinbase(index uint32) bool + func (u *UTXO) Query(txHashHex string) pb.Response