@@ -57,7 +57,7 @@ impl RecoverableSignature {
5757 /// representation is nonstandard and defined by the libsecp256k1
5858 /// library.
5959 pub fn from_compact ( data : & [ u8 ] , recid : RecoveryId ) -> Result < RecoverableSignature , Error > {
60- let mut ret = unsafe { ffi:: RecoverableSignature :: blank ( ) } ;
60+ let mut ret = ffi:: RecoverableSignature :: new ( ) ;
6161
6262 unsafe {
6363 if data. len ( ) != 64 {
@@ -103,7 +103,7 @@ impl RecoverableSignature {
103103 /// for verification
104104 #[ inline]
105105 pub fn to_standard ( & self ) -> Signature {
106- let mut ret = unsafe { super_ffi:: Signature :: blank ( ) } ;
106+ let mut ret = super_ffi:: Signature :: new ( ) ;
107107 unsafe {
108108 let err = ffi:: secp256k1_ecdsa_recoverable_signature_convert (
109109 super_ffi:: secp256k1_context_no_precomp,
@@ -130,7 +130,7 @@ impl<C: Signing> Secp256k1<C> {
130130 pub fn sign_recoverable ( & self , msg : & Message , sk : & key:: SecretKey )
131131 -> RecoverableSignature {
132132
133- let mut ret = unsafe { ffi:: RecoverableSignature :: blank ( ) } ;
133+ let mut ret = ffi:: RecoverableSignature :: new ( ) ;
134134 unsafe {
135135 // We can assume the return value because it's not possible to construct
136136 // an invalid signature from a valid `Message` and `SecretKey`
@@ -157,7 +157,7 @@ impl<C: Verification> Secp256k1<C> {
157157 pub fn recover ( & self , msg : & Message , sig : & RecoverableSignature )
158158 -> Result < key:: PublicKey , Error > {
159159
160- let mut pk = unsafe { super_ffi:: PublicKey :: blank ( ) } ;
160+ let mut pk = super_ffi:: PublicKey :: new ( ) ;
161161
162162 unsafe {
163163 if ffi:: secp256k1_ecdsa_recover ( self . ctx , & mut pk,
0 commit comments