We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7234606 + 6eaacb1 commit 8b49635Copy full SHA for 8b49635
src/lib.rs
@@ -639,6 +639,14 @@ impl Secp256k1<VerifyOnly> {
639
640
impl<C> Secp256k1<C> {
641
642
+ /// Getter for the raw pointer to the underlying secp256k1 context. This
643
+ /// shouldn't be needed with normal usage of the library. It enables
644
+ /// extending the Secp256k1 with more cryptographic algorithms outside of
645
+ /// this crate.
646
+ pub fn ctx(&self) -> &*mut ffi::Context {
647
+ &self.ctx
648
+ }
649
+
650
/// (Re)randomizes the Secp256k1 context for cheap sidechannel resistance;
651
/// see comment in libsecp256k1 commit d2275795f by Gregory Maxwell. Requires
652
/// compilation with "rand" feature.
0 commit comments