import { AppIdentity } from "@counterfactual/types" ; import { defaultAbiCoder , keccak256 } from "ethers/utils" ; export function appIdentityToHash ( appIdentity ) { return keccak256 ( defaultAbiCoder . encode ( [ "uint256" , "address[]" ] , [ appIdentity . channelNonce , appIdentity . participants ] ) ) ; }