From c59336c1f2dba37f6b8d64325ce5165cbcd923bc Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Tue, 25 Mar 2014 15:56:43 +1100 Subject: [PATCH] Uses previously generated private key hex string instead --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 18f2a7b..53f7485 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,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 the WIF key format -key = new Bitcoin.ECKey("5Jxfda2afuyMw3iaxzAwv6FvAs3XxmjV5y3GPAjZDEhRNJaFG5a") +// Initialize a private key using hex +key = new Bitcoin.ECKey("8c112cf628362ecf4d482f68af2dbb50c8a2cb90d226215de925417aa9336a48") // Sign the first input with the new key tx.sign(0, key)