Wallet
Direct Subclass:
Constructor Summary
| Public Constructor | ||
| public |
constructor(signingConfirmation: *) Base class for libsimba Wallet implementations |
|
Member Summary
| Public Members | ||
| public |
|
|
Method Summary
| Public Methods | ||
| public abstract |
|
|
| public abstract |
generateWallet(passkey: string): Promise |
|
| public abstract |
getAddress(): Promise<string> |
|
| public abstract |
unlockWallet(passkey: string): Promise |
|
| public abstract |
|
|
| Protected Methods | ||
| protected abstract |
|
|
Public Constructors
public constructor(signingConfirmation: *) source
Base class for libsimba Wallet implementations
Params:
| Name | Type | Attribute | Description |
| signingConfirmation | * | {function} - an optional callback for requesting user permission to sign a transaction. Should resolve a promise with true for accept, and false (or reject) for reject. |
Public Members
public signingConfirmation: * source
Public Methods
public abstract deleteWallet() source
public abstract generateWallet(passkey: string): Promise source
Params:
| Name | Type | Attribute | Description |
| passkey | string | The pass key to lock the wallet |
public abstract unlockWallet(passkey: string): Promise source
Params:
| Name | Type | Attribute | Description |
| passkey | string | The pass key to unlock the wallet |
