| 101 | |
| 102 | #[derive(Serialize, Deserialize, Eq, PartialEq)] |
| 103 | pub struct BitVMClientPrivateData { |
| 104 | // Peg in and peg out nonces all go into the same file for now |
| 105 | // Verifier public key -> Graph ID -> Tx ID -> Input index -> Secret nonce |
| 106 | #[allow(clippy::type_complexity)] |
| 107 | pub secret_nonces: HashMap<PublicKey, HashMap<String, HashMap<Txid, HashMap<usize, SecNonce>>>>, |
| 108 | // Operator Winternitz secrets for all the graphs. |
| 109 | // Operator public key -> Graph ID -> Message ID -> Winternitz secret |
| 110 | pub commitment_secrets: |
| 111 | HashMap<PublicKey, HashMap<String, HashMap<CommitmentMessageId, WinternitzSecret>>>, |
| 112 | } |
| 113 | |
| 114 | pub struct BitVMClient { |
| 115 | pub esplora: AsyncClient, |
nothing calls this directly
no outgoing calls
no test coverage detected