@@ -22,15 +22,15 @@ user from accidentally authorizing an action they didn't intend.
22
22
23
23
_subsection: Messages @<cookbook-signing-messages>
24
24
25
- A signed message can be any data, bu it is generally recommended
25
+ A signed message can be any data, but it is generally recommended
26
26
to use human-readable text, as this is easier for a user to
27
27
verify visually.
28
28
29
29
This technique could be used, for example, to sign into a service
30
30
by using the text ``"I am signing into ethers.org on 2023-06-04 12:57pm"``.
31
31
The user can then see the message in MetaMask or on a Ledger
32
32
Hardware Wallet and accept that they wish to sign the message which
33
- the site can then autheticate them with. By providing a timestamp
33
+ the site can then authenticate them with. By providing a timestamp
34
34
the site can ensure that an older signed message cannot be used again
35
35
in the future.
36
36
@@ -48,7 +48,7 @@ since 0x19 is invalid as the first byte of a transaction (in [[link-rlp]] it
48
48
indicates a single byte of value 25), the initial byte ``\\x19`` has
49
49
now been adopted as a prefix for //some sort of signed data//,
50
50
where the second byte determines how to interpret that data. If the
51
- second bytes is 69 (the letter ``"E"``, as in
51
+ second byte is 69 (the letter ``"E"``, as in
52
52
``"Ethereum Signed Message:\\n"``), then the format is a
53
53
the above prefixed message format.
54
54
@@ -105,7 +105,7 @@ await contract.recoverStringFromExpanded(message, sig);
105
105
await contract.recoverStringFromVRS(message, sig.v, sig.r, sig.s);
106
106
//_result:
107
107
108
- // Or if using a an API that expects a raw signature.
108
+ // Or if using an API that expects a raw signature.
109
109
await contract.recoverStringFromRaw(message, rawSig);
110
110
//_result:
111
111
@@ -202,7 +202,7 @@ contract RecoverMessage {
202
202
return _ecrecover(message, v, sig.r, s);
203
203
}
204
204
205
- // Recover the address from the an expanded Signature struct.
205
+ // Recover the address from the expanded Signature struct.
206
206
//
207
207
// This Signature format is 96 bytes in length.
208
208
function recoverStringFromExpanded(string calldata message, SignatureExpanded calldata sig) public pure returns (address) {
0 commit comments