Remove boilerplate

This commit is contained in:
Kagami Hiiragi 2015-01-02 16:47:09 +03:00
parent 105f01ec7e
commit b9f504f800

View File

@ -12,11 +12,9 @@ var secp256k1 = require("secp256k1");
* Compute the public key for a given private key. * Compute the public key for a given private key.
* @param {Buffer} publicKey A 32-byte private key * @param {Buffer} publicKey A 32-byte private key
* @return {Buffer} A 65-byte public key * @return {Buffer} A 65-byte public key
* @function
*/ */
function getPublic(privateKey) { var getPublic = exports.getPublic = secp256k1.createPublicKey;
return secp256k1.createPublicKey(privateKey);
}
exports.getPublic = getPublic;
/** /**
* Create an ECDSA signature. * Create an ECDSA signature.