hashType static method

Uint8List hashType(
  1. String primaryType,
  2. dynamic types
)

Hashes the type of an object

Implementation

static Uint8List hashType(String primaryType, dynamic types) {
  return keccak256(
      Uint8List.fromList(utf8.encode(encodeType(primaryType, types))));
}