Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

OpenSSL::PKey::EC#public?

() -> bool
key.public? => true or false

Returns whether this EC instance has a public key. The public key (EC::Point) can be retrieved with EC#public_key.