class Ciri::P2P::RLPX::Secrets

class used to store rplx protocol secrets

Attributes

aes[R]
egress_mac[RW]
ingress_mac[RW]
mac[R]
remote_id[R]

Public Class Methods

new(remote_id: nil, aes:, mac:) click to toggle source
# File lib/ciri/p2p/rlpx/secrets.rb, line 33
def initialize(remote_id: nil, aes:, mac:)
  @remote_id = remote_id
  @aes = aes
  @mac = mac
end

Public Instance Methods

==(other) click to toggle source
# File lib/ciri/p2p/rlpx/secrets.rb, line 39
def ==(other)
  self.class == other.class &&
    remote_id == other.remote &&
    aes == other.aes &&
    mac == other.mac
end