1 | var crypto = require('../lib/crypto.js');
|
2 |
|
3 | module.exports = {
|
4 | account: function (secret) {
|
5 | var kp = crypto.keypair(secret);
|
6 | var address = crypto.getId(new Buffer(kp.publicKey, 'hex'));
|
7 |
|
8 | return {
|
9 | keypair: kp,
|
10 | address: address,
|
11 | secret : secret
|
12 | }
|
13 | },
|
14 |
|
15 | isValidSecret: crypto.isValidSecret
|
16 | }
|