Wallet/js/models/storage/Base.js
Ryan X. Charles 69c5c3bc2e 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.
2014-04-17 18:04:56 -03:00

38 lines
745 B
JavaScript

'use strict';
var imports = require('soop').imports();
function Storage() {
}
// get value by key
Storage.prototype.get = function(walletId,k) {
};
// set value for key
Storage.prototype.set = function(walletId, k, v) {
};
// remove value for key
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() {
};
module.exports = require('soop')(Storage);