Class: Beowulf::Type::PublicKey
- Inherits:
-
Serializer
- Object
- Serializer
- Beowulf::Type::PublicKey
- Defined in:
- lib/beowulf/type/public_key.rb
Instance Method Summary collapse
-
#initialize(value) ⇒ PublicKey
constructor
A new instance of PublicKey.
- #to_bytes ⇒ Object
- #to_s ⇒ Object
Methods included from Utils
#debug, #error, #extract_signatures, #hexlify, #pakArr, #pakC, #pakHash, #pakI, #pakL!, #pakPubKey, #pakQ, #pakS, #pakStr, #pakc, #pakq, #paks, #send_log, #unhexlify, #varint, #warning
Constructor Details
#initialize(value) ⇒ PublicKey
Returns a new instance of PublicKey.
4 5 6 7 |
# File 'lib/beowulf/type/public_key.rb', line 4 def initialize(value) super(:public_key, value) raise NotImplementedError, 'stub' end |
Instance Method Details
#to_bytes ⇒ Object
9 10 11 |
# File 'lib/beowulf/type/public_key.rb', line 9 def to_bytes pakPubKey(@value) end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/beowulf/type/public_key.rb', line 13 def to_s @value end |