Class: KStor::Crypto::PrivateKey
- Inherits:
-
ArmoredValue
- Object
- ArmoredValue
- KStor::Crypto::PrivateKey
- Defined in:
- lib/kstor/crypto/keys.rb
Overview
A private key.
Instance Method Summary collapse
-
#to_rbnacl ⇒ Object
Convert ASCII-armored value to a RbNaCl private key.
Methods inherited from ArmoredValue
from_binary, #initialize, #to_ascii, #to_binary
Constructor Details
This class inherits a constructor from KStor::Crypto::ArmoredValue
Instance Method Details
#to_rbnacl ⇒ Object
Convert ASCII-armored value to a RbNaCl private key.
71 72 73 |
# File 'lib/kstor/crypto/keys.rb', line 71 def to_rbnacl RbNaCl::PrivateKey.new(to_binary) end |