MCPcopy Create free account
hub / github.com/BitVM/BitVM / BaseContext

Interface BaseContext

bridge/src/contexts/base.rs:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6use secp256k1::SECP256K1;
7
8pub trait BaseContext {
9 fn network(&self) -> Network;
10 fn n_of_n_public_keys(&self) -> &Vec<PublicKey>;
11 fn n_of_n_public_key(&self) -> &PublicKey;
12 fn n_of_n_taproot_public_key(&self) -> &XOnlyPublicKey;
13}
14
15pub fn generate_keys_from_secret(network: Network, secret: &str) -> (Keypair, PublicKey) {
16 let keypair = Keypair::from_seckey_str_global(secret).unwrap();

Callers

nothing calls this directly

Implementers 4

operator.rsbridge/src/contexts/operator.rs
verifier.rsbridge/src/contexts/verifier.rs
depositor.rsbridge/src/contexts/depositor.rs
withdrawer.rsbridge/src/contexts/withdrawer.rs

Calls

no outgoing calls

Tested by

no test coverage detected