lib/lightning/onion/packet.rb in lightning-onion-0.2.4 vs lib/lightning/onion/packet.rb in lightning-onion-0.2.5
- old
+ new
@@ -27,8 +27,12 @@
payload << [version, public_key].pack('aH66')
payload << routing_info.htb
payload << hmac.htb
payload
end
+
+ def last?
+ hmac == "\x00" * 32
+ end
end
end
end