computeDataHash static method

List<int> computeDataHash(
  1. MetaData metaData
)

Implementation

static List<int> computeDataHash(MetaData metaData) {
  final metaDataHash = QuickCrypto.keccack256Hash(metaData.toBytes());
  final pointBytes = IntUtils.toBytes(metaData.sellerFeeBasisPoints,
      length: 2, byteOrder: Endian.little);
  return QuickCrypto.keccack256Hash([...metaDataHash, ...pointBytes]);
}