Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PublicKeyNotFound = errors.New("public key not found")
Functions ¶
Types ¶
type EmbeddedWalletImpl ¶ added in v0.5.0
type EmbeddedWalletImpl struct {
// contains filtered or unexported fields
}
func NewEmbeddedWallet ¶ added in v0.5.0
func NewEmbeddedWallet(path Loader, seeder seeder, scheme proto.Scheme) *EmbeddedWalletImpl
func (*EmbeddedWalletImpl) Load ¶ added in v0.5.0
func (a *EmbeddedWalletImpl) Load(password []byte) error
func (*EmbeddedWalletImpl) Seeds ¶ added in v0.5.0
func (a *EmbeddedWalletImpl) Seeds() [][]byte
func (*EmbeddedWalletImpl) SignTransactionWith ¶ added in v0.5.0
func (a *EmbeddedWalletImpl) SignTransactionWith(pk crypto.PublicKey, tx proto.Transaction) error
type LoaderImpl ¶ added in v0.5.0
type LoaderImpl struct {
// contains filtered or unexported fields
}
func NewLoader ¶ added in v0.5.0
func NewLoader(path string) LoaderImpl
func (LoaderImpl) Load ¶ added in v0.5.0
func (a LoaderImpl) Load() ([]byte, error)
type Stub ¶ added in v0.8.0
type Stub struct {
S [][]byte
}
func (Stub) SignTransactionWith ¶ added in v0.8.0
type Wallet ¶
type WalletFormat ¶
type WalletFormat struct {
Seed [][]byte `json:"seeds"`
}
type WalletImpl ¶ added in v0.5.0
type WalletImpl struct { Version uint32 // contains filtered or unexported fields }
func NewWallet ¶ added in v0.5.0
func NewWallet() *WalletImpl
func (*WalletImpl) AddSeed ¶ added in v0.5.0
func (a *WalletImpl) AddSeed(seed []byte) error
func (*WalletImpl) Encode ¶ added in v0.5.0
func (a *WalletImpl) Encode(password []byte) ([]byte, error)
func (*WalletImpl) Seeds ¶ added in v0.5.0
func (a *WalletImpl) Seeds() [][]byte
Click to show internal directories.
Click to hide internal directories.