@@ -270,7 +270,7 @@ pub fn create_inscription_type_0(
270270 if reveal_hash. starts_with ( reveal_tx_prefix) {
271271 // check if inscription locked to the correct address
272272 let recovery_key_pair = key_pair. tap_tweak ( SECP256K1 , merkle_root) ;
273- let ( x_only_pub_key, _parity) = recovery_key_pair. to_inner ( ) . x_only_public_key ( ) ;
273+ let ( x_only_pub_key, _parity) = recovery_key_pair. to_keypair ( ) . x_only_public_key ( ) ;
274274 assert_eq ! (
275275 Address :: p2tr_tweaked(
276276 TweakedPublicKey :: dangerous_assume_tweaked( x_only_pub_key) ,
@@ -445,7 +445,7 @@ pub fn create_inscription_type_1(
445445 // check if inscription locked to the correct address
446446 let recovery_key_pair = key_pair. tap_tweak ( SECP256K1 , merkle_root) ;
447447 let ( x_only_pub_key, _parity) =
448- recovery_key_pair. to_inner ( ) . x_only_public_key ( ) ;
448+ recovery_key_pair. to_keypair ( ) . x_only_public_key ( ) ;
449449 assert_eq ! (
450450 Address :: p2tr_tweaked(
451451 TweakedPublicKey :: dangerous_assume_tweaked( x_only_pub_key) ,
@@ -636,7 +636,7 @@ pub fn create_inscription_type_1(
636636 if reveal_hash. starts_with ( reveal_tx_prefix) {
637637 // check if inscription locked to the correct address
638638 let recovery_key_pair = key_pair. tap_tweak ( SECP256K1 , merkle_root) ;
639- let ( x_only_pub_key, _parity) = recovery_key_pair. to_inner ( ) . x_only_public_key ( ) ;
639+ let ( x_only_pub_key, _parity) = recovery_key_pair. to_keypair ( ) . x_only_public_key ( ) ;
640640 assert_eq ! (
641641 Address :: p2tr_tweaked(
642642 TweakedPublicKey :: dangerous_assume_tweaked( x_only_pub_key) ,
@@ -810,7 +810,7 @@ pub fn create_inscription_type_3(
810810 if reveal_hash. starts_with ( reveal_tx_prefix) {
811811 // check if inscription locked to the correct address
812812 let recovery_key_pair = key_pair. tap_tweak ( SECP256K1 , merkle_root) ;
813- let ( x_only_pub_key, _parity) = recovery_key_pair. to_inner ( ) . x_only_public_key ( ) ;
813+ let ( x_only_pub_key, _parity) = recovery_key_pair. to_keypair ( ) . x_only_public_key ( ) ;
814814 assert_eq ! (
815815 Address :: p2tr_tweaked(
816816 TweakedPublicKey :: dangerous_assume_tweaked( x_only_pub_key) ,
@@ -991,7 +991,7 @@ pub fn create_inscription_type_4(
991991 if reveal_hash. starts_with ( reveal_tx_prefix) {
992992 // check if inscription locked to the correct address
993993 let recovery_key_pair = key_pair. tap_tweak ( SECP256K1 , merkle_root) ;
994- let ( x_only_pub_key, _parity) = recovery_key_pair. to_inner ( ) . x_only_public_key ( ) ;
994+ let ( x_only_pub_key, _parity) = recovery_key_pair. to_keypair ( ) . x_only_public_key ( ) ;
995995 assert_eq ! (
996996 Address :: p2tr_tweaked(
997997 TweakedPublicKey :: dangerous_assume_tweaked( x_only_pub_key) ,
0 commit comments