lib/lightning/onion/sphinx.rb in lightning-onion-0.2.6 vs lib/lightning/onion/sphinx.rb in lightning-onion-0.2.8

- old
+ new

@@ -36,9 +36,10 @@ [packet, shared_secrets.zip(public_keys)] end # @return payload 33bytes payload of the outermost layer of onions,which including realm # @return packet + # @return Shared Secret def self.parse(private_key, raw_packet) packet = Lightning::Onion::Packet.parse(raw_packet) shared_secret = compute_shared_secret(packet.public_key, private_key) rho = generate_key('rho', shared_secret) bin = xor(