publicKey property

  1. @override
ECPublicKey? get publicKey
override

If this is a pushdata of a public key then it shall be returned, or null

Implementation

@override
ECPublicKey? get publicKey {
  try {
    return ECPublicKey(data);
  } on InvalidPublicKey {
    return null;
  }
}