MCPcopy Create free account
hub / github.com/base/base / test_encode_proof_bytes_format

Function test_encode_proof_bytes_format

crates/proof/primitives/src/proof_encoder.rs:145–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143
144 #[test]
145 fn test_encode_proof_bytes_format() {
146 let sig = test_signature(0);
147 let proof = ProofEncoder::encode_proof_bytes(&sig, B256::repeat_byte(0xCC), 500).unwrap();
148 assert_eq!(proof.len(), 130);
149 assert_eq!(proof[0], PROOF_TYPE_TEE);
150 }
151
152 #[test]
153 fn test_encode_proof_bytes_l1_origin_hash() {

Callers

nothing calls this directly

Calls 1

test_signatureFunction · 0.85

Tested by

no test coverage detected