MCPcopy Create free account
hub / github.com/ddimaria/rust-blockchain-tutorial / it_rlp_encodes

Function it_rlp_encodes

utils/src/crypto.rs:329–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

327
328 #[test]
329 fn it_rlp_encodes() {
330 let items = vec!["a", "b", "c", "d", "e", "f"];
331 let stream = rlp_encode(items, None);
332
333 assert_eq!(stream.out().to_vec(), b"\xc6abcdef".to_vec());
334 }
335}

Callers

nothing calls this directly

Calls 1

rlp_encodeFunction · 0.85

Tested by

no test coverage detected