Versions in this module Expand all Collapse all v0 v0.0.2 Aug 3, 2018 Changes in this version + const CurrentCode + const Proto3 + var ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrNilBytes = errors.New("nil bytes") + func AppendCode(bytes []byte) []byte + func ExtractCode(bytes []byte) (byte, error) + func StripCode(bytes []byte) (byte, []byte, error) + type Diff struct + Data string + DiffHash string + func (*Diff) Descriptor() ([]byte, []int) + func (*Diff) ProtoMessage() + func (m *Diff) GetData() string + func (m *Diff) GetDiffHash() string + func (m *Diff) Marshal() (dAtA []byte, err error) + func (m *Diff) MarshalTo(dAtA []byte) (int, error) + func (m *Diff) Reset() + func (m *Diff) Size() (n int) + func (m *Diff) String() string + func (m *Diff) Unmarshal(dAtA []byte) error + type MainchainBlock struct + BlockHash string + BlockNumber string + BlockTime string + Difficulty string + ImageHash string + MinerAddress string + MinerSig *MinerSig + Nonce string + PrevBlockHash string + StateBlocksMerkleHash string + func (*MainchainBlock) Descriptor() ([]byte, []int) + func (*MainchainBlock) ProtoMessage() + func (m *MainchainBlock) GetBlockHash() string + func (m *MainchainBlock) GetBlockNumber() string + func (m *MainchainBlock) GetBlockTime() string + func (m *MainchainBlock) GetDifficulty() string + func (m *MainchainBlock) GetImageHash() string + func (m *MainchainBlock) GetMinerAddress() string + func (m *MainchainBlock) GetMinerSig() *MinerSig + func (m *MainchainBlock) GetNonce() string + func (m *MainchainBlock) GetPrevBlockHash() string + func (m *MainchainBlock) GetStateBlocksMerkleHash() string + func (m *MainchainBlock) Marshal() (dAtA []byte, err error) + func (m *MainchainBlock) MarshalTo(dAtA []byte) (int, error) + func (m *MainchainBlock) Reset() + func (m *MainchainBlock) Size() (n int) + func (m *MainchainBlock) String() string + func (m *MainchainBlock) Unmarshal(dAtA []byte) error + type MerkleTree struct + Hashes []string + Kind string + MerkleTreeRootHash string + func (*MerkleTree) Descriptor() ([]byte, []int) + func (*MerkleTree) ProtoMessage() + func (m *MerkleTree) GetHashes() []string + func (m *MerkleTree) GetKind() string + func (m *MerkleTree) GetMerkleTreeRootHash() string + func (m *MerkleTree) Marshal() (dAtA []byte, err error) + func (m *MerkleTree) MarshalTo(dAtA []byte) (int, error) + func (m *MerkleTree) Reset() + func (m *MerkleTree) Size() (n int) + func (m *MerkleTree) String() string + func (m *MerkleTree) Unmarshal(dAtA []byte) error + type MinedBlock struct + DiffsMap map[string]*Diff + MerkleTreesMap map[string]*MerkleTree + NextBlock *MainchainBlock + PreviousBlock *MainchainBlock + StatechainBlocksMap map[string]*StatechainBlock + TransactionsMap map[string]*Transaction + func (*MinedBlock) Descriptor() ([]byte, []int) + func (*MinedBlock) ProtoMessage() + func (m *MinedBlock) GetDiffsMap() map[string]*Diff + func (m *MinedBlock) GetMerkleTreesMap() map[string]*MerkleTree + func (m *MinedBlock) GetNextBlock() *MainchainBlock + func (m *MinedBlock) GetPreviousBlock() *MainchainBlock + func (m *MinedBlock) GetStatechainBlocksMap() map[string]*StatechainBlock + func (m *MinedBlock) GetTransactionsMap() map[string]*Transaction + func (m *MinedBlock) Marshal() (dAtA []byte, err error) + func (m *MinedBlock) MarshalTo(dAtA []byte) (int, error) + func (m *MinedBlock) Reset() + func (m *MinedBlock) Size() (n int) + func (m *MinedBlock) String() string + func (m *MinedBlock) Unmarshal(dAtA []byte) error + type MinerSig struct + R string + S string + func (*MinerSig) Descriptor() ([]byte, []int) + func (*MinerSig) ProtoMessage() + func (m *MinerSig) GetR() string + func (m *MinerSig) GetS() string + func (m *MinerSig) Marshal() (dAtA []byte, err error) + func (m *MinerSig) MarshalTo(dAtA []byte) (int, error) + func (m *MinerSig) Reset() + func (m *MinerSig) Size() (n int) + func (m *MinerSig) String() string + func (m *MinerSig) Unmarshal(dAtA []byte) error + type StatechainBlock struct + BlockHash string + BlockNumber string + BlockTime string + ImageHash string + PrevBlockHash string + StateCurrentHash string + StatePrevDiffHash string + TxHash string + func (*StatechainBlock) Descriptor() ([]byte, []int) + func (*StatechainBlock) ProtoMessage() + func (m *StatechainBlock) GetBlockHash() string + func (m *StatechainBlock) GetBlockNumber() string + func (m *StatechainBlock) GetBlockTime() string + func (m *StatechainBlock) GetImageHash() string + func (m *StatechainBlock) GetPrevBlockHash() string + func (m *StatechainBlock) GetStateCurrentHash() string + func (m *StatechainBlock) GetStatePrevDiffHash() string + func (m *StatechainBlock) GetTxHash() string + func (m *StatechainBlock) Marshal() (dAtA []byte, err error) + func (m *StatechainBlock) MarshalTo(dAtA []byte) (int, error) + func (m *StatechainBlock) Reset() + func (m *StatechainBlock) Size() (n int) + func (m *StatechainBlock) String() string + func (m *StatechainBlock) Unmarshal(dAtA []byte) error + type Transaction struct + From string + ImageHash string + Method string + Payload []byte + Sig *TxSig + TxHash string + func (*Transaction) Descriptor() ([]byte, []int) + func (*Transaction) ProtoMessage() + func (m *Transaction) GetFrom() string + func (m *Transaction) GetImageHash() string + func (m *Transaction) GetMethod() string + func (m *Transaction) GetPayload() []byte + func (m *Transaction) GetSig() *TxSig + func (m *Transaction) GetTxHash() string + func (m *Transaction) Marshal() (dAtA []byte, err error) + func (m *Transaction) MarshalTo(dAtA []byte) (int, error) + func (m *Transaction) Reset() + func (m *Transaction) Size() (n int) + func (m *Transaction) String() string + func (m *Transaction) Unmarshal(dAtA []byte) error + type TxSig struct + R string + S string + func (*TxSig) Descriptor() ([]byte, []int) + func (*TxSig) ProtoMessage() + func (m *TxSig) GetR() string + func (m *TxSig) GetS() string + func (m *TxSig) Marshal() (dAtA []byte, err error) + func (m *TxSig) MarshalTo(dAtA []byte) (int, error) + func (m *TxSig) Reset() + func (m *TxSig) Size() (n int) + func (m *TxSig) String() string + func (m *TxSig) Unmarshal(dAtA []byte) error