class Net::SSH::Authentication::ED25519::PubKey
def self.read_keyblob(buffer)
def self.read_keyblob(buffer) PubKey.new(buffer.read_string) end
def initialize(data)
def initialize(data) @verify_key = ::Ed25519::VerifyKey.new(data) end
def ssh_do_verify(sig, data, options = {})
def ssh_do_verify(sig, data, options = {}) @verify_key.verify(sig, data) end
def ssh_signature_type
def ssh_signature_type ssh_type end
def ssh_type
def ssh_type "ssh-ed25519" end
def to_blob
def to_blob Net::SSH::Buffer.from(:mstring, "ssh-ed25519".dup, :string, @verify_key.to_bytes).to_s end
def to_pem
def to_pem # TODO this is not pem ssh_type + [@verify_key.to_bytes].pack("m") end