From b9f504f800a84d1cadadd64ea6db1bf0551293ff Mon Sep 17 00:00:00 2001 From: Kagami Hiiragi Date: Fri, 2 Jan 2015 16:47:09 +0300 Subject: [PATCH] Remove boilerplate --- index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 35f60bf..c8c865a 100644 --- a/index.js +++ b/index.js @@ -12,11 +12,9 @@ var secp256k1 = require("secp256k1"); * Compute the public key for a given private key. * @param {Buffer} publicKey A 32-byte private key * @return {Buffer} A 65-byte public key + * @function */ -function getPublic(privateKey) { - return secp256k1.createPublicKey(privateKey); -} -exports.getPublic = getPublic; +var getPublic = exports.getPublic = secp256k1.createPublicKey; /** * Create an ECDSA signature.