add comment to identity.js

This commit is contained in:
Manuel Araoz 2014-11-20 11:44:46 -03:00
parent 5dd3eae34f
commit 481aa04cdb
1 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,10 @@ var base58check = require('./base58check');
var constants = require('./constants');
var Hash = require('./hash');
/**
* See https://en.bitcoin.it/wiki/Identity_protocol_v1#Type_2_.28ephemeral.29
*/
function Identity(buf) {
// TODO: instantiate identities without providing any configuration
if (!(this instanceof Identity)) return new Identity(buf);