HttpCanisterUpdate_representation_independent_hash function

Uint8List HttpCanisterUpdate_representation_independent_hash(
  1. Map update
)

@param {object} update @returns {Buffer}

Implementation

// ignore: non_constant_identifier_names
Uint8List HttpCanisterUpdate_representation_independent_hash(Map update) {
  return hash_of_map({
    "request_type": "call",
    "canister_id": update["canister_id"],
    "method_name": update["method_name"],
    "arg": update["arg"],
    "ingress_expiry": update["ingress_expiry"],
    "sender": update["sender"],
  });
}