Documentation ¶
Index ¶
- Constants
- func CreateRandomKeyPair(now int64) (*ecdsa.PrivateKey, error)
- type Account
- func (a *Account) Authorise(password string) bool
- 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) GetPodAccountInfo(index int) (*AccountInfo, error)
- func (a *Account) GetUserAccountInfo() *AccountInfo
- func (a *Account) GetUserPrivateKey(index int) *ecdsa.PrivateKey
- func (a *Account) LoadUserAccount(passPhrase, encryptedMnemonic string) error
- type AccountInfo
- 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) CreatePodAccount ¶
func (*Account) CreateUserAccount ¶
func (*Account) DeletePodAccount ¶
func (*Account) GetPodAccountInfo ¶
func (a *Account) GetPodAccountInfo(index int) (*AccountInfo, error)
func (*Account) GetUserAccountInfo ¶
func (a *Account) GetUserAccountInfo() *AccountInfo
func (*Account) GetUserPrivateKey ¶
func (a *Account) GetUserPrivateKey(index int) *ecdsa.PrivateKey
func (*Account) LoadUserAccount ¶
type AccountInfo ¶
type AccountInfo struct {
// contains filtered or unexported fields
}
func (*AccountInfo) GetAddress ¶
func (ai *AccountInfo) GetAddress() utils.Address
func (*AccountInfo) GetPrivateKey ¶
func (ai *AccountInfo) GetPrivateKey() *ecdsa.PrivateKey
func (*AccountInfo) GetPublicKey ¶
func (ai *AccountInfo) GetPublicKey() *ecdsa.PublicKey
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) CreateAccount ¶
Click to show internal directories.
Click to hide internal directories.