From ff3679a3fead9fba3b834ff0e5219b41001ea406 Mon Sep 17 00:00:00 2001 From: Vitalik Buterin Date: Wed, 8 Jan 2014 18:51:33 -0500 Subject: [PATCH] Added 'wif' as an export format --- src/eckey.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/eckey.js b/src/eckey.js index 1a6b7e5..d2082c2 100644 --- a/src/eckey.js +++ b/src/eckey.js @@ -57,6 +57,7 @@ ECKey.prototype.export = function (format) { if (this.compressed) bytes.push(1) return format === "base58" ? base58.checkEncode(bytes,128) + : format === "wif" ? base58.checkEncode(bytes,128) : format === "bin" ? conv.bytesToString(bytes) : format === "bytes" ? bytes : format === "hex" ? conv.bytesToHex(bytes)