Class: CryptoToolchain::DiffieHellman::Messages::PeerAddress

Inherits:
Object
  • Object
show all
Defined in:
lib/crypto_toolchain/diffie_hellman/messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(peer:, channel:, initial: false) ⇒ PeerAddress

Returns a new instance of PeerAddress.



7
8
9
10
11
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 7

def initialize(peer: , channel: , initial: false)
  @peer = peer
  @channel = channel
  @initial = initial
end

Instance Attribute Details

#channelObject (readonly)

Returns the value of attribute channel.



12
13
14
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 12

def channel
  @channel
end

#initialObject (readonly) Also known as: initial?

Returns the value of attribute initial.



12
13
14
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 12

def initial
  @initial
end

#peerObject (readonly)

Returns the value of attribute peer.



12
13
14
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 12

def peer
  @peer
end

#pubkeyObject

Returns the value of attribute pubkey.



14
15
16
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 14

def pubkey
  @pubkey
end

#shared_secretObject

Returns the value of attribute shared_secret.



14
15
16
# File 'lib/crypto_toolchain/diffie_hellman/messages.rb', line 14

def shared_secret
  @shared_secret
end