PKWallet
Extends:
libsimba-js Private Key Wallet implementation Use when you already have access to the decrypted private key Wraps the [ethersjs]https://docs.ethers.io/ethers.js/html/ library.
Constructor Summary
Public Constructor | ||
public |
constructor(private_key: string, signingConfirmation: function) Use when you already have access to the decrypted private key |
Method Summary
Public Methods | ||
public |
|
|
public |
generateWallet(passkey: string, progressCB: function): Promise |
|
public |
getAddress(): Promise<string> |
|
public |
getEncryptedJson(passkey: string, progressCB: function): Promise<string> |
|
public |
The mnemonic phrase for this wallet, or null if the mnemonic is unknown. |
|
public |
unlockWallet(passkey: string, progressCB: function): Promise |
|
public |
|
Protected Methods | ||
protected |
|
Private Methods | ||
private |
cleanPayload(payload: Object): string |
Inherited Summary
From class Wallet | ||
public |
|
|
public abstract |
|
|
public abstract |
generateWallet(passkey: string): Promise |
|
public abstract |
getAddress(): Promise<string> |
|
public abstract |
unlockWallet(passkey: string): Promise |
|
public abstract |
|
|
protected abstract |
|
Public Constructors
public constructor(private_key: string, signingConfirmation: function) source
Use when you already have access to the decrypted private key
Override:
Wallet#constructorPublic Methods
public generateWallet(passkey: string, progressCB: function): Promise source
Override:
Wallet#generateWalletpublic getMnemonic(): string source
The mnemonic phrase for this wallet, or null if the mnemonic is unknown.
public unlockWallet(passkey: string, progressCB: function): Promise source
Override:
Wallet#unlockWalletProtected Methods
protected sign(payload: Object): Promise<string> source
Override:
Wallet#signParams:
Name | Type | Attribute | Description |
payload | Object | The transaction to sign |