computeCreatorHash static method

List<int> computeCreatorHash(
  1. List<Creator> creators
)

Implementation

static List<int> computeCreatorHash(List<Creator> creators) {
  final creatorBytes = creators
      .map((e) => List<int>.from(
          [...e.address.toBytes(), e.verified ? 1 : 0, e.share]))
      .expand((element) => element)
      .toList();
  return QuickCrypto.keccack256Hash(creatorBytes);
}