Principal.selfAuthenticating constructor

Principal.selfAuthenticating(
  1. Uint8List publicKey
)

Implementation

factory Principal.selfAuthenticating(Uint8List publicKey) {
  final sha = sha224Hash(publicKey.buffer);
  final u8a = Uint8List.fromList([...sha, _suffixSelfAuthenticating]);
  return Principal(u8a);
}