Class: Beowulf::Type::PublicKey

Inherits:
Serializer show all
Defined in:
lib/beowulf/type/public_key.rb

Instance Method Summary collapse

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.

Raises:

  • (NotImplementedError)


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_bytesObject



9
10
11
# File 'lib/beowulf/type/public_key.rb', line 9

def to_bytes
  pakPubKey(@value)
end

#to_sObject



13
14
15
# File 'lib/beowulf/type/public_key.rb', line 13

def to_s
  @value
end