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

Function load_test_vectors

bitvm/src/signatures/public.rs:781–791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

779 */
780
781 fn load_test_vectors() -> io::Result<Vec<TestVector>> {
782 let mut file = File::open("wots-test-vectors.json")?;
783
784 let mut contents = String::new();
785 file.read_to_string(&mut contents)?;
786
787 let test_vectors: Vec<TestVector> = serde_json::from_str(&contents)
788 .map_err(|e| io::Error::new(io::ErrorKind::InvalidData, e))?;
789
790 Ok(test_vectors)
791 }
792
793 /// Run the test vector and verify the expected outputs.
794 fn verify_test_vector<WOTS: Wots + CompactWots>(test_vector: TestVector) {

Callers 1

verify_test_vectorsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected