add setFromObj and getEncryptedObj to storage classes
This is so that you can export the file from the browser and use the same file in the wallet file from the command-line. I have made encryption work equivalently between the browser and node.
This commit is contained in:
parent
aaaed8e7ee
commit
69c5c3bc2e
8 changed files with 140 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ Storage.prototype.get = function(walletId,k) {
|
|||
};
|
||||
|
||||
// set value for key
|
||||
Storage.prototype.set = function(walletId,v) {
|
||||
Storage.prototype.set = function(walletId, k, v) {
|
||||
};
|
||||
|
||||
// remove value for key
|
||||
|
|
@ -20,6 +20,17 @@ Storage.prototype.remove = function(walletId, k) {
|
|||
Storage.prototype.getWalletIds = function() {
|
||||
};
|
||||
|
||||
// obj contains keys to be set
|
||||
Storage.prototype.setFromObj = function(walletId, obj) {
|
||||
};
|
||||
|
||||
Storage.prototype.setFromEncryptedObj = function(walletId, obj) {
|
||||
};
|
||||
|
||||
// wallet export - hex of encrypted wallet object
|
||||
Storage.prototype.getEncryptedObj = function(walletId) {
|
||||
};
|
||||
|
||||
// remove all values
|
||||
Storage.prototype.clearAll = function() {
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue