fn batch_header_bytes() {
        let original = BatchHeader {
            signer_public_key: hex::decode(KEY1).unwrap(),
            transaction_ids: vec![hex::decode(KEY2).unwrap(), hex::decode(KEY3).unwrap()],
        };

        let header_bytes = original.clone().into_bytes().unwrap();
        let header = BatchHeader::from_bytes(&header_bytes).unwrap();

        assert_eq!(
            hex::encode(original.signer_public_key()),
            hex::encode(header.signer_public_key())
        );
        assert_eq!(original.transaction_ids(), header.transaction_ids());
    }
// test that the batch header can be converted into bytes and back correctly
test that the batch header can be converted into bytes and back correctly
test that the batch header can be converted into bytes and back correctly
fn batch_header_bytes() {
        let original = BatchHeader {
            signer_public_key: hex::decode(KEY1).unwrap(),
            transaction_ids: vec![hex::decode(KEY2).unwrap(), hex::decode(KEY3).unwrap()],
        };
        let header_bytes = original.clone().into_bytes().unwrap();
        let header = BatchHeader::from_bytes(&header_bytes).unwrap();
        assert_eq!(
            hex::encode(original.signer_public_key()),
            hex::encode(header.signer_public_key())
        );
        assert_eq!(original.transaction_ids(), header.transaction_ids());
    }
fn batch_header_bytes ( ) { let original = BatchHeader { signer_public_key : hex :: decode ( KEY1 ) . unwrap ( ) , transaction_ids : vec ! [ hex decode ( KEY2 ) unwrap ( ) hex decode ( KEY3 ) unwrap ( ) ] , } ; let header_bytes = original . clone ( ) . into_bytes ( ) . unwrap ( ) ; let header = BatchHeader :: from_bytes ( & header_bytes ) . unwrap ( ) ; assert_eq ! ( hex encode ( original signer_public_key ( ) ) hex encode ( header signer_public_key ( ) ) ) ; assert_eq ! ( original transaction_ids ( ) header transaction_ids ( ) ) ; }
test that the batch header can be converted into bytes and back correctly
test that the batch header can be converted into bytes and back correctly