Module constants

Expand description

Constants related to the API and the underlying curve.

Constantsยง

COMPACT_SIGNATURE_SIZE
The maximum size of a compact signature.
CURVE_ORDER
The order of the secp256k1 curve.
ELLSWIFT_ENCODING_SIZE
The size of a full ElligatorSwift encoding.
FIELD_SIZE
The Prime for the secp256k1 field element.
GENERATOR_X
The X coordinate of the generator.
GENERATOR_Y
The Y coordinate of the generator.
KEY_PAIR_SIZE
The size of a key pair.
MAX_SIGNATURE_SIZE
The maximum size of a signature.
MESSAGE_SIZE
The size (in bytes) of a message.
ONE
The value one as big-endian array of bytes.
PUBLIC_KEY_SIZE
The size (in bytes) of a serialized public key.
SCHNORR_PUBLIC_KEY_SIZE
The size of a schnorr public key.
SCHNORR_SIGNATURE_SIZE
The size of a schnorr signature.
SECRET_KEY_SIZE
The size (in bytes) of a secret key.
UNCOMPRESSED_PUBLIC_KEY_SIZE
The size (in bytes) of an serialized uncompressed public key.
ZERO
The value zero as an array of bytes.