View Source Secp256k1.Guards (secp256k1 v0.4.1)
Common guards for secp256k1 functions
Summary
Functions
Is binary of specific size
Is compressed pubkey (probably) - binary 33 bytes long
Is ECDSA signature (probably) - binary 64 bytes long
Is hash (probably) - binary 32 bytes long
Is any type of pubkey (probably)
Is Schnorr signature (probably) - binary 64 bytes long
Is seckey (probably) - binary 32 bytes long
Is uncompressed pubkey (probably) - binary 65 bytes long
Is xonly pubkey (probably) - binary 32 bytes long
Functions
Is binary of specific size
Is compressed pubkey (probably) - binary 33 bytes long
Is ECDSA signature (probably) - binary 64 bytes long
Is hash (probably) - binary 32 bytes long
Is any type of pubkey (probably)
Is Schnorr signature (probably) - binary 64 bytes long
Is seckey (probably) - binary 32 bytes long
Is uncompressed pubkey (probably) - binary 65 bytes long
Is xonly pubkey (probably) - binary 32 bytes long