1
0
mirror of https://github.com/ACINQ/eclair.git synced 2024-11-20 10:39:19 +01:00

fixed typo in assert message

This commit is contained in:
Pierre-Marie Padiou 2017-01-30 14:21:25 +01:00 committed by GitHub
parent a914b88bc1
commit 0d4a117f94

View File

@ -113,7 +113,7 @@ object Sphinx {
* - packet is the next packet, to be forwarded to address
*/
def parsePacket(privateKey: PrivateKey, associatedData: BinaryData, packet: BinaryData): (BinaryData, BinaryData, BinaryData) = {
require(packet.length == 1254, "onion packet length should be 1854")
require(packet.length == 1254, "onion packet length should be 1254")
val header = Header.read(packet)
val perHopPayload = packet.drop(854)
val sharedSecret = computeSharedSecret(PublicKey(header.publicKey), privateKey)