selfAuthenticating static method

Principal selfAuthenticating(
  1. Uint8List publicKey
)

Implementation

static Principal selfAuthenticating(Uint8List publicKey) {
  var sha = sha224Hash(publicKey.buffer);
  var u8a = Uint8List.fromList([...sha, SELF_AUTHENTICATING_SUFFIX]);
  return Principal(u8a);
}