Documentation ¶
Index ¶
- Constants
- func IsOpenAssetTransaction(tx *wire.MsgTx) bool
- func IsStealthTransaction(tx *wire.MsgTx) bool
- type OpenAsset
- type OpenAssetIssuanceOutput
- type OpenAssetMetadata
- type OpenAssetTransaction
- type OpenAssetTransferOutput
- type OpenAssetUtxo
- type SendTransaction
- type StealthTransaction
- type StealthUtxo
- type Utxo
- type Wallet
- func (w *Wallet) AddInputsAndChange(tx *wire.MsgTx, totalValueNeeded uint64) error
- func (w *Wallet) AddStealthInputsAndChange(tx *wire.MsgTx, totalValueNeeded uint64) error
- func (w *Wallet) AssetBalance(assetID []byte) uint64
- func (w *Wallet) Assets() []*OpenAsset
- func (w *Wallet) AssetsAddress() (string, error)
- func (w *Wallet) Balance() uint64
- func (w *Wallet) FindStealthUtxoFromTxIn(txi *wire.TxIn) (Utxo, *btcec.PrivateKey, error)
- func (w *Wallet) FindUtxoFromTxIn(txi *wire.TxIn) (Utxo, error)
- func (w *Wallet) FollowAsset(assetID []byte)
- func (w *Wallet) GenerateNormalSendTx(tx SendTransaction, stealthInputs bool) (*wire.MsgTx, error)
- func (w *Wallet) GenerateOpenAssetTx(tx OpenAssetTransaction) (*wire.MsgTx, error)
- func (w *Wallet) GenerateStealthTx(tx StealthTransaction, stealthInputs bool) (*wire.MsgTx, error)
- func (w *Wallet) GetStealthPrivateKey(encOTK []byte) (*btcec.PrivateKey, error)
- func (w *Wallet) InitKey() error
- func (w *Wallet) MyPKH() [20]byte
- func (w *Wallet) ProcessTransaction(tx *wire.MsgTx)
- func (w *Wallet) SendTransaction(tx *wire.MsgTx) (*chainhash.Hash, error)
- func (w *Wallet) SignMyInputs(tx *wire.MsgTx) error
- func (w *Wallet) StealthAddress() (string, error)
- func (w *Wallet) StealthBalance() uint64
- func (w *Wallet) UnfollowAsset(assetID []byte)
- func (w *Wallet) UpdateClient(c *rpcclient.Client)
- func (w *Wallet) VertcoinAddress() (string, error)
Constants ¶
View Source
const MINOUTPUT uint64 = 1000
Variables ¶
This section is empty.
Functions ¶
func IsOpenAssetTransaction ¶
func IsStealthTransaction ¶
Types ¶
type OpenAsset ¶
type OpenAsset struct { AssetID []byte Metadata OpenAssetMetadata Follow bool }
func OpenAssetFromBytes ¶
type OpenAssetIssuanceOutput ¶
type OpenAssetMetadata ¶
type OpenAssetTransaction ¶
type OpenAssetTransaction struct { NormalInputs []Utxo AssetInputs []OpenAssetUtxo Issuances []OpenAssetIssuanceOutput Transfers []OpenAssetTransferOutput ChangeAddress [20]byte Metadata OpenAssetMetadata }
type OpenAssetTransferOutput ¶
type OpenAssetUtxo ¶
func OpenAssetUtxoFromBytes ¶
func OpenAssetUtxoFromBytes(b []byte) OpenAssetUtxo
func (OpenAssetUtxo) Bytes ¶
func (oau OpenAssetUtxo) Bytes() []byte
type SendTransaction ¶
type StealthTransaction ¶
type StealthUtxo ¶
func StealthUtxoFromBytes ¶
func StealthUtxoFromBytes(b []byte) StealthUtxo
func (StealthUtxo) Bytes ¶
func (su StealthUtxo) Bytes() []byte
type Utxo ¶
func UtxoFromBytes ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) AddInputsAndChange ¶
func (*Wallet) AddStealthInputsAndChange ¶
func (*Wallet) AssetBalance ¶
func (*Wallet) AssetsAddress ¶
func (*Wallet) FindStealthUtxoFromTxIn ¶
func (*Wallet) FollowAsset ¶
func (*Wallet) GenerateNormalSendTx ¶
func (*Wallet) GenerateOpenAssetTx ¶
func (w *Wallet) GenerateOpenAssetTx(tx OpenAssetTransaction) (*wire.MsgTx, error)
func (*Wallet) GenerateStealthTx ¶
func (*Wallet) GetStealthPrivateKey ¶
func (w *Wallet) GetStealthPrivateKey(encOTK []byte) (*btcec.PrivateKey, error)
func (*Wallet) ProcessTransaction ¶
func (*Wallet) SendTransaction ¶
func (*Wallet) StealthAddress ¶
func (*Wallet) StealthBalance ¶
func (*Wallet) UnfollowAsset ¶
func (*Wallet) UpdateClient ¶
func (*Wallet) VertcoinAddress ¶
Click to show internal directories.
Click to hide internal directories.