identity property

Identity get identity

This device's cryptographic Identity.

Throws StateError when none was configured — install a PassnoteDefaults.identity (the passnote umbrella does) or pass identity: to passnoteLowLevel.

Implementation

Identity get identity =>
    _identity ??
    (throw StateError(
      'No Identity configured. Use Passnote.builder with an umbrella that '
      'installs one, or pass identity: to passnoteLowLevel.',
    ));