@@ -109,6 +109,8 @@ impl_raw_debug!(PublicKey);
109
109
impl PublicKey {
110
110
/// Creates an "uninitialized" FFI public key which is zeroed out
111
111
///
112
+ /// # Safety
113
+ ///
112
114
/// If you pass this to any FFI functions, except as an out-pointer,
113
115
/// the result is likely to be an assertation failure and process
114
116
/// termination.
@@ -118,6 +120,8 @@ impl PublicKey {
118
120
119
121
/// Create a new public key usable for the FFI interface from raw bytes
120
122
///
123
+ /// # Safety
124
+ ///
121
125
/// Does not check the validity of the underlying representation. If it is
122
126
/// invalid the result may be assertation failures (and process aborts) from
123
127
/// the underlying library. You should not use this method except with data
@@ -145,6 +149,8 @@ impl_raw_debug!(Signature);
145
149
impl Signature {
146
150
/// Creates an "uninitialized" FFI signature which is zeroed out
147
151
///
152
+ /// # Safety
153
+ ///
148
154
/// If you pass this to any FFI functions, except as an out-pointer,
149
155
/// the result is likely to be an assertation failure and process
150
156
/// termination.
@@ -154,6 +160,8 @@ impl Signature {
154
160
155
161
/// Create a new signature usable for the FFI interface from raw bytes
156
162
///
163
+ /// # Safety
164
+ ///
157
165
/// Does not check the validity of the underlying representation. If it is
158
166
/// invalid the result may be assertation failures (and process aborts) from
159
167
/// the underlying library. You should not use this method except with data
@@ -180,6 +188,8 @@ impl_raw_debug!(XOnlyPublicKey);
180
188
impl XOnlyPublicKey {
181
189
/// Creates an "uninitialized" FFI x-only public key which is zeroed out
182
190
///
191
+ /// # Safety
192
+ ///
183
193
/// If you pass this to any FFI functions, except as an out-pointer,
184
194
/// the result is likely to be an assertation failure and process
185
195
/// termination.
@@ -189,6 +199,8 @@ impl XOnlyPublicKey {
189
199
190
200
/// Create a new x-only public key usable for the FFI interface from raw bytes
191
201
///
202
+ /// # Safety
203
+ ///
192
204
/// Does not check the validity of the underlying representation. If it is
193
205
/// invalid the result may be assertation failures (and process aborts) from
194
206
/// the underlying library. You should not use this method except with data
@@ -215,6 +227,8 @@ impl_raw_debug!(KeyPair);
215
227
impl KeyPair {
216
228
/// Creates an "uninitialized" FFI keypair which is zeroed out
217
229
///
230
+ /// # Safety
231
+ ///
218
232
/// If you pass this to any FFI functions, except as an out-pointer,
219
233
/// the result is likely to be an assertation failure and process
220
234
/// termination.
@@ -224,6 +238,8 @@ impl KeyPair {
224
238
225
239
/// Create a new keypair usable for the FFI interface from raw bytes
226
240
///
241
+ /// # Safety
242
+ ///
227
243
/// Does not check the validity of the underlying representation. If it is
228
244
/// invalid the result may be assertation failures (and process aborts) from
229
245
/// the underlying library. You should not use this method except with data
0 commit comments