View Source Bitcoinex.Secp256k1.Point (bitcoinex v0.1.8)
Contains the x, y, and z of an elliptic curve point.
Link to this section Summary
Functions
has_even_y returns true if y is even and false if y is odd
is_inf returns whether or not point P is the point at infinity, ie. P.x == P.y == 0
lift_x returns the Point P where P.x = x and P.y is even.
parse_public_key parses a public key
sec serializes a compressed public key to binary
serialize_public_key serializes a compressed public key to string
x_bytes returns the binary encoding of the x value of the point
x_hex returns the hex-encoded x value of the point
Link to this section Types
Link to this section Functions
has_even_y returns true if y is even and false if y is odd
is_inf returns whether or not point P is the point at infinity, ie. P.x == P.y == 0
lift_x returns the Point P where P.x = x and P.y is even.
parse_public_key parses a public key
sec serializes a compressed public key to binary
serialize_public_key serializes a compressed public key to string
x_bytes returns the binary encoding of the x value of the point
x_hex returns the hex-encoded x value of the point