mirror of
https://github.com/bitcoin/bips.git
synced 2025-12-22 14:45:19 +00:00
Updated Comments:BIP 0174 (markdown)
parent
d9cc3f6ced
commit
b93f08b593
@ -3,3 +3,13 @@
|
|||||||
* Partial signature entries use the map key `{0x02}|{public key}`. However, a single public key may be involved in signing multiple inputs, and the signature will differ in each one. Since the map keys are to be unique, this is a problem. I suggest the following map key instead: `{0x02}|{input index}|{pubkey index}`
|
* Partial signature entries use the map key `{0x02}|{public key}`. However, a single public key may be involved in signing multiple inputs, and the signature will differ in each one. Since the map keys are to be unique, this is a problem. I suggest the following map key instead: `{0x02}|{input index}|{pubkey index}`
|
||||||
|
|
||||||
* HD derivation entries waste space by repeating the public key. I recommend using the following map key instead: `{0x03}|{input index}|{pubkey index}`, which also matches previous point.
|
* HD derivation entries waste space by repeating the public key. I recommend using the following map key instead: `{0x03}|{input index}|{pubkey index}`, which also matches previous point.
|
||||||
|
|
||||||
|
## In response to Dev Random from achow101
|
||||||
|
|
||||||
|
> However, a single public key may be involved in signing multiple inputs, and the signature will differ in each one. Since the map keys are to be unique, this is a problem.
|
||||||
|
|
||||||
|
Each input has its own partial signatures map; it isn't global.
|
||||||
|
|
||||||
|
> HD derivation entries waste space by repeating the public key. I recommend using the following map key instead: `{0x03}|{input index}|{pubkey index}`, which also matches previous point.
|
||||||
|
|
||||||
|
The hd keypaths (unlike the partial signatures map) is global. Public keys are not duplicated in the map.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user