breez_sdk_liquid::lightning_125::bitcoin::secp256k1::global

Static SECP256K1

pub static SECP256K1: &'static GlobalContext
Expand description

A global static context to avoid repeatedly creating contexts.

If rand-std feature is enabled, context will have been randomized using thread_rng.

use secp256k1::{PublicKey, SECP256K1};
let _ = SECP256K1.generate_keypair(&mut rand::thread_rng());