Class: KStor::Crypto::PublicKey
- Inherits:
-
ArmoredValue
- Object
- ArmoredValue
- KStor::Crypto::PublicKey
- Defined in:
- lib/kstor/crypto/keys.rb
Overview
A public key.
Instance Method Summary collapse
-
#to_rbnacl ⇒ Object
Convert ASCII-armored value to a RbNaCl public 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 public key.
79 80 81 |
# File 'lib/kstor/crypto/keys.rb', line 79 def to_rbnacl RbNaCl::PublicKey.new(to_binary) end |