summaryrefslogtreecommitdiff
path: root/bip-0327.mediawiki
diff options
context:
space:
mode:
authorsiv2r <siv2ram@gmail.com>2024-07-17 15:32:20 +0530
committersiv2r <siv2ram@gmail.com>2024-07-19 23:52:41 +0530
commit1c6ac0c4cf1f39ea806b8594d6060b6d52fd1439 (patch)
treed261bc575aaaa3074e0cc402ad15c03a8631b081 /bip-0327.mediawiki
parentaf8f9e470bc5e1b908c988f344d0bbaef9eef39d (diff)
bip327: minor fixes
- An error test vector doesn’t specify the InvalidContributionError type - In *DeterministicSign*, use GetXonlyPubkey instead of GetPubkey - The key_agg_and_tweak fn doesn’t specify the return type - In partial_sig_verify_internal, the pubkey arg should be PlainPk - Remove unused enumerate() fn calls - In test_sign_verify, add an additional assert statement
Diffstat (limited to 'bip-0327.mediawiki')
-rw-r--r--bip-0327.mediawiki2
1 files changed, 1 insertions, 1 deletions
diff --git a/bip-0327.mediawiki b/bip-0327.mediawiki
index b659629..77a0024 100644
--- a/bip-0327.mediawiki
+++ b/bip-0327.mediawiki
@@ -619,7 +619,7 @@ Algorithm ''DeterministicSign(sk, aggothernonce, pk<sub>1..u</sub>, tweak<sub>1.
* Let ''keyagg_ctx<sub>0</sub> = KeyAgg(pk<sub>1..u</sub>)''; fail if that fails
* For ''i = 1 .. v'':
** Let ''keyagg_ctx<sub>i</sub> = ApplyTweak(keyagg_ctx<sub>i-1</sub>, tweak<sub>i</sub>, is_xonly_t<sub>i</sub>)''; fail if that fails
-* Let ''aggpk = GetPubkey(keyagg_ctx<sub>v</sub>)''
+* Let ''aggpk = GetXonlyPubkey(keyagg_ctx<sub>v</sub>)''
* Let ''k<sub>i</sub> = int(hash<sub>MuSig/deterministic/nonce</sub>(sk' || aggothernonce || aggpk || bytes(8, len(m)) || m || bytes(1, i - 1))) mod n'' for ''i = 1,2''
* Fail if ''k<sub>1</sub> = 0'' or ''k<sub>2</sub> = 0''
* Let ''R<sub>⁎,1</sub> = k<sub>1</sub>⋅G, R<sub>⁎,2</sub> = k<sub>2</sub>⋅G''