From 1e70e31e9f9a49313d3f0d967dbf8d103c7f6d81 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Sun, 25 May 2014 10:26:24 +1000 Subject: [PATCH] README: change fromHex to fromWIF --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f421dbc..081c5cd 100644 --- a/README.md +++ b/README.md @@ -87,8 +87,8 @@ tx.addInput("aa94ab02c182214f090e99a0d57021caffd0f195a81c24602b1028b130b63e31", // Add the output (who to pay to) of the form [payee's address, amount in satoshis] tx.addOutput("1Gokm82v6DmtwKEB8AiVhm82hyFSsEvBDK", 15000) -// Initialize a private key using hex -key = Bitcoin.ECKey.fromHex("8c112cf628362ecf4d482f68af2dbb50c8a2cb90d226215de925417aa9336a48") +// Initialize a private key using WIF +key = Bitcoin.ECKey.fromWIF("L1uyy5qTuGrVXrmrsvHWHgVzW9kKdrp27wBC7Vs6nZDTF2BRUVwy") // Sign the first input with the new key tx.sign(0, key)