We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf9b972 + 91c43e7 commit 82565cbCopy full SHA for 82565cb
src/key.rs
@@ -213,12 +213,18 @@ impl<'de> ::serde::Deserialize<'de> for SecretKey {
213
}
214
215
impl PublicKey {
216
- /// Obtains a raw pointer suitable for use with FFI functions
+ /// Obtains a raw const pointer suitable for use with FFI functions
217
#[inline]
218
pub fn as_ptr(&self) -> *const ffi::PublicKey {
219
&self.0 as *const _
220
221
222
+ /// Obtains a raw mutable pointer suitable for use with FFI functions
223
+ #[inline]
224
+ pub fn as_mut_ptr(&mut self) -> *mut ffi::PublicKey {
225
+ &mut self.0 as *mut _
226
+ }
227
+
228
/// Creates a new public key from a secret key.
229
230
pub fn from_secret_key<C: Signing>(secp: &Secp256k1<C>,
0 commit comments