On invalid input, this results in a GroupElement object being assigned an invalid underlying value. It can be mitigated by calling isMember on the object, but this is not documented.
Deserialization should throw an exception on invalid input, which matches the behavior of the Scalar::deserialize operation.
Group element deserialization in
GroupElement::deserialize
ignores the return value of this function call: https://github.com/firoorg/firo/blob/master/src/secp256k1/src/cpp/GroupElement.cpp#L528On invalid input, this results in a
GroupElement
object being assigned an invalid underlying value. It can be mitigated by callingisMember
on the object, but this is not documented.Deserialization should throw an exception on invalid input, which matches the behavior of the
Scalar::deserialize
operation.