add ingress mac on foo check in rlpx auth test

This commit is contained in:
kdeme 2019-10-22 11:11:39 +02:00
parent 77834d1df0
commit ae49155ae7
No known key found for this signature in database
GPG Key ID: 4E8DD21420AF43F5
1 changed files with 5 additions and 0 deletions

View File

@ -398,6 +398,11 @@ suite "Ethereum P2P handshake test suite":
taes[0..^1] == csecInitiator.aesKey[0..^1]
tmac[0..^1] == csecInitiator.macKey[0..^1]
var ingressMac = csecResponder.ingressMac
ingressMac.update(testE8Value("auth2ack2_ingress_message"))
check ingressMac.finish().data.toHex(true) ==
testE8Value("auth2ack2_ingress_mac")
test "AUTH/ACK EIP-8 with additional fields test vectors":
var initiator = newTestHandshake({Initiator})
var responder = newTestHandshake({Responder})