File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1169,7 +1169,7 @@ mod fuzz_dummy {
1169
1169
) -> c_int {
1170
1170
check_context_flags ( cx, 0 ) ;
1171
1171
if !pk_parity. is_null ( ) {
1172
- * pk_parity = ( ( * keypair) . 0 [ 32 ] == 0 ) . into ( ) ;
1172
+ * pk_parity = ( ( * keypair) . 0 [ 64 ] == 0 ) . into ( ) ;
1173
1173
}
1174
1174
( * pubkey) . 0 . copy_from_slice ( & ( * keypair) . 0 [ 32 ..] ) ;
1175
1175
1
Original file line number Diff line number Diff line change @@ -2180,8 +2180,6 @@ mod test {
2180
2180
let ( want_tweaked_xonly, tweaked_kp_parity) = XOnlyPublicKey :: from_keypair ( & tweaked_kp) ;
2181
2181
2182
2182
assert_eq ! ( tweaked_xonly, want_tweaked_xonly) ;
2183
-
2184
- #[ cfg( not( fuzzing) ) ]
2185
2183
assert_eq ! ( parity, tweaked_kp_parity) ;
2186
2184
2187
2185
assert ! ( xonly. tweak_add_check( & s, & tweaked_xonly, parity, tweak) ) ;
You can’t perform that action at this time.
0 commit comments