anya-core 1.2.0

Enterprise-grade Bitcoin Infrastructure Platform
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::error::Error;
impl SpvCrossChainVerifier {
    /// [BIP-37] Simplified Payment Verification
    pub fn verify_cross_chain_swap(
        &self,
        proof: CrossChainProof,
        asset: &str
    ) -> Result<bool> {
        match asset {
            "L-BTC" => self.verify_liquid_proof(proof),
            "RBTC" => self.verify_rsk_proof(proof),
            _ => self.verify_bitcoin_proof(proof),
        }
    }
}