class Net::SSH::Authentication::ED25519::SigningKeyFromFile

Public Class Methods

new(pk,sk) click to toggle source
Calls superclass method
# File lib/net/ssh/authentication/ed25519.rb, line 17
def initialize(pk,sk)
  key = ::Ed25519::SigningKey.from_keypair(sk)
  raise ArgumentError, "pk does not match sk" unless pk == key.verify_key.to_bytes

  super(key)
end