getHashedName static method

List<int> getHashedName(
  1. String name
)

Returns the hashed name for the given name.

Implementation

static List<int> getHashedName(String name) {
  final combine = "${NameServiceProgramConst.hashPrefix}$name";
  final encode = StringUtils.encode(combine);
  return QuickCrypto.sha256Hash(encode);
}