| 6 | use secp256k1::SECP256K1; |
| 7 | |
| 8 | pub 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 | |
| 15 | pub fn generate_keys_from_secret(network: Network, secret: &str) -> (Keypair, PublicKey) { |
| 16 | let keypair = Keypair::from_seckey_str_global(secret).unwrap(); |
nothing calls this directly
no outgoing calls
no test coverage detected