Skip to content

Commit 060e31a

Browse files
committed
Fix markdown and spelling errors
1 parent 84643ea commit 060e31a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/book/src/blockchain-development/hashing_and_cryptography.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The Sway standard library provides easy access to a selection of cryptographic h
1010

1111
## Cryptographic Signature Recovery and Verification
1212

13-
Fuel supports 3 asymmetric cryptographic signature schemes; Secp256k1, Secp256r1, and Ed25519.
13+
Fuel supports 3 asymmetric cryptographic signature schemes; `Secp256k1`, `Secp256r1`, and `Ed25519`.
1414

1515
### Public Key Recovery
1616

@@ -28,7 +28,7 @@ Given a `Signature` and signed `Message`, you can recover a Fuel `Address`.
2828
{{#include ../../../../examples/signatures/src/main.sw:address_recovery}}
2929
```
3030

31-
#### EVM Address
31+
#### Signed Message EVM Address Recovery
3232

3333
Recovery of EVM addresses is also supported.
3434

@@ -44,15 +44,15 @@ Given a `Signature`, `PublicKey`, and `Message`, you can verify that the message
4444
{{#include ../../../../examples/signatures/src/main.sw:signature_verification}}
4545
```
4646

47-
### Address Signature Verification Verification
47+
### Address Signature Verification
4848

49-
Given a `Signature`, `Address`, and `Message`, you can verify that the message was signed by thr address.
49+
Given a `Signature`, `Address`, and `Message`, you can verify that the message was signed by the address.
5050

5151
```sway
5252
{{#include ../../../../examples/signatures/src/main.sw:address_verification}}
5353
```
5454

55-
#### EVM Address
55+
#### EVM Address Signature Verification
5656

5757
Recovery of EVM addresses verification is also supported.
5858

examples/signatures/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ fn address_verification() {
173173
0x2555de81cd3a40382d3d64eb1c77e463eea5a76d65ec85f283e0b3d568352678,
174174
));
175175
let signed_message = Message::from(0xa13f4ab54057ce064d3dd97ac3ff30ed704e73956896c03650fe59b1a561fe15);
176-
// A verifed address
176+
// A verified address
177177
let secp256k1_verified = secp256k1_signature.verify_address(secp256k1_address, signed_message);
178178
assert(secp256k1_verified.is_ok());
179179

test/src/in_language_tests/test_programs/crypto_signature_inline_tests/src/main.sw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ fn signature_address() {
8888
}
8989

9090
#[test]
91-
fn signature_evm_addres() {
91+
fn signature_evm_address() {
9292
let hi_1 = 0xbd0c9b8792876713afa8bff383eebf31c43437823ed761cc3600d0016de5110c;
9393
let lo_1 = 0x44ac566bd156b4fc71a4a4cb2655d3dd360c695edb17dc3b64d611e122fea23d;
9494
let msg_hash_1 = 0xee45573606c96c98ba970ff7cf9511f1b8b25e6bcd52ced30b89df1e4a9c4323;

0 commit comments

Comments
 (0)