Remove boilerplate
This commit is contained in:
parent
105f01ec7e
commit
b9f504f800
6
index.js
6
index.js
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user