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

Function sha256_init

bitvm/src/hash/sha256.rs:156–160  ·  view source on GitHub ↗

push all init state into stack

()

Source from the content-addressed store, hash-verified

154
155/// push all init state into stack
156pub fn sha256_init() -> Vec<Script> {
157 let mut state: [u32; 8] = INITSTATE;
158 state.reverse();
159 state.iter().map(|x: &u32| u32_push(*x)).collect::<Vec<_>>()
160}
161
162/// Change byte order, because SHA uses big endian.
163pub fn sha256_final() -> Script {

Callers

nothing calls this directly

Calls 1

u32_pushFunction · 0.85

Tested by

no test coverage detected