Versions in this module Expand all Collapse all v0 v0.2.1 Mar 4, 2015 Changes in this version + const ENTRYCREDIT_PKEY + const FACTOID_ADDR + const FaucetTxidStr + const GenesisAddress + const TxPoolAllocSize + func AddSingleSigToTxMsg(txm *TxMsg, ss *SingleSignature) + func AddressFromPubKey(pk *[32]byte, netID byte) string + func EncodeAddress(hashokey Address, netID byte) string + func GetBalance(address string) (bal int64) + func IsFaucet(in *Input) bool + func NewDBEntryFromFBlock(b *FBlock) *notaryapi.DBEntry + func NewOrphanPool() *orphanpool + func NewTxPool() *txpool + func TxMsgToWire(txm *TxMsg) (tx *factomwire.MsgTx) + func VerifyAddressReveal(address Address, reveal AddressReveal) bool + func VerifyInputSig(in *Input, sig *InputSig, tx *Tx) bool + func VerifyTx(tx *Tx) bool + type Address notaryapi.ByteArray + func DecodeAddress(addr string) (hashokey Address, netID byte, err error) + type AddressReveal notaryapi.DetachedPublicKey + type ByFBlockIDAccending []FBlock + func (f ByFBlockIDAccending) Len() int + func (f ByFBlockIDAccending) Less(i, j int) bool + func (f ByFBlockIDAccending) Swap(i, j int) + type EntryCreditAddress AddressReveal + type FBlock struct + Chain *FChain + FBHash *notaryapi.Hash + Header FBlockHeader + IsSealed bool + Salt *notaryapi.Hash + Transactions []Tx + func CreateFBlock(chain *FChain, prev *FBlock, cap uint) (b *FBlock, err error) + func FactoidGenesis(net factomwire.FactomNet) (genesis *FBlock) + func (b *FBlock) AddFBTransaction(t Tx) (err error) + func (b *FBlock) MarshalBinary() (data []byte, err error) + func (b *FBlock) MarshalledSize() uint64 + func (b *FBlock) UnmarshalBinary(data []byte) (err error) + type FBlockHeader struct + Height uint64 + PrevBlockHash *notaryapi.Hash + TimeStamp int64 + TxCount uint32 + func NewFBlockHeader(blockId uint64, prevHash *notaryapi.Hash, merkle *notaryapi.Hash) *FBlockHeader + func (b *FBlockHeader) MarshalBinary() (data []byte, err error) + func (b *FBlockHeader) MarshalledSize() uint64 + func (b *FBlockHeader) UnmarshalBinary(data []byte) (err error) + type FChain struct + BlockMutex sync.Mutex + Blocks []*FBlock + ChainID *notaryapi.Hash + CurrentBlock *FBlock + Name [][]byte + NextBlockID uint64 + func (b *FChain) MarshalBinary() (data []byte, err error) + func (b *FChain) MarshalledSize() uint64 + func (b *FChain) UnmarshalBinary(data []byte) (err error) + type FactoidPool struct + func NewFactoidPool() *FactoidPool + func (fp *FactoidPool) AddGenesisBlock() + func (fp *FactoidPool) AddToMemPool() (verified []*notaryapi.HashF) + func (fp *FactoidPool) Confirm(fm *factomwire.MsgConfirmation) (ok bool, confirmed []*notaryapi.HashF) + func (fp *FactoidPool) GetTxContext() *Tx + func (fp *FactoidPool) SetContext(tx *factomwire.MsgTx) + func (fp *FactoidPool) Utxo() *Utxo + func (fp *FactoidPool) Verify() (ret bool) + type Input struct + Index uint32 + RevealAddr AddressReveal + Txid Txid + func NewFaucetIn() *Input + func NewFaucetInput(nonce uint32) *Input + func NewInput(id *Txid, index uint32, reveal AddressReveal) *Input + func (i *Input) MarshalBinary() (data []byte, err error) + func (i *Input) MarshalledSize() uint64 + func (i *Input) UnmarshalBinary(data []byte) (err error) + func (o *Input) String() string + type InputSig struct + Hint rune + Sigs []SingleSignature + func (ins *InputSig) AddSig(ss SingleSignature) + func (is *InputSig) MarshalBinary() (data []byte, err error) + func (is *InputSig) MarshalledSize() uint64 + func (is *InputSig) UnmarshalBinary(data []byte) (err error) + type MultisigReveal struct + Addresses []AddressReveal + NumRequired uint8 + type Output struct + Amount int64 + ToAddr Address + Type byte + func NewOutput(ty byte, amount int64, to Address) *Output + func OutputsTx(tx *Tx) []Output + func (o *Output) MarshalBinary() (data []byte, err error) + func (o *Output) MarshalledSize() uint64 + func (o *Output) String() string + func (o *Output) ToAddressString() string + func (o *Output) UnmarshalBinary(data []byte) (err error) + type SingleSignature struct + Hint rune + Sig notaryapi.DetachedSignature + func NewSingleSignature(insig *notaryapi.DetachedSignature) (ss *SingleSignature) + func SingleSigFromByte(sb []byte) (sig SingleSignature) + func (s *SingleSignature) MarshalBinary() (data []byte, err error) + func (s *SingleSignature) MarshalledSize() uint64 + func (s *SingleSignature) String() string + func (s *SingleSignature) UnmarshalBinary(data []byte) (err error) + type Tx struct + Txm *TxMsg + func NewTx(txm *TxMsg) *Tx + func (tx *Tx) Digest() []byte + func (tx *Tx) Id() *Txid + type TxData struct + Inputs []Input + LockTime uint32 + Outputs []Output + func NewTxData() *TxData + func (td *TxData) AddInput(in Input) + func (td *TxData) AddOutput(out Output) + func (td *TxData) Txid(bin *[]byte) (txid *Txid) + func (tx *TxData) MarshalBinary() (data []byte, err error) + func (tx *TxData) MarshalledSize() uint64 + func (tx *TxData) UnmarshalBinary(data []byte) (err error) + type TxMsg struct + Sigs []InputSig + TxData *TxData + func NewTxFromInputToAddr(in *Input, snowAmount int64, to Address) (txm *TxMsg) + func NewTxFromOutputToAddr(txid *Txid, outs []Output, outnum uint32, from AddressReveal, to Address) (txm *TxMsg) + func NewTxMsg(td *TxData) *TxMsg + func TxMsgFromWire(tx *factomwire.MsgTx) (txm *TxMsg) + func (tm *TxMsg) AddInputSig(is InputSig) + func (txm *TxMsg) MarshalBinary() (data []byte, err error) + func (txm *TxMsg) MarshalledSize() uint64 + func (txm *TxMsg) Txid(bin *[]byte) *Txid + func (txm *TxMsg) UnmarshalBinary(data []byte) (err error) + type TxOutSpent struct + Outs []Output + Spent TxSpentList + type TxProcessor interface + AddToMemPool func() []*notaryapi.HashF + Confirm func(*factomwire.MsgConfirmation) (bool, []*notaryapi.HashF) + SetContext func(*factomwire.MsgTx) + Verify func() bool + type TxSpentList []bool + type Txid notaryapi.HashF + var FaucetTxid *Txid + func NewTxidFromString(stxid string) (txid *Txid) + func (txid *Txid) FromString(stxid string) *Txid + func (txid *Txid) String() string + type Utxo struct + BalanceByAddress map[string]int64 + Txspent map[Txid]TxOutSpent + var GlobalUtxo Utxo + func GetGlobUtxo() *Utxo + func NewUtxo() Utxo + func (u *Utxo) AddTx(t *Tx) + func (u *Utxo) AddUtxo(id *Txid, outs []Output) + func (u *Utxo) AddVerifiedTxList(tx []Tx) + func (u *Utxo) AddressBalance(addr string) int64 + func (u *Utxo) InputsKnown(in []Input) (bool, []*Txid) + func (u *Utxo) IsValid(in []Input) bool + func (u *Utxo) Spend(in []Input)