mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-02-12 05:55:16 -05:00
* chore: use viem instead of ethers * add changeset * remove more ethers usages * move ethers to dev dependecy * add signUserNameProof to Eip712Signer * expand test coverage * update changeset * add makeUserNameProofClaim * prefer @noble/hashes/utils in examples
Signers
Signers are used to sign messages. There are two signature schemes, Eip712 signatures are used to sign SignerAdd and SignerRemove messages, and an Ed25519 key-pair is used to signer all other messages.
This following signer implementations are provided:
- NobleEd25519Signer
- EthersEip712Signer, for use with ethers v6
- EthersV5Eip712Signer, for use with ethers v5
If you'd prefer to use a different library for signing messages, additional signer classes can be made by extending the Eip712Signer and Ed25519Signer classes.