Class: CARPS::Handshake

Inherits:
Message show all
Defined in:
lib/carps/crypt/handshake.rb

Overview

A cryptographic handshake request

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Message

#crypt, #crypt=, #delete, #from, #from=, #parse, #path=, #save, #session, #session=

Class Method Details

.parse(blob) ⇒ Object

Parse from the void



29
30
31
32
# File 'lib/carps/crypt/handshake.rb', line 29

def Handshake.parse blob
   forget, blob = find K.handshake, blob
   [Handshake.new, blob]
end

Instance Method Details

#emitObject

Emit



35
36
37
# File 'lib/carps/crypt/handshake.rb', line 35

def emit
   K.handshake
end