| 55 | pub type GraphId = String; |
| 56 | |
| 57 | pub trait BaseGraph { |
| 58 | fn network(&self) -> Network; |
| 59 | fn id(&self) -> &String; |
| 60 | fn push_verifier_nonces( |
| 61 | &mut self, |
| 62 | verifier_context: &VerifierContext, |
| 63 | ) -> HashMap<Txid, HashMap<usize, SecNonce>>; |
| 64 | fn verifier_sign( |
| 65 | &mut self, |
| 66 | verifier_context: &VerifierContext, |
| 67 | secret_nonces: &HashMap<Txid, HashMap<usize, SecNonce>>, |
| 68 | ); |
| 69 | } |
| 70 | |
| 71 | pub const fn max(a: u64, b: u64) -> u64 { |
| 72 | [a, b][(a < b) as usize] |
nothing calls this directly
no outgoing calls
no test coverage detected