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

Function get_superblock_hash_message

bridge/src/superblock.rs:50–52  ·  view source on GitHub ↗
(sb: &Header)

Source from the content-addressed store, hash-verified

48pub const SUPERBLOCK_MESSAGE_LENGTH: usize = size_of::<Header>();
49
50pub fn get_superblock_hash_message(sb: &Header) -> Vec<u8> {
51 sb.block_hash().as_byte_array().into()
52}
53
54pub const SUPERBLOCK_HASH_MESSAGE_LENGTH: usize = size_of::<BlockHash>();
55

Callers 6

kick_off_2Method · 0.85
test_take_1_successFunction · 0.85

Calls 1

intoMethod · 0.45

Tested by 5

test_take_1_successFunction · 0.68