@@ -304,8 +304,8 @@ mod tests {
304
304
305
305
#[ test]
306
306
#[ cfg( all( feature = "std" , feature = "rand-std" ) ) ]
307
- fn test_schnorrsig_sign_with_aux_rand_verify ( ) {
308
- test_schnorrsig_sign_helper ( |secp, msg, seckey, rng| {
307
+ fn schnorr_sign_with_aux_rand_verify ( ) {
308
+ sign_helper ( |secp, msg, seckey, rng| {
309
309
let mut aux_rand = [ 0u8 ; 32 ] ;
310
310
rng. fill_bytes ( & mut aux_rand) ;
311
311
secp. sign_schnorr_with_aux_rand ( msg, seckey, & aux_rand)
@@ -314,30 +314,30 @@ mod tests {
314
314
315
315
#[ test]
316
316
#[ cfg( all( feature = "std" , feature = "rand-std" ) ) ]
317
- fn test_schnorrsig_sign_with_rng_verify ( ) {
318
- test_schnorrsig_sign_helper ( |secp, msg, seckey, mut rng| {
317
+ fn schnor_sign_with_rng_verify ( ) {
318
+ sign_helper ( |secp, msg, seckey, mut rng| {
319
319
secp. sign_schnorr_with_rng ( msg, seckey, & mut rng)
320
320
} )
321
321
}
322
322
323
323
#[ test]
324
324
#[ cfg( all( feature = "std" , feature = "rand-std" ) ) ]
325
- fn test_schnorrsig_sign_verify ( ) {
326
- test_schnorrsig_sign_helper ( |secp, msg, seckey, _| {
325
+ fn schnorr_sign_verify ( ) {
326
+ sign_helper ( |secp, msg, seckey, _| {
327
327
secp. sign_schnorr ( msg, seckey)
328
328
} )
329
329
}
330
330
331
331
#[ test]
332
332
#[ cfg( all( feature = "std" , feature = "rand-std" ) ) ]
333
- fn test_schnorrsig_sign_no_aux_rand_verify ( ) {
334
- test_schnorrsig_sign_helper ( |secp, msg, seckey, _| {
333
+ fn schnorr_sign_no_aux_rand_verify ( ) {
334
+ sign_helper ( |secp, msg, seckey, _| {
335
335
secp. sign_schnorr_no_aux_rand ( msg, seckey)
336
336
} )
337
337
}
338
338
339
339
#[ cfg( all( feature = "std" , feature = "rand-std" ) ) ]
340
- fn test_schnorrsig_sign_helper (
340
+ fn sign_helper (
341
341
sign : fn ( & Secp256k1 < All > , & Message , & KeyPair , & mut ThreadRng ) -> Signature ,
342
342
) {
343
343
let secp = Secp256k1 :: new ( ) ;
@@ -361,7 +361,7 @@ mod tests {
361
361
#[ test]
362
362
#[ cfg( any( feature = "alloc" , feature = "std" ) ) ]
363
363
#[ cfg( not( fuzzing) ) ] // fixed sig vectors can't work with fuzz-sigs
364
- fn test_schnorrsig_sign ( ) {
364
+ fn schnorr_sign ( ) {
365
365
let secp = Secp256k1 :: new ( ) ;
366
366
367
367
let hex_msg = hex_32 ! ( "E48441762FB75010B2AA31A512B62B4148AA3FB08EB0765D76B252559064A614" ) ;
@@ -384,7 +384,7 @@ mod tests {
384
384
#[ test]
385
385
#[ cfg( not( fuzzing) ) ] // fixed sig vectors can't work with fuzz-sigs
386
386
#[ cfg( any( feature = "alloc" , feature = "std" ) ) ]
387
- fn test_schnorrsig_verify ( ) {
387
+ fn schnorr_verify ( ) {
388
388
let secp = Secp256k1 :: new ( ) ;
389
389
390
390
let hex_msg = hex_32 ! ( "E48441762FB75010B2AA31A512B62B4148AA3FB08EB0765D76B252559064A614" ) ;
0 commit comments