Commit e68ee06
authored
add entries for BIP-340: public/private key and varsig (#398)
While bip340 operates on secp256k1, it makes sense to have separate values:
- public keys have a different format: 32-byte x-only (bip340) vs 33-byte prefix+x (secp256k1)
- private keys have the same format but different usage expectation
- algorithm are different: schnorr (bip340) vs ECDSA (secp256k1)
- signatures have a different format: 64-byte [R.x, s] (bip340) vs 64-byte [r, s] (secp256k1)
That is, they can't reasonable mix or interoperate.1 parent c89cc36 commit e68ee06
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
| 221 | + | |
| 222 | + | |
221 | 223 | | |
222 | 224 | | |
223 | 225 | | |
| |||
613 | 615 | | |
614 | 616 | | |
615 | 617 | | |
| 618 | + | |
616 | 619 | | |
617 | 620 | | |
618 | 621 | | |
| |||
0 commit comments