diff options
author | Sanket Kanjalkar <sanket1729@gmail.com> | 2021-07-09 01:28:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 01:28:07 -0700 |
commit | f62639ab52794fe3b99d4a1c10e8ec4daff938d4 (patch) | |
tree | 9cb5247e5a985feced2e7f27301e9532564c72c3 /bip-0118.mediawiki | |
parent | 150ab6f5c3aca9da05fccc5b435e9667853407f4 (diff) | |
download | bips-f62639ab52794fe3b99d4a1c10e8ec4daff938d4.tar.xz |
BIP118: key version should be 0x01
Diffstat (limited to 'bip-0118.mediawiki')
-rw-r--r-- | bip-0118.mediawiki | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bip-0118.mediawiki b/bip-0118.mediawiki index 8fa3d52..a3a690b 100644 --- a/bip-0118.mediawiki +++ b/bip-0118.mediawiki @@ -131,8 +131,8 @@ Note that if ''hash_type & 0x40'' is zero, ''SigMsg118(hash_type,ext_flag) == Si To verify a signature ''sig'' for a BIP 118 public key ''p'': -* If the ''sig'' is 64 bytes long, return ''Verify(p, hash<sub>TapSigHash</sub>(0x00 || SigMsg118(0x00, 1) || SigExt118(0x00, 0x02), sig)'', where ''Verify'' is defined in [[bip-0340.mediawiki|BIP 340]]. -* If the ''sig'' is 65 bytes long, return ''sig[64] ≠ 0x00 and Verify(p, hash<sub>TapSighash</sub>(0x00 || SigMsg118(sig[64], 1) || SigExt118(sig[64], 0x02), sig[0:64])''. +* If the ''sig'' is 64 bytes long, return ''Verify(p, hash<sub>TapSigHash</sub>(0x00 || SigMsg118(0x00, 1) || SigExt118(0x00, 0x01), sig)'', where ''Verify'' is defined in [[bip-0340.mediawiki|BIP 340]]. +* If the ''sig'' is 65 bytes long, return ''sig[64] ≠ 0x00 and Verify(p, hash<sub>TapSighash</sub>(0x00 || SigMsg118(sig[64], 1) || SigExt118(sig[64], 0x01), sig[0:64])''. * Otherwise, fail. The key differences from [[bip-0342.mediawiki|BIP 342]] signature verification are: |