Update example code.
This commit is contained in:
parent
75cf4c4f9a
commit
4dfe9fd13d
|
@ -4,7 +4,8 @@ var Keypair = require('../lib/keypair');
|
|||
var pubkeyhash = new Buffer('3c3fa3d4adcaf8f52d5b1843975e122548269937', 'hex');
|
||||
var buf = Buffer.concat([new Buffer([0]), pubkeyhash]);
|
||||
|
||||
var keypair = new Keypair().fromString( buf.toString('hex') );
|
||||
var keypair = new Keypair();
|
||||
//var identity = new Identity().fromPubkey( keypair.pubkey );
|
||||
var identity = new Identity().fromPubkey( keypair.pubkey );
|
||||
|
||||
console.log( 'pubkey', keypair.pubkey.toString() );
|
||||
|
|
Loading…
Reference in New Issue