Skip to content

Commit

Permalink
Fix bug in ethereum documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joii2020 committed Sep 20, 2023
1 parent c7c9484 commit 87e20f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ethereum.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ In Ethereum, the `Address` is a 20-byte fixed-length array. When used in program
Ethereum's message is calculated using sha3: `Ethereum Signed Message:\n` + 'message' hash. While ckb-auth's message is a fixed length of 32 bytes, so here, `ethkey` supports the input of messages in both textual form and through a file (by using the `--msgfile` parameter). In this context, Ethereum's message is directly utilized as a data parameter hash, necessitating the use of the `--msgfile` to input a file.

You can use the command provided by `ckb-auth-cli` to convert the message to file:
```
```shell
message=0011223344556677889900112233445500112233445566778899001122334455
message_file=
ethereum generate -m $message --msgfile $message_file
ckb-auth-cli ethereum generate -m $message --msgfile $message_file
```
(You need to set the path of `message_file` here)

Expand Down

0 comments on commit 87e20f6

Please sign in to comment.