Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BitVM/BitVM
/ rrot
Function
rrot
bitvm/src/hash/sha256.rs:940–945 ·
view source on GitHub ↗
(x: u32, n: usize)
Source
from the content-addressed store, hash-verified
938
}
939
940
fn rrot(x: u32, n: usize) -> u32 {
941
if n == 0 {
942
return x;
943
}
944
(x >> n) | (x << (32 - n))
945
}
946
947
#[test]
948
fn test_sha256() {
Callers
4
test_ep1
Function · 0.70
test_ep0
Function · 0.70
test_sig0
Function · 0.70
test_sig1
Function · 0.70
Calls
no outgoing calls
Tested by
4
test_ep1
Function · 0.56
test_ep0
Function · 0.56
test_sig0
Function · 0.56
test_sig1
Function · 0.56