Commit 8fd68a7
committed
musig: Add warning to
libsecp256k1 states that the byte format
`SecretNonce::dangerous_into_bytes` returns is not guaranteed to be
stable, and therefore rust-secp256k1 users must be careful to only pass
the result of `dangerous_into_bytes` to a compatible
`dangerous_from_bytes`, according to version and platform. The simplest
and most conservative strategy is to only consider same-versioned and
same-platform bytes as compatible. In practice, the format is unlikely
to change much if at all between most versions, so more permissive
strategies can be employed with research and great care by the user.SecretNonce::dangerous_into_bytes about encoding instability1 parent f4c13b7 commit 8fd68a7
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
653 | 653 | | |
654 | 654 | | |
655 | 655 | | |
656 | | - | |
| 656 | + | |
657 | 657 | | |
658 | 658 | | |
659 | 659 | | |
| |||
684 | 684 | | |
685 | 685 | | |
686 | 686 | | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
687 | 694 | | |
688 | 695 | | |
689 | 696 | | |
690 | 697 | | |
691 | 698 | | |
692 | 699 | | |
693 | | - | |
| 700 | + | |
694 | 701 | | |
695 | 702 | | |
696 | 703 | | |
| |||
0 commit comments