# ERC-712 typed hash signatures in Sway

**URL:** https://forum.fuel.network/t/erc-712-typed-hash-signatures-in-sway/6415
**Category:** Sway
**Created:** [August 5, 2024, 2:03pm UTC](https://forum.fuel.network/t/erc-712-typed-hash-signatures-in-sway/6415 "2024-08-05T14:03:54Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![partylikeits1983](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/partylikeits1983/32/3471_2.png) [@partylikeits1983](https://forum.fuel.network/u/partylikeits1983)
#### Post date: [August 5, 2024, 2:03pm UTC](https://forum.fuel.network/t/erc-712-typed-hash-signatures-in-sway/6415/1 "2024-08-05T14:03:54Z")

</div>

Does Sway support ERC-712 typed hash signatures?

This allows a user to know what they are signing, instead signing a byte string.

When you use 1inch or UniswapX you are signing typed signatures.

Does a basic implementation of ERC-712 exist for Sway, or do I need to implement this?

> **[EIP-712: Typed structured data hashing and signing](https://eips.ethereum.org/EIPS/eip-712)**
>
> A procedure for hashing and signing of typed structured data as opposed to just bytestrings.

> <https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/EIP712.sol>

Also will the fuel wallet need to support this? Metamask has for quite some time with `eth_signtypeddata_v4`

---

<div class="post-metadata">

### Author: ![rishabhkeshan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/rishabhkeshan/32/3346_2.png) [@rishabhkeshan](https://forum.fuel.network/u/rishabhkeshan)
#### Post date: [August 6, 2024, 9:04am UTC](https://forum.fuel.network/t/erc-712-typed-hash-signatures-in-sway/6415/2 "2024-08-06T09:04:17Z")

</div>

Hey @partylikeits1983, we don’t have an implementation for typed signatures yet though it is in discussions, I will get back to you with more details on the same at the earliest.

---

<div class="post-metadata">

### Author: ![naz3eh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/naz3eh/32/2025_2.png) [@naz3eh](https://forum.fuel.network/u/naz3eh)
#### Post date: [August 6, 2024, 1:17pm UTC](https://forum.fuel.network/t/erc-712-typed-hash-signatures-in-sway/6415/3 "2024-08-06T13:17:42Z")

</div>

Hey @partylikeits1983, we dont have it officially as of now, but if you want you can always create a custon sway implementation of eip 712
