Versions in this module Expand all Collapse all v0 v0.3.5 Feb 5, 2016 v0.3.2 Sep 29, 2015 v0.3.1 Sep 19, 2015 Changes in this version + const ACK_COMMIT_CHAIN + const ACK_COMMIT_ENTRY + const ACK_FACTOID_TX + const ACK_REVEAL_CHAIN + const ACK_REVEAL_ENTRY + const BIP0031Version + const BIP0035Version + const BIP0037Version + const BLOCK_BUILD_FAILED + const BLOCK_BUILD_SUCCESS + const BLOCK_NOT_FOUND + const BLOCK_NOT_VALID + const BLOCK_QUERY_STATUS + const CmdABlock + const CmdAcknowledgement + const CmdAddr + const CmdAlert + const CmdBlock + const CmdCommitChain + const CmdCommitEntry + const CmdDirBlock + const CmdDirInv + const CmdEBlock + const CmdECBlock + const CmdEntry + const CmdFBlock + const CmdFactoidTX + const CmdFilterAdd + const CmdFilterClear + const CmdFilterLoad + const CmdGetAddr + const CmdGetBlocks + const CmdGetData + const CmdGetDirBlocks + const CmdGetDirData + const CmdGetEntryData + const CmdGetHeaders + const CmdGetNonDirData + const CmdHeaders + const CmdInt_DirBlock + const CmdInt_EOM + const CmdInt_FactoidBlock + const CmdInt_FactoidObj + const CmdInv + const CmdMHashReveal + const CmdMemPool + const CmdNotFound + const CmdPing + const CmdPong + const CmdReject + const CmdRevealChain + const CmdRevealEntry + const CmdTestCredit + const CmdTx + const CmdVerAck + const CmdVersion + const CommandSize + const DefaultUserAgent + const END_MINUTE_1 + const END_MINUTE_10 + const END_MINUTE_2 + const END_MINUTE_3 + const END_MINUTE_4 + const END_MINUTE_5 + const END_MINUTE_6 + const END_MINUTE_7 + const END_MINUTE_8 + const END_MINUTE_9 + const FORCE_FACTOID_GENESIS_REBUILD + const Hash3Size + const HashSize + const INFO_CURRENT_HEIGHT + const Max3HashStringSize + const MaxAddrPerMsg + const MaxAppMsgPayload + const MaxBlockHeadersPerMsg + const MaxBlockLocatorsPerMsg + const MaxBlockMsgPayload + const MaxBlockPayload + const MaxBlocksPerMsg + const MaxFilterAddDataSize + const MaxFilterLoadFilterSize + const MaxFilterLoadHashFuncs + const MaxHashStringSize + const MaxInvPerMsg + const MaxMessagePayload + const MaxUserAgentLen + const MaxVarIntPayload + const MessageHeaderSize + const MultipleAddressVersion + const NetAddressTimeVersion + const ProtocolVersion + const PubKeySize + const RCDHashSize + const RejectVersion + const TxVersion + var CreditsPerChain int32 + var Err3HashStrSize = fmt.Errorf("max hash string length for sha3 is %v bytes", Max3HashStringSize) + var ErrHashStrSize = fmt.Errorf("max hash string length is %v bytes", MaxHashStringSize) + var ErrInvalidNetAddr = errors.New("provided net.Addr is not a net.TCPAddr") + var FChainID *common.Hash + var FactoshisPerCredit uint64 + func DoubleSha256(b []byte) []byte + func Init() + func RandomUint64() (uint64, error) + func Sha256(b []byte) []byte + func VarIntSerializeSize(val uint64) int + func WriteMessage(w io.Writer, msg Message, pver uint32, btcnet BitcoinNet) error + func WriteMessageN(w io.Writer, msg Message, pver uint32, btcnet BitcoinNet) (int, error) + type Alert struct + Cancel int32 + Comment string + Expiration int64 + ID int32 + MaxVer int32 + MinVer int32 + Priority int32 + RelayUntil int64 + Reserved string + SetCancel []int32 + SetSubVer []string + StatusBar string + Version int32 + func NewAlert(version int32, relayUntil int64, expiration int64, id int32, cancel int32, ...) *Alert + func NewAlertFromPayload(serializedPayload []byte, pver uint32) (*Alert, error) + func (alert *Alert) Deserialize(r io.Reader, pver uint32) error + func (alert *Alert) Serialize(w io.Writer, pver uint32) error + type BitcoinNet uint32 + const MainNet + const SimNet + const TestNet + const TestNet3 + func (n BitcoinNet) String() string + type BlockHeader struct + BodySize uint64 + ChainID ShaHash + DBHeight uint32 + ExchRate uint64 + MerkleRoot ShaHash + PrevBlock ShaHash + PrevHash3 Sha3Hash + TransCnt uint64 + UTXOCommit ShaHash + func NewBlockHeader(prevHash *ShaHash, merkleRootHash *ShaHash) *BlockHeader + func (h *BlockHeader) BlockSha() (ShaHash, error) + func (h *BlockHeader) Deserialize(r io.Reader) error + func (h *BlockHeader) Serialize(w io.Writer) error + type BloomUpdateType uint8 + const BloomUpdateAll + const BloomUpdateNone + const BloomUpdateP2PubkeyOnly + type ECPubKey [PubKeySize]byte + type FtmInternalMsg interface + Command func() string + type IMsgFactoidTX interface + BtcDecode func(r io.Reader, pver uint32) error + BtcEncode func(w io.Writer, pver uint32) error + Command func() string + IsValid func() bool + MaxPayloadLength func(pver uint32) uint32 + NewMsgFactoidTX func() IMsgFactoidTX + SetTransaction func(fct.ITransaction) + Sha func() (ShaHash, error) + func NewMsgFactoidTX() IMsgFactoidTX + type InvType uint32 + const InvTypeBlock + const InvTypeError + const InvTypeFactomAdminBlock + const InvTypeFactomControl + const InvTypeFactomDirBlock + const InvTypeFactomEntry + const InvTypeFactomEntryBlock + const InvTypeFactomEntryCreditBlock + const InvTypeFactomFBlock + const InvTypeFactomNonDirBlock + const InvTypeFactomRaw + const InvTypeTx + func (invtype InvType) String() string + type InvVect struct + Hash ShaHash + Type InvType + func NewInvVect(typ InvType, hash *ShaHash) *InvVect + type Message interface + BtcDecode func(io.Reader, uint32) error + BtcEncode func(io.Writer, uint32) error + Command func() string + MaxPayloadLength func(uint32) uint32 + func ReadMessage(r io.Reader, pver uint32, btcnet BitcoinNet) (Message, []byte, error) + func ReadMessageN(r io.Reader, pver uint32, btcnet BitcoinNet) (int, Message, []byte, error) + type MessageError struct + Description string + Func string + func (e *MessageError) Error() string + type MsgABlock struct + ABlk *common.AdminBlock + func NewMsgABlock() *MsgABlock + func (msg *MsgABlock) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgABlock) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgABlock) Command() string + func (msg *MsgABlock) MaxPayloadLength(pver uint32) uint32 + type MsgAcknowledgement struct + Affirmation *ShaHash + ChainID *common.Hash + Height uint32 + Index uint32 + SerialHash [32]byte + Signature [64]byte + Type byte + func NewMsgAcknowledgement(height uint32, index uint32, affirm *ShaHash, ackType byte) *MsgAcknowledgement + func (msg *MsgAcknowledgement) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgAcknowledgement) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgAcknowledgement) Command() string + func (msg *MsgAcknowledgement) GetBinaryForSignature() (data []byte, err error) + func (msg *MsgAcknowledgement) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgAcknowledgement) Sha() (ShaHash, error) + type MsgAddr struct + AddrList []*NetAddress + func NewMsgAddr() *MsgAddr + func (msg *MsgAddr) AddAddress(na *NetAddress) error + func (msg *MsgAddr) AddAddresses(netAddrs ...*NetAddress) error + func (msg *MsgAddr) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgAddr) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgAddr) ClearAddresses() + func (msg *MsgAddr) Command() string + func (msg *MsgAddr) MaxPayloadLength(pver uint32) uint32 + type MsgAlert struct + Payload *Alert + SerializedPayload []byte + Signature []byte + func NewMsgAlert(serializedPayload []byte, signature []byte) *MsgAlert + func (msg *MsgAlert) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgAlert) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgAlert) Command() string + func (msg *MsgAlert) MaxPayloadLength(pver uint32) uint32 + type MsgBlock struct + Header BlockHeader + Transactions []*MsgTx + func NewMsgBlock(blockHeader *BlockHeader) *MsgBlock + func (msg *MsgBlock) AddTransaction(tx *MsgTx) error + func (msg *MsgBlock) BlockSha() (ShaHash, error) + func (msg *MsgBlock) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgBlock) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgBlock) ClearTransactions() + func (msg *MsgBlock) Command() string + func (msg *MsgBlock) Deserialize(r io.Reader) error + func (msg *MsgBlock) DeserializeTxLoc(r *bytes.Buffer) ([]TxLoc, error) + func (msg *MsgBlock) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgBlock) Serialize(w io.Writer) error + func (msg *MsgBlock) SerializeSize() int + func (msg *MsgBlock) TxShas() ([]ShaHash, error) + type MsgCommitChain struct + CommitChain *common.CommitChain + func NewMsgCommitChain() *MsgCommitChain + func (msg *MsgCommitChain) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgCommitChain) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgCommitChain) Command() string + func (msg *MsgCommitChain) IsValid() bool + func (msg *MsgCommitChain) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgCommitChain) Sha() (ShaHash, error) + type MsgCommitEntry struct + CommitEntry *common.CommitEntry + func NewMsgCommitEntry() *MsgCommitEntry + func (msg *MsgCommitEntry) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgCommitEntry) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgCommitEntry) Command() string + func (msg *MsgCommitEntry) IsValid() bool + func (msg *MsgCommitEntry) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgCommitEntry) Sha() (ShaHash, error) + type MsgDirBlock struct + DBlk *common.DirectoryBlock + func NewMsgDirBlock() *MsgDirBlock + func (msg *MsgDirBlock) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgDirBlock) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgDirBlock) Command() string + func (msg *MsgDirBlock) MaxPayloadLength(pver uint32) uint32 + type MsgDirInv struct + InvList []*InvVect + func NewMsgDirInv() *MsgDirInv + func NewMsgDirInvSizeHint(sizeHint uint) *MsgDirInv + func (msg *MsgDirInv) AddInvVect(iv *InvVect) error + func (msg *MsgDirInv) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgDirInv) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgDirInv) Command() string + func (msg *MsgDirInv) MaxPayloadLength(pver uint32) uint32 + type MsgEBlock struct + EBlk *common.EBlock + func NewMsgEBlock() *MsgEBlock + func (msg *MsgEBlock) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgEBlock) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgEBlock) Command() string + func (msg *MsgEBlock) MaxPayloadLength(pver uint32) uint32 + type MsgECBlock struct + ECBlock *common.ECBlock + func NewMsgECBlock() *MsgECBlock + func (msg *MsgECBlock) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgECBlock) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgECBlock) Command() string + func (msg *MsgECBlock) MaxPayloadLength(pver uint32) uint32 + type MsgEntry struct + Entry *common.Entry + func NewMsgEntry() *MsgEntry + func (msg *MsgEntry) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgEntry) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgEntry) Command() string + func (msg *MsgEntry) MaxPayloadLength(pver uint32) uint32 + type MsgFBlock struct + SC block.IFBlock + func NewMsgFBlock() *MsgFBlock + func (msg *MsgFBlock) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgFBlock) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgFBlock) Command() string + func (msg *MsgFBlock) MaxPayloadLength(pver uint32) uint32 + type MsgFactoidTX struct + Transaction fct.ITransaction + func (msg *MsgFactoidTX) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgFactoidTX) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgFactoidTX) Command() string + func (msg *MsgFactoidTX) IsValid() bool + func (msg *MsgFactoidTX) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgFactoidTX) SetTransaction(transaction fct.ITransaction) + func (msg *MsgFactoidTX) Sha() (ShaHash, error) + type MsgFilterAdd struct + Data []byte + func NewMsgFilterAdd(data []byte) *MsgFilterAdd + func (msg *MsgFilterAdd) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgFilterAdd) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgFilterAdd) Command() string + func (msg *MsgFilterAdd) MaxPayloadLength(pver uint32) uint32 + type MsgFilterClear struct + func NewMsgFilterClear() *MsgFilterClear + func (msg *MsgFilterClear) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgFilterClear) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgFilterClear) Command() string + func (msg *MsgFilterClear) MaxPayloadLength(pver uint32) uint32 + type MsgFilterLoad struct + Filter []byte + Flags BloomUpdateType + HashFuncs uint32 + Tweak uint32 + func NewMsgFilterLoad(filter []byte, hashFuncs uint32, tweak uint32, flags BloomUpdateType) *MsgFilterLoad + func (msg *MsgFilterLoad) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgFilterLoad) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgFilterLoad) Command() string + func (msg *MsgFilterLoad) MaxPayloadLength(pver uint32) uint32 + type MsgGetAddr struct + func NewMsgGetAddr() *MsgGetAddr + func (msg *MsgGetAddr) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetAddr) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetAddr) Command() string + func (msg *MsgGetAddr) MaxPayloadLength(pver uint32) uint32 + type MsgGetBlocks struct + BlockLocatorHashes []*ShaHash + HashStop ShaHash + ProtocolVersion uint32 + func NewMsgGetBlocks(hashStop *ShaHash) *MsgGetBlocks + func (msg *MsgGetBlocks) AddBlockLocatorHash(hash *ShaHash) error + func (msg *MsgGetBlocks) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetBlocks) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetBlocks) Command() string + func (msg *MsgGetBlocks) MaxPayloadLength(pver uint32) uint32 + type MsgGetData struct + InvList []*InvVect + func NewMsgGetData() *MsgGetData + func NewMsgGetDataSizeHint(sizeHint uint) *MsgGetData + func (msg *MsgGetData) AddInvVect(iv *InvVect) error + func (msg *MsgGetData) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetData) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetData) Command() string + func (msg *MsgGetData) MaxPayloadLength(pver uint32) uint32 + type MsgGetDirBlocks struct + BlockLocatorHashes []*ShaHash + HashStop ShaHash + ProtocolVersion uint32 + func NewMsgGetDirBlocks(hashStop *ShaHash) *MsgGetDirBlocks + func (msg *MsgGetDirBlocks) AddBlockLocatorHash(hash *ShaHash) error + func (msg *MsgGetDirBlocks) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetDirBlocks) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetDirBlocks) Command() string + func (msg *MsgGetDirBlocks) MaxPayloadLength(pver uint32) uint32 + type MsgGetDirData struct + InvList []*InvVect + func NewMsgGetDirData() *MsgGetDirData + func NewMsgGetDirDataSizeHint(sizeHint uint) *MsgGetDirData + func (msg *MsgGetDirData) AddInvVect(iv *InvVect) error + func (msg *MsgGetDirData) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetDirData) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetDirData) Command() string + func (msg *MsgGetDirData) MaxPayloadLength(pver uint32) uint32 + type MsgGetEntryData struct + InvList []*InvVect + func NewMsgGetEntryData() *MsgGetEntryData + func NewMsgGetEntryDataSizeHint(sizeHint uint) *MsgGetEntryData + func (msg *MsgGetEntryData) AddInvVect(iv *InvVect) error + func (msg *MsgGetEntryData) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetEntryData) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetEntryData) Command() string + func (msg *MsgGetEntryData) MaxPayloadLength(pver uint32) uint32 + type MsgGetHeaders struct + BlockLocatorHashes []*ShaHash + HashStop ShaHash + ProtocolVersion uint32 + func NewMsgGetHeaders() *MsgGetHeaders + func (msg *MsgGetHeaders) AddBlockLocatorHash(hash *ShaHash) error + func (msg *MsgGetHeaders) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetHeaders) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetHeaders) Command() string + func (msg *MsgGetHeaders) MaxPayloadLength(pver uint32) uint32 + type MsgGetNonDirData struct + InvList []*InvVect + func NewMsgGetNonDirData() *MsgGetNonDirData + func NewMsgGetNonDirDataSizeHint(sizeHint uint) *MsgGetNonDirData + func (msg *MsgGetNonDirData) AddInvVect(iv *InvVect) error + func (msg *MsgGetNonDirData) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgGetNonDirData) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgGetNonDirData) Command() string + func (msg *MsgGetNonDirData) MaxPayloadLength(pver uint32) uint32 + type MsgHeaders struct + Headers []*BlockHeader + func NewMsgHeaders() *MsgHeaders + func (msg *MsgHeaders) AddBlockHeader(bh *BlockHeader) error + func (msg *MsgHeaders) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgHeaders) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgHeaders) Command() string + func (msg *MsgHeaders) MaxPayloadLength(pver uint32) uint32 + type MsgInt_DirBlock struct + ShaHash *ShaHash + func (msg *MsgInt_DirBlock) Command() string + type MsgInt_EOM struct + EC_Exchange_Rate uint64 + EOM_Type byte + NextDBlockHeight uint32 + func (msg *MsgInt_EOM) Command() string + type MsgInt_FactoidBlock struct + BlockHeight uint32 + FactoidBlockStatus byte + ShaHash ShaHash + func (msg *MsgInt_FactoidBlock) Command() string + type MsgInv struct + InvList []*InvVect + func NewMsgInv() *MsgInv + func NewMsgInvSizeHint(sizeHint uint) *MsgInv + func (msg *MsgInv) AddInvVect(iv *InvVect) error + func (msg *MsgInv) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgInv) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgInv) Command() string + func (msg *MsgInv) MaxPayloadLength(pver uint32) uint32 + type MsgMemPool struct + func NewMsgMemPool() *MsgMemPool + func (msg *MsgMemPool) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgMemPool) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgMemPool) Command() string + func (msg *MsgMemPool) MaxPayloadLength(pver uint32) uint32 + type MsgNotFound struct + InvList []*InvVect + func NewMsgNotFound() *MsgNotFound + func (msg *MsgNotFound) AddInvVect(iv *InvVect) error + func (msg *MsgNotFound) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgNotFound) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgNotFound) Command() string + func (msg *MsgNotFound) MaxPayloadLength(pver uint32) uint32 + type MsgPing struct + Nonce uint64 + func NewMsgPing(nonce uint64) *MsgPing + func (msg *MsgPing) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgPing) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgPing) Command() string + func (msg *MsgPing) MaxPayloadLength(pver uint32) uint32 + type MsgPong struct + Nonce uint64 + func NewMsgPong(nonce uint64) *MsgPong + func (msg *MsgPong) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgPong) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgPong) Command() string + func (msg *MsgPong) MaxPayloadLength(pver uint32) uint32 + type MsgReject struct + Cmd string + Code RejectCode + Hash ShaHash + Reason string + func NewMsgReject(command string, code RejectCode, reason string) *MsgReject + func (msg *MsgReject) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgReject) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgReject) Command() string + func (msg *MsgReject) MaxPayloadLength(pver uint32) uint32 + type MsgRevealChain struct + FirstEntry *common.Entry + func NewMsgRevealChain() *MsgRevealChain + func (msg *MsgRevealChain) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgRevealChain) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgRevealChain) Command() string + func (msg *MsgRevealChain) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgRevealChain) Sha() (ShaHash, error) + type MsgRevealEntry struct + Entry *common.Entry + func NewMsgRevealEntry() *MsgRevealEntry + func (msg *MsgRevealEntry) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgRevealEntry) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgRevealEntry) Command() string + func (msg *MsgRevealEntry) IsValid() bool + func (msg *MsgRevealEntry) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgRevealEntry) Sha() (ShaHash, error) + type MsgTestCredit struct + Amt int32 + ECKey *[32]byte + func NewMsgTestCredit() *MsgTestCredit + func (m *MsgTestCredit) MarshalBinary() ([]byte, error) + func (m *MsgTestCredit) UnmarshalBinary(data []byte) error + func (msg *MsgTestCredit) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgTestCredit) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgTestCredit) Command() string + func (msg *MsgTestCredit) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgTestCredit) Sha() (ShaHash, error) + type MsgTx struct + ECOut []*TxEntryCreditOut + LockTime int64 + TxIn []*TxIn + TxOut []*TxOut + Version uint8 + func NewMsgTx() *MsgTx + func (msg *MsgTx) AddECOut(eco *TxEntryCreditOut) + func (msg *MsgTx) AddTxIn(ti *TxIn) + func (msg *MsgTx) AddTxOut(to *TxOut) + func (msg *MsgTx) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgTx) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgTx) Command() string + func (msg *MsgTx) Deserialize(r io.Reader) error + func (msg *MsgTx) MaxPayloadLength(pver uint32) uint32 + func (msg *MsgTx) Serialize(w io.Writer) error + func (msg *MsgTx) SerializeSize() int + func (msg *MsgTx) TxSha() (ShaHash, error) + type MsgVerAck struct + func NewMsgVerAck() *MsgVerAck + func (msg *MsgVerAck) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgVerAck) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgVerAck) Command() string + func (msg *MsgVerAck) MaxPayloadLength(pver uint32) uint32 + type MsgVersion struct + AddrMe NetAddress + AddrYou NetAddress + DisableRelayTx bool + LastBlock int32 + Nonce uint64 + ProtocolVersion int32 + Services ServiceFlag + Timestamp time.Time + UserAgent string + func NewMsgVersion(me *NetAddress, you *NetAddress, nonce uint64, lastBlock int32) *MsgVersion + func NewMsgVersionFromConn(conn net.Conn, nonce uint64, lastBlock int32) (*MsgVersion, error) + func (msg *MsgVersion) AddService(service ServiceFlag) + func (msg *MsgVersion) AddUserAgent(name string, version string, comments ...string) error + func (msg *MsgVersion) BtcDecode(r io.Reader, pver uint32) error + func (msg *MsgVersion) BtcEncode(w io.Writer, pver uint32) error + func (msg *MsgVersion) Command() string + func (msg *MsgVersion) HasService(service ServiceFlag) bool + func (msg *MsgVersion) MaxPayloadLength(pver uint32) uint32 + type NetAddress struct + IP net.IP + Port uint16 + Services ServiceFlag + Timestamp time.Time + func NewNetAddress(addr net.Addr, services ServiceFlag) (*NetAddress, error) + func NewNetAddressIPPort(ip net.IP, port uint16, services ServiceFlag) *NetAddress + func (na *NetAddress) AddService(service ServiceFlag) + func (na *NetAddress) HasService(service ServiceFlag) bool + func (na *NetAddress) SetAddress(ip net.IP, port uint16) + type OutPoint struct + Hash ShaHash + Index uint32 + func NewOutPoint(hash *ShaHash, index uint32) *OutPoint + func (o OutPoint) String() string + type PubKey [PubKeySize]byte + type RCDHash [RCDHashSize]byte + type RCDreveal struct + MinRequired uint64 + PubKey []PubKey + Type uint8 + Version uint8 + func (rcd *RCDreveal) SerializeSize() int + type RejectCode uint8 + const RejectCheckpoint + const RejectDuplicate + const RejectDust + const RejectInsufficientFee + const RejectInvalid + const RejectMalformed + const RejectNonstandard + const RejectObsolete + func (code RejectCode) String() string + type ServiceFlag uint64 + const SFNodeNetwork + func (f ServiceFlag) String() string + type Sha3Hash [Hash3Size]byte + func NewSha3Hash(newHash []byte) (*Sha3Hash, error) + func NewSha3HashFromStr(hash string) (*Sha3Hash, error) + func (hash *Sha3Hash) Bytes() []byte + func (hash *Sha3Hash) IsEqual(target *Sha3Hash) bool + func (hash *Sha3Hash) SetBytes(newHash []byte) error + func (hash Sha3Hash) String() string + type ShaHash [HashSize]byte + func FactomHashToShaHash(ftmHash *common.Hash) *ShaHash + func NewShaHash(newHash []byte) (*ShaHash, error) + func NewShaHashFromStr(hash string) (*ShaHash, error) + func NewShaHashFromStruct(DataStruct interface{}) (*ShaHash, error) + func (hash *ShaHash) Bytes() []byte + func (hash *ShaHash) IsEqual(target *ShaHash) bool + func (hash *ShaHash) SetBytes(newHash []byte) error + func (hash *ShaHash) ToFactomHash() *common.Hash + func (hash ShaHash) String() string + type TxEntryCreditOut struct + ECpubkey ECPubKey + Value int64 + func (t *TxEntryCreditOut) SerializeSize() int + type TxIn struct + PreviousOutPoint OutPoint + func NewTxIn(prevOut *OutPoint, signatureScript []byte) *TxIn + func (t *TxIn) SerializeSize() int + type TxLoc struct + TxLen int + TxStart int + type TxOut struct + RCDHash RCDHash + Value int64 + func NewTxOut(value int64, pk []byte) *TxOut + func (t *TxOut) SerializeSize() int + type TxSig struct + func (sig *TxSig) SerializeSize() int