@@ -77,7 +77,8 @@ impl PublicKey {
7777 /// Create a new (zeroed) public key usable for the FFI interface
7878 pub fn new ( ) -> PublicKey { PublicKey ( [ 0 ; 64 ] ) }
7979 /// Create a new (uninitialized) public key usable for the FFI interface
80- pub unsafe fn blank ( ) -> PublicKey { mem:: uninitialized ( ) }
80+ #[ deprecated( since = "0.15.3" , note = "Please use the new function instead" ) ]
81+ pub unsafe fn blank ( ) -> PublicKey { PublicKey :: new ( ) }
8182}
8283
8384impl Default for PublicKey {
@@ -102,7 +103,8 @@ impl Signature {
102103 /// Create a new (zeroed) signature usable for the FFI interface
103104 pub fn new ( ) -> Signature { Signature ( [ 0 ; 64 ] ) }
104105 /// Create a new (uninitialized) signature usable for the FFI interface
105- pub unsafe fn blank ( ) -> Signature { mem:: uninitialized ( ) }
106+ #[ deprecated( since = "0.15.3" , note = "Please use the new function instead" ) ]
107+ pub unsafe fn blank ( ) -> Signature { Signature :: new ( ) }
106108}
107109
108110impl Default for Signature {
@@ -121,7 +123,8 @@ impl SharedSecret {
121123 /// Create a new (zeroed) signature usable for the FFI interface
122124 pub fn new ( ) -> SharedSecret { SharedSecret ( [ 0 ; 32 ] ) }
123125 /// Create a new (uninitialized) signature usable for the FFI interface
124- pub unsafe fn blank ( ) -> SharedSecret { mem:: uninitialized ( ) }
126+ #[ deprecated( since = "0.15.3" , note = "Please use the new function instead" ) ]
127+ pub unsafe fn blank ( ) -> SharedSecret { SharedSecret :: new ( ) }
125128}
126129
127130impl Default for SharedSecret {
0 commit comments