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

Function hash_n_bytes

bitvm/src/chunk/wrap_hasher.rs:32–34  ·  view source on GitHub ↗

create Script instance from stack-tracker and pad output with zeros to appropriate hash size

()

Source from the content-addressed store, hash-verified

30
31// create Script instance from stack-tracker and pad output with zeros to appropriate hash size
32pub(crate) fn hash_n_bytes<const N: usize>() -> Script {
33 wrap_scr(blake3_compute_script(N))
34}
35
36// helpers to directly hash data structures that we work with
37// example: extension field elements, point accumulators

Callers

nothing calls this directly

Calls 2

wrap_scrFunction · 0.85
blake3_compute_scriptFunction · 0.85

Tested by

no test coverage detected