Skip to content

Commit

Permalink
More signature docs improvements (MetaMask#640)
Browse files Browse the repository at this point in the history
* Fix typo

* Link to playground
  • Loading branch information
danfinlay authored Jan 12, 2023
1 parent 0da0065 commit 1251322
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/guide/signing-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface TypedMessage<T extends MessageTypes> {

### Example

Below is an example of signing typed data with MetaMask. dive example [here](https://metamask.github.io/test-dapp/#signTypedDataV4)
Below is an example of signing typed data with MetaMask. Live example [here](https://metamask.github.io/test-dapp/#signTypedDataV4)

:::: tabs :options="{ useUrlFragment: false }"

Expand Down Expand Up @@ -277,6 +277,8 @@ personalSignButton.addEventListener('click', async function (event) {

::::

The requested text is prepended with `\x19Ethereum Signed Message:\n<length of message>` before being hashed and signed. You can try the method out in [our interactive API playground](https://metamask.github.io/api-playground/api-documentation/#personal_sign).

## Signing Data with MetaMask

If you’d like to jump to some working signature examples, [you can visit this repository](https://github.com/MetaMask/test-dapp).
Expand Down

0 comments on commit 1251322

Please sign in to comment.