Documentation ¶
Index ¶
- Constants
- func CreateRandomKeyPair(now int64) (*ecdsa.PrivateKey, error)
- type Account
- func (a *Account) Authorise(password string) bool
- func (a *Account) CreateCollectionAccount(accountId int, passPhrase string, createCollection bool) error
- func (a *Account) CreatePodAccount(accountId int, passPhrase string, createPod bool) error
- func (a *Account) CreateUserAccount(passPhrase, mnemonic string) (string, string, error)
- func (a *Account) DeletePodAccount(accountId int)
- func (a *Account) GetAddress(index int) utils.Address
- func (a *Account) GetEmptyAccountInfo() *Info
- func (a *Account) GetPodAccountInfo(index int) (*Info, error)
- func (a *Account) GetUserAccountInfo() *Info
- func (a *Account) GetUserPrivateKey(index int) *ecdsa.PrivateKey
- func (a *Account) LoadUserAccount(passPhrase, encryptedMnemonic string) error
- type Info
- type Wallet
Constants ¶
View Source
const (
UserAccountIndex = -1
)
Variables ¶
This section is empty.
Functions ¶
func CreateRandomKeyPair ¶
func CreateRandomKeyPair(now int64) (*ecdsa.PrivateKey, error)
Types ¶
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
func (*Account) CreateCollectionAccount ¶
func (*Account) CreatePodAccount ¶
func (*Account) CreateUserAccount ¶
func (*Account) DeletePodAccount ¶
func (*Account) GetEmptyAccountInfo ¶
func (*Account) GetUserAccountInfo ¶
func (*Account) GetUserPrivateKey ¶
func (a *Account) GetUserPrivateKey(index int) *ecdsa.PrivateKey
func (*Account) LoadUserAccount ¶
type Info ¶
type Info struct {
// contains filtered or unexported fields
}
func (*Info) GetAddress ¶
func (*Info) GetPrivateKey ¶
func (ai *Info) GetPrivateKey() *ecdsa.PrivateKey
func (*Info) GetPublicKey ¶
func (*Info) IsReadOnlyPod ¶
func (*Info) SetAddress ¶
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) CreateAccount ¶
Click to show internal directories.
Click to hide internal directories.