mirror of
https://github.com/status-im/secp256k1.git
synced 2025-02-23 11:18:15 +00:00
_tagged_sha256 simply cannot have invalid inputs. The other functions could in some sense have invalid inputs but only in violation of the type system. For example, a pubkey could be invalid but invalid objects of type secp256k1_pubkey either can't be obtained via the API or will be caught by an ARG_CHECK when calling pubkey_load. This is consistent with similar functions in the public API, e.g., _ec_pubkey_negate or _ec_pubkey_serialize.