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

Function test_sha256_strs

bitvm/src/hash/sha256_u4_stack.rs:857–864  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

855 }
856 #[test]
857 fn test_sha256_strs() {
858 let message = "Hello.";
859 let hex: String = message.as_bytes().to_lower_hex_string();
860 test_sha256(&hex, true, true);
861 let message = "This is a longer message that still fits in one block!";
862 let hex: String = message.as_bytes().to_lower_hex_string();
863 test_sha256(&hex, true, true)
864 }
865
866 #[test]
867 fn test_sha256_two_blocks() {

Callers

nothing calls this directly

Calls 1

test_sha256Function · 0.70

Tested by

no test coverage detected