typeHash static method

Uint8List typeHash(
  1. Map<String, List<TypedDataArgument>> typedDataTypes,
  2. String primaryType
)

Implementation

static Uint8List typeHash(
    Map<String, List<TypedDataArgument>> typedDataTypes, String primaryType) {
  return keccak256(
      Uint8List.fromList(encodeType(typedDataTypes, primaryType).codeUnits));
}