From 9884fadefcb9400a3fcd8595395c35d6258c11f7 Mon Sep 17 00:00:00 2001 From: Alexandre Paillier Date: Fri, 24 Jun 2022 18:18:09 +0200 Subject: [PATCH] Updated EIP-712 filtering APDU doc to include the chain ID in the sig --- doc/ethapp.adoc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/ethapp.adoc b/doc/ethapp.adoc index fd1a95f..6db1f4a 100644 --- a/doc/ethapp.adoc +++ b/doc/ethapp.adoc @@ -804,10 +804,11 @@ If activated, fields will be by default hidden unless they receive a field name Name substitution commands should come right after the contract address from the domain has been sent with a *SEND STRUCT IMPLEMENTATION*. Perfect moment to do it is when the domain implementation has been sent, just before sending the message implementation. +The chain ID used for the signature must be 8 bytes wide. The signature is computed on : -contract address || display name length || display name +chain ID (BE) || contract address || display name length || display name ##### Field name substitution @@ -816,7 +817,7 @@ Name substitution commands should come before the corresponding *SEND STRUCT IMP The signature is computed on : -contract address || json key length || json key || display name length || display name +chain ID (BE) || contract address || json key length || json key || display name length || display name #### Coding