diff --git a/emscripten/test.js b/emscripten/test.js index b0a6d1bea..acaeb600c 100644 --- a/emscripten/test.js +++ b/emscripten/test.js @@ -11,7 +11,7 @@ var nodeStruct = { child_num: node.index, fingerprint: node.parentFingerprint, chain_code: node.chainCode, - public_key: node.keyPair.getPublicKeyBuffer().toString('hex') + public_key: node.keyPair.getPublicKeyBuffer() }; var nodeSerialized = crypto.serializeNode(nodeStruct);