1# -*- coding: binary -*- 2 3module Rex::Proto::Kademlia 4 # Decodes an on-the-wire representation of a Kademlia peer to its 16-character hex equivalent 5 # 6 # @deprecated Access via Rex::Proto::Kademlia::Util 7 # @param bytes [String] the on-the-wire representation of a Kademlia peer 8 # @return [String] the peer ID if valid, nil otherwise 9 def self.decode_peer_id(bytes) 10 Util.decode_peer_id(bytes) 11 end 12end 13 14