summaryrefslogtreecommitdiff
path: root/bip-0143.mediawiki
diff options
context:
space:
mode:
authorJohnson Lau <jl2012@users.noreply.github.com>2016-03-29 01:19:50 +0800
committerJohnson Lau <jl2012@users.noreply.github.com>2016-03-29 01:19:50 +0800
commitcb81c9ab5f2a48fa87118dd278193bb113a4aa0c (patch)
treef47077b07a4975443781a26df2edc07f9c5af32d /bip-0143.mediawiki
parent4650545169575fd8df22201b1817b21e95ae0dfc (diff)
downloadbips-cb81c9ab5f2a48fa87118dd278193bb113a4aa0c.tar.xz
BIP143: Provide private key used in the example
Diffstat (limited to 'bip-0143.mediawiki')
-rw-r--r--bip-0143.mediawiki4
1 files changed, 3 insertions, 1 deletions
diff --git a/bip-0143.mediawiki b/bip-0143.mediawiki
index 72ef22d..4c6503b 100644
--- a/bip-0143.mediawiki
+++ b/bip-0143.mediawiki
@@ -137,7 +137,9 @@ Refer to the reference implementation, reproduced below, for the precise algorit
scriptPubKey: 2103c9f4836b9a4f77fc0d81f7bcb01b7f1b35916864b9476c241ce9fc198bd25432ac value: 6.25
The second input comes from a P2WPKH witness program:
- scriptPubKey: 00141d0f172a0ecb48aee1be1f2687d2963ae33f71a1, value: 6
+ scriptPubKey : 00141d0f172a0ecb48aee1be1f2687d2963ae33f71a1, value: 6
+ private key : 619c335025c7f4012e556c2a58b2506e30b8511b53ade95ea316fd8c3286feb9
+ public key : 025476c2e83188368da1ff3e292e7acafcdb3566bb0ad253f62fc70f07aeee6357
To sign it with a nHashType of 1 (SIGHASH_ALL):