Identity constructor

Identity(
  1. Uint8List bytes
)

Create an identity from 32 bytes

Throws ArgumentError if bytes length is not exactly 32.

Implementation

Identity(this.bytes) {
  if (bytes.length != 32) {
    throw ArgumentError(
      'Identity must be exactly 32 bytes, got ${bytes.length}',
    );
  }
}