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

Function sha256_k

bitvm/src/hash/sha256.rs:178–182  ·  view source on GitHub ↗

push other necessary state into stack

()

Source from the content-addressed store, hash-verified

176
177/// push other necessary state into stack
178pub fn sha256_k() -> Vec<Script> {
179 let mut state: [u32; 64] = K;
180 state.reverse();
181 state.iter().map(|x: &u32| u32_push(*x)).collect::<Vec<_>>()
182}
183
184/// sha256 transform
185/// input: [m[15], m[14], ..., m[0], state[7], state[6], ..., state[0]]

Callers

nothing calls this directly

Calls 1

u32_pushFunction · 0.85

Tested by

no test coverage detected