Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface { //Init creates a wallet or reads existed one Init(context.Context) (*Wallet, error) // Write writes a wallet to an implemented storage Write(context.Context, *Wallet) error // Close releases allocated resources of the storage Close() error }
Storage represents a storage for wallet It might be a file, memory or network implementation
func NewFileStorage ¶
NewFileStorage creates new Storage. It creates new filename or uses existed one
type Wallet ¶
Wallet represents a container with generated keys
func (*Wallet) Addresses ¶
func (w *Wallet) Addresses() []*btcutil.AddressPubKeyHash
Addresses returns all addresses for all existed keys
func (*Wallet) MarshalJSON ¶
MarshalJSON implements Marshaler interface
func (*Wallet) UnmarshalJSON ¶
UnmarshalJSON implements Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.