Versions in this module Expand all Collapse all v0 v0.0.8 Apr 4, 2019 Changes in this version + const CurrentVersion + func CanonicalKeyOrder(keys []string) []string + func DisableLog() + func LoadAndCreateSeries(ns walletdb.ReadWriteBucket, m *waddrmgr.Manager, version uint32, ...) error + func LoadAndEmpowerSeries(ns walletdb.ReadWriteBucket, m *waddrmgr.Manager, poolID string, ...) error + func LoadAndGetDepositScript(ns walletdb.ReadBucket, m *waddrmgr.Manager, poolID string, seriesID uint32, ...) ([]byte, error) + func LoadAndReplaceSeries(ns walletdb.ReadWriteBucket, m *waddrmgr.Manager, version uint32, ...) error + func SignTx(msgtx *wire.MsgTx, sigs TxSigs, mgr *waddrmgr.Manager, ...) error + func UseLogger(logger btclog.Logger) + type Branch uint32 + type ChangeAddress struct + func (a ChangeAddress) Branch() Branch + func (a ChangeAddress) Index() Index + func (a ChangeAddress) SeriesID() uint32 + func (a ChangeAddress) String() string + type Error struct + Description string + Err error + ErrorCode ErrorCode + func (e Error) Error() string + type ErrorCode int + const ErrCrypto + const ErrDatabase + const ErrInputSelection + const ErrInvalidBranch + const ErrInvalidScriptHash + const ErrInvalidValue + const ErrKeyChain + const ErrKeyDuplicate + const ErrKeyIsPrivate + const ErrKeyIsPublic + const ErrKeyMismatch + const ErrKeyNeuter + const ErrKeysPrivatePublicMismatch + const ErrPoolAlreadyExists + const ErrPoolNotExists + const ErrPreconditionNotMet + const ErrRawSigning + const ErrScriptCreation + const ErrSeriesAlreadyEmpowered + const ErrSeriesAlreadyExists + const ErrSeriesIDInvalid + const ErrSeriesIDNotSequential + const ErrSeriesNotActive + const ErrSeriesNotExists + const ErrSeriesSerialization + const ErrSeriesVersion + const ErrTooFewPublicKeys + const ErrTooManyReqSignatures + const ErrTxSigning + const ErrUnknownPubKey + const ErrWithdrawFromUnusedAddr + const ErrWithdrawalProcessing + const ErrWithdrawalStorage + const ErrWithdrawalTxStorage + func (e ErrorCode) String() string + type Index uint32 + type Ntxid string + type OutBailmentID string + type OutBailmentOutpoint struct + func (o OutBailmentOutpoint) Amount() acmutil.Amount + type OutputRequest struct + Address acmutil.Address + Amount acmutil.Amount + PkScript []byte + Server string + Transaction uint32 + func (r OutputRequest) String() string + type Pool struct + ID []byte + func Create(ns walletdb.ReadWriteBucket, m *waddrmgr.Manager, poolID []byte) (*Pool, error) + func Load(ns walletdb.ReadBucket, m *waddrmgr.Manager, poolID []byte) (*Pool, error) + func (p *Pool) ActivateSeries(ns walletdb.ReadWriteBucket, seriesID uint32) error + func (p *Pool) ChangeAddress(seriesID uint32, index Index) (*ChangeAddress, error) + func (p *Pool) CreateSeries(ns walletdb.ReadWriteBucket, version, seriesID, reqSigs uint32, ...) error + func (p *Pool) DepositScript(seriesID uint32, branch Branch, index Index) ([]byte, error) + func (p *Pool) DepositScriptAddress(seriesID uint32, branch Branch, index Index) (acmutil.Address, error) + func (p *Pool) EmpowerSeries(ns walletdb.ReadWriteBucket, seriesID uint32, rawPrivKey string) error + func (p *Pool) EnsureUsedAddr(ns, addrmgrNs walletdb.ReadWriteBucket, seriesID uint32, branch Branch, ...) error + func (p *Pool) LoadAllSeries(ns walletdb.ReadBucket) error + func (p *Pool) Manager() *waddrmgr.Manager + func (p *Pool) ReplaceSeries(ns walletdb.ReadWriteBucket, version, seriesID, reqSigs uint32, ...) error + func (p *Pool) Series(seriesID uint32) *SeriesData + func (p *Pool) StartWithdrawal(ns walletdb.ReadWriteBucket, addrmgrNs walletdb.ReadBucket, roundID uint32, ...) (*WithdrawalStatus, error) + func (p *Pool) WithdrawalAddress(ns, addrmgrNs walletdb.ReadBucket, seriesID uint32, branch Branch, index Index) (*WithdrawalAddress, error) + type PoolAddress interface + Branch func() Branch + Index func() Index + SeriesID func() uint32 + type RawSig []byte + type SeriesData struct + func (s *SeriesData) IsEmpowered() bool + type TxSigs [][]RawSig + type WithdrawalAddress struct + func (a WithdrawalAddress) Branch() Branch + func (a WithdrawalAddress) Index() Index + func (a WithdrawalAddress) SeriesID() uint32 + func (a WithdrawalAddress) String() string + type WithdrawalOutput struct + func (o *WithdrawalOutput) Address() string + func (o *WithdrawalOutput) Outpoints() []OutBailmentOutpoint + func (o *WithdrawalOutput) Status() string + func (o *WithdrawalOutput) String() string + type WithdrawalStatus struct + func (s *WithdrawalStatus) Fees() acmutil.Amount + func (s *WithdrawalStatus) NextChangeAddr() ChangeAddress + func (s *WithdrawalStatus) NextInputAddr() WithdrawalAddress + func (s *WithdrawalStatus) Outputs() map[OutBailmentID]*WithdrawalOutput + func (s *WithdrawalStatus) Sigs() map[Ntxid]TxSigs