Documentation ¶
Index ¶
- type Account
- type Wallet
- func (w *Wallet) AddBlock(ctx context.Context, block ledger.Block) error
- func (w *Wallet) AddUTXO(ctx context.Context, utxo *models.Utxo) error
- func (w *Wallet) Address() string
- func (w *Wallet) BlockHeight(ctx context.Context) (int64, error)
- func (w *Wallet) DeleteUTXO(ctx context.Context, utxo ledger.Outpoint) error
- func (w *Wallet) FetchBlocks(ctx context.Context) error
- func (w *Wallet) GetBalance(ctx context.Context) (uint64, error)
- func (w *Wallet) GetUTXOs(ctx context.Context) ([]*models.Utxo, error)
- func (w *Wallet) MatchesOurWallet(output ledger.TransactionOutput) (bool, error)
- func (w *Wallet) PublicKey() ed25519.PublicKey
- func (w *Wallet) SendCoins(ctx context.Context, target ledger.Address, amount uint32) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { PublicKey ed25519.PublicKey PrivateKey ed25519.PrivateKey // May be nil }
func GenerateAccount ¶
func (*Account) P2WPKHAddress ¶
func (ac *Account) P2WPKHAddress(v ledger.AddressVersion) *ledger.P2WPKHAddress
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) DeleteUTXO ¶
func (*Wallet) MatchesOurWallet ¶
func (w *Wallet) MatchesOurWallet(output ledger.TransactionOutput) (bool, error)
Click to show internal directories.
Click to hide internal directories.