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

Interface BaseGraph

bridge/src/graphs/base.rs:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55pub type GraphId = String;
56
57pub 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
71pub const fn max(a: u64, b: u64) -> u64 {
72 [a, b][(a < b) as usize]

Callers

nothing calls this directly

Implementers 2

peg_out.rsbridge/src/graphs/peg_out.rs
peg_in.rsbridge/src/graphs/peg_in.rs

Calls

no outgoing calls

Tested by

no test coverage detected