fn signed_ingress(
        receiver: CanisterId,
        method_name: String,
        method_payload: Vec<u8>,
        expiry_time: Time,
        sender_sig: Vec<u8>,
        sender_pubkey: Vec<u8>,
    ) -> SignedIngress {
        let update = HttpCanisterUpdate {
            canister_id: Blob(receiver.get().into_vec()),
            method_name,
            arg: Blob(method_payload),
            sender: Blob(vec![0; 29]),
            ingress_expiry: expiry_time.as_nanos_since_unix_epoch(),
            nonce: None,
        };
        let content = HttpSubmitContent::Call { update };
        let envelope = HttpRequestEnvelope::<HttpSubmitContent> {
            content,
            sender_pubkey: Some(Blob(sender_pubkey)),
            sender_sig: Some(Blob(sender_sig)),
            sender_delegation: None,
        };
        SignedIngress::try_from(envelope).unwrap()
    }
// Note that we explicitly don't want to use
// `ic_test_utilities::SignedIngressBuilder` because that results in a "cyclic"
// dependency that prevents incremental rust builds from working.
Note that we explicitly don't want to use
`ic_test_utilities::SignedIngressBuilder` because that results in a "cyclic"
dependency that prevents incremental rust builds from working.
Note that we explicitly don ' t want to use ` ic_test_utilities :: SignedIngressBuilder ` because that results in a " cyclic " dependency that prevents incremental rust builds from working .
fn signed_ingress(
        receiver: CanisterId,
        method_name: String,
        method_payload: Vec<u8>,
        expiry_time: Time,
        sender_sig: Vec<u8>,
        sender_pubkey: Vec<u8>,
    ) -> SignedIngress {
        let update = HttpCanisterUpdate {
            canister_id: Blob(receiver.get().into_vec()),
            method_name,
            arg: Blob(method_payload),
            sender: Blob(vec![0; 29]),
            ingress_expiry: expiry_time.as_nanos_since_unix_epoch(),
            nonce: None,
        };
        let content = HttpSubmitContent::Call { update };
        let envelope = HttpRequestEnvelope::<HttpSubmitContent> {
            content,
            sender_pubkey: Some(Blob(sender_pubkey)),
            sender_sig: Some(Blob(sender_sig)),
            sender_delegation: None,
        };
        SignedIngress::try_from(envelope).unwrap()
    }
fn signed_ingress ( receiver : CanisterId , method_name : String , method_payload : Vec < u8 > , expiry_time : Time , sender_sig : Vec < u8 > , sender_pubkey : Vec < u8 > , ) -> SignedIngress { let update = HttpCanisterUpdate { canister_id : Blob ( receiver . get ( ) . into_vec ( ) ) , method_name , arg : Blob ( method_payload ) , sender : Blob ( vec ! [ 0 29 ] ) , ingress_expiry : expiry_time . as_nanos_since_unix_epoch ( ) , nonce : None , } ; let content = HttpSubmitContent :: Call { update } ; let envelope = HttpRequestEnvelope :: < HttpSubmitContent > { content , sender_pubkey : Some ( Blob ( sender_pubkey ) ) , sender_sig : Some ( Blob ( sender_sig ) ) , sender_delegation : None , } ; SignedIngress :: try_from ( envelope ) . unwrap ( ) }
Note that we explicitly don't want to use
`ic_test_utilities::SignedIngressBuilder` because that results in a "cyclic"
dependency that prevents incremental rust builds from working.
Note that we explicitly don ' t want to use ` ic_test_utilities :: SignedIngressBuilder ` because that results in a " cyclic " dependency that prevents incremental rust builds from working .
receiver
CanisterId
method_name
String
method_payload
Vec<u8>
expiry_time
Time
sender_sig
Vec<u8>
sender_pubkey
Vec<u8>
receiver
CanisterId
method_name
String
method_payload
Vec<u8>
expiry_time
Time
sender_sig
Vec<u8>
sender_pubkey
Vec<u8>