Skip to content

Commit d11a2b5

Browse files
committed
docs: fixed typos in signing cookbook (#4400)
1 parent 61a66e4 commit d11a2b5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs.wrm/cookbook/signing.wrm

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ user from accidentally authorizing an action they didn't intend.
2222

2323
_subsection: Messages @<cookbook-signing-messages>
2424

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
2626
to use human-readable text, as this is easier for a user to
2727
verify visually.
2828

2929
This technique could be used, for example, to sign into a service
3030
by using the text ``"I am signing into ethers.org on 2023-06-04 12:57pm"``.
3131
The user can then see the message in MetaMask or on a Ledger
3232
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
3434
the site can ensure that an older signed message cannot be used again
3535
in the future.
3636

@@ -48,7 +48,7 @@ since 0x19 is invalid as the first byte of a transaction (in [[link-rlp]] it
4848
indicates a single byte of value 25), the initial byte ``\\x19`` has
4949
now been adopted as a prefix for //some sort of signed data//,
5050
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
5252
``"Ethereum Signed Message:\\n"``), then the format is a
5353
the above prefixed message format.
5454

@@ -105,7 +105,7 @@ await contract.recoverStringFromExpanded(message, sig);
105105
await contract.recoverStringFromVRS(message, sig.v, sig.r, sig.s);
106106
//_result:
107107

108-
// Or if using a an API that expects a raw signature.
108+
// Or if using an API that expects a raw signature.
109109
await contract.recoverStringFromRaw(message, rawSig);
110110
//_result:
111111

@@ -202,7 +202,7 @@ contract RecoverMessage {
202202
return _ecrecover(message, v, sig.r, s);
203203
}
204204

205-
// Recover the address from the an expanded Signature struct.
205+
// Recover the address from the expanded Signature struct.
206206
//
207207
// This Signature format is 96 bytes in length.
208208
function recoverStringFromExpanded(string calldata message, SignatureExpanded calldata sig) public pure returns (address) {

0 commit comments

Comments
 (0)