/// This test ensures that the sender's signature and public keys are not
/// taken into account when computing the MessageId.  It computes MessageIds
/// on two messages containing different public keys and signatures and
/// asserts that the computed MessageIds should be the same.
This test ensures that the sender's signature and public keys are not
taken into account when computing the MessageId.  It computes MessageIds
on two messages containing different public keys and signatures and
asserts that the computed MessageIds should be the same.
This test ensures that the sender ' s signature and public keys are not taken into account when computing the MessageId . It computes MessageIds on two messages containing different public keys and signatures and asserts that the computed MessageIds should be the same .
fn message_id_icf_reference() {
        let expiry_time = current_time_and_expiry_time().1;
        let signed_ingress1 = signed_ingress(
            CanisterId::new(PrincipalId::try_from(&[0, 0, 0, 0, 0, 0, 4, 210][..]).unwrap())
                .unwrap(),
            "hello".to_string(),
            b"DIDL\x00\xFD*".to_vec(),
            expiry_time,
            vec![3; 32],
            vec![6; 32],
        );
        let message_id1 = signed_ingress1.id();
        let signed_ingress2 = signed_ingress(
            CanisterId::new(PrincipalId::try_from(&[0, 0, 0, 0, 0, 0, 4, 210][..]).unwrap())
                .unwrap(),
            "hello".to_string(),
            b"DIDL\x00\xFD*".to_vec(),
            expiry_time,
            vec![1; 32],
            vec![5; 32],
        );
        let message_id2 = signed_ingress2.id();
        assert_eq!(message_id1, message_id2);
    }
fn message_id_icf_reference ( ) { let expiry_time = current_time_and_expiry_time ( ) . 1 ; let signed_ingress1 = signed_ingress ( CanisterId :: new ( PrincipalId :: try_from ( & [ 0 , 0 , 0 , 0 , 0 , 0 , 4 , 210 ] [ .. ] ) . unwrap ( ) ) . unwrap ( ) , " " . to_string ( ) , b" \x00 \xFD " . to_vec ( ) , expiry_time , vec ! [ 3 32 ] , vec ! [ 6 32 ] , ) ; let message_id1 = signed_ingress1 . id ( ) ; let signed_ingress2 = signed_ingress ( CanisterId :: new ( PrincipalId :: try_from ( & [ 0 , 0 , 0 , 0 , 0 , 0 , 4 , 210 ] [ .. ] ) . unwrap ( ) ) . unwrap ( ) , " " . to_string ( ) , b" \x00 \xFD " . to_vec ( ) , expiry_time , vec ! [ 1 32 ] , vec ! [ 5 32 ] , ) ; let message_id2 = signed_ingress2 . id ( ) ; assert_eq ! ( message_id1 message_id2 ) ; }
This test ensures that the sender's signature and public keys are not
taken into account when computing the MessageId.
This test ensures that the sender ' s signature and public keys are not taken into account when computing the MessageId .