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

Function generate_id

bridge/src/graphs/peg_in.rs:579–585  ·  view source on GitHub ↗
(peg_in_deposit_transaction: &PegInDepositTransaction)

Source from the content-addressed store, hash-verified

577}
578
579pub fn generate_id(peg_in_deposit_transaction: &PegInDepositTransaction) -> String {
580 let mut hasher = Sha256::new();
581
582 hasher.update(peg_in_deposit_transaction.tx().compute_txid().to_string());
583
584 hasher.finalize().to_hex_string(Upper)
585}
586
587fn create_new_connectors(
588 network: Network,

Callers 3

newMethod · 0.70

Calls 2

txMethod · 0.45
finalizeMethod · 0.45

Tested by

no test coverage detected