Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::EC::Point#to_octet_string

point.to_octet_string(conversion_form) → String

Returns the octet string representation of the elliptic curve point.

conversion_form specifies how the point is converted. Possible values are:

  • :compressed

  • :uncompressed

  • :hybrid

See also #to_bn #set_to_infinity! also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0