Merge pull request #112 from status-im/auth-test-addition

add ingress mac on foo check in rlpx auth test
This commit is contained in:
kdeme 2019-10-22 13:56:34 +02:00 committed by GitHub
commit f5cdb916c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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})