fingerprint property

  1. @override
TransportableData? get fingerprint
override

Fingerprint to verify ID and public key

 Build: fingerprint = sign(seed, privateKey)
 Check: verify(seed, fingerprint, publicKey)

Implementation

@override
TransportableData? get fingerprint {
  TransportableData? ted = _fingerprint;
  if (ted == null && hasSeed) {
    Object? base64 = this['fingerprint'];
    assert(base64 != null, 'meta.fingerprint should not be empty: ${super.toMap()}');
    _fingerprint = ted = TransportableData.parse(base64);
    assert(ted != null, 'meta.fingerprint error: $base64');
  }
  return ted;
}