Class: Net::SSH::Authentication::ED25519::SigningKeyFromFile
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Net::SSH::Authentication::ED25519::SigningKeyFromFile
- Defined in:
- lib/net/ssh/authentication/ed25519.rb
Instance Method Summary collapse
-
#initialize(pk, sk) ⇒ SigningKeyFromFile
constructor
A new instance of SigningKeyFromFile.
Constructor Details
#initialize(pk, sk) ⇒ SigningKeyFromFile
Returns a new instance of SigningKeyFromFile.
15 16 17 18 19 20 |
# File 'lib/net/ssh/authentication/ed25519.rb', line 15 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 |