Skip to content

Commit 8ef21eb

Browse files
wmjaeSamWilsn
andauthored
Update EIP-712: typo fix (#9699)
* Update EIP-7691: typo fix * Update eip-7691.md --------- Co-authored-by: Sam Wilson <[email protected]>
1 parent 2322185 commit 8ef21eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

EIPS/eip-712.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ where the type of `eip712Domain` is a struct named `EIP712Domain` with one or mo
115115
* `string version` the current major version of the signing domain. Signatures from different versions are not compatible.
116116
* `uint256 chainId` the [EIP-155][EIP-155] chain id. The user-agent *should* refuse signing if it does not match the currently active chain.
117117
* `address verifyingContract` the address of the contract that will verify the signature. The user-agent *may* do contract specific phishing prevention.
118-
* `bytes32 salt` an disambiguating salt for the protocol. This can be used as a domain separator of last resort.
118+
* `bytes32 salt` a disambiguating salt for the protocol. This can be used as a domain separator of last resort.
119119

120120
[EIP-155]: ./eip-155.md
121121

@@ -321,7 +321,7 @@ function hashStruct(Mail memory mail) pure returns (bytes32 hash) {
321321

322322
The in-place implementation makes strong but reasonable assumptions on the memory layout of structs in memory. Specifically it assumes structs are not allocated below address 32, that members are stored in order, that all values are padded to 32-byte boundaries, and that dynamic and reference types are stored as a 32-byte pointers.
323323

324-
**Alternative 6**: Tight packing. This is the default behaviour in Soldity when calling `keccak256` with multiple arguments. It minimizes the number of bytes to be hashed but requires complicated packing instructions in EVM to do so. It does not allow in-place computation.
324+
**Alternative 6**: Tight packing. This is the default behaviour in Solidity when calling `keccak256` with multiple arguments. It minimizes the number of bytes to be hashed but requires complicated packing instructions in EVM to do so. It does not allow in-place computation.
325325

326326
**Alternative 7**: ABIv2 encoding. Especially with the upcoming `abi.encode` it should be easy to use `abi.encode` as the `encodeData` function. The ABIv2 standard by itself fails the determinism security criteria. There are several valid ABIv2 encodings of the same data. ABIv2 does not allow in-place computation.
327327

0 commit comments

Comments
 (0)