{"id":25326364,"url":"https://github.com/base/eip712sign","last_synced_at":"2025-12-15T22:48:21.858Z","repository":{"id":182492279,"uuid":"668587176","full_name":"base/eip712sign","owner":"base","description":"Golang utility for signing EIP-712 payloads","archived":false,"fork":false,"pushed_at":"2025-10-20T22:18:20.000Z","size":88,"stargazers_count":98,"open_issues_count":1,"forks_count":59,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-10-22T00:35:42.218Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/base.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-07-20T06:50:16.000Z","updated_at":"2025-10-21T18:33:13.000Z","dependencies_parsed_at":"2025-01-02T19:15:45.653Z","dependency_job_id":"32f24b03-8f98-49e2-89d5-52f015f0548f","html_url":"https://github.com/base/eip712sign","commit_stats":null,"previous_names":["base-org/eip712sign","base/eip712sign"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/base/eip712sign","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Feip712sign","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Feip712sign/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Feip712sign/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Feip712sign/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/base","download_url":"https://codeload.github.com/base/eip712sign/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/base%2Feip712sign/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27757473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-15T02:00:09.782Z","response_time":96,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-14T01:11:23.536Z","updated_at":"2025-12-15T22:48:21.852Z","avatar_url":"https://github.com/base.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eip712sign\n\nSmall golang utility used to sign EIP-712 typed data or hashes, and EIP-191 personal messages. Supports:\n\n- ledgers\n- trezors\n- mnemonics\n- raw private keys\n\n\u003c!-- Badge row 1 - status --\u003e\n\n[![GitHub contributors](https://img.shields.io/github/contributors/base/eip712sign)](https://github.com/base/eip712sign/graphs/contributors)\n[![GitHub commit activity](https://img.shields.io/github/commit-activity/w/base/eip712sign)](https://github.com/base/eip712sign/graphs/contributors)\n[![GitHub Stars](https://img.shields.io/github/stars/base/eip712sign.svg)](https://github.com/base/eip712sign/stargazers)\n![GitHub repo size](https://img.shields.io/github/repo-size/base/eip712sign)\n[![GitHub](https://img.shields.io/github/license/base/eip712sign?color=blue)](https://github.com/base/eip712sign/blob/main/LICENSE)\n\n\u003c!-- Badge row 2 - links and profiles --\u003e\n\n[![Website base.org](https://img.shields.io/website-up-down-green-red/https/base.org.svg)](https://base.org)\n[![Blog](https://img.shields.io/badge/blog-up-green)](https://base.mirror.xyz/)\n[![Docs](https://img.shields.io/badge/docs-up-green)](https://docs.base.org/)\n[![Discord](https://img.shields.io/discord/1067165013397213286?label=discord)](https://base.org/discord)\n[![Twitter BuildOnBase](https://img.shields.io/twitter/follow/BuildOnBase?style=social)](https://twitter.com/BuildOnBase)\n\n\u003c!-- Badge row 3 - detailed status --\u003e\n\n[![GitHub pull requests by-label](https://img.shields.io/github/issues-pr-raw/base/eip712sign)](https://github.com/base/eip712sign/pulls)\n[![GitHub Issues](https://img.shields.io/github/issues-raw/base/eip712sign.svg)](https://github.com/base/eip712sign/issues)\n\n### Installation\n\n```shell\ngo install github.com/base/eip712sign\n```\n\n### Flags\n\n```shell\nUsage of eip712sign:\n  -address\n    \tPrint address of signer and exit\n  -data string\n    \tData to be signed\n  -hd-paths string\n    \tHierarchical deterministic derivation path for mnemonic, ledger, or trezor (default \"m/44'/60'/0'/0/0\")\n  -index int\n    \tDevice index to use (if multiple devices are connected)\n  -ledger\n    \tUse ledger device for signing\n  -mnemonic string\n    \tMnemonic to use for signing\n  -prefix string\n    \tString that prefixes the data to be signed (default \"vvvvvvvv\")\n  -private-key string\n    \tPrivate key to use for signing\n  -skip-sender\n    \tSkip adding the --sender flag to forge script commands\n  -suffix string\n    \tString that suffixes the data to be signed (default \"^^^^^^^^\")\n  -text\n    \tUse EIP-191 message format for signing (default is EIP-712)\n  -trezor\n    \tUse trezor device for signing\n  -workdir string\n    \tDirectory in which to run the subprocess (default \".\")\n```\n\n### Usage\n\n`eip712sign` can either be run as a command wrapper, or data can be piped in via stdin.\nThe former is recommended as it will only attempt to sign if the subprocess exit code is 0.\n\n```shell\neip712sign --ledger -- \u003cCOMMAND\u003e\n```\n\nor\n\n```shell\n\u003cCOMMAND\u003e | eip712sign --ledger\n```\n\nExample signing some bytes output from a forge script:\n\n```shell\neip712sign --ledger -- forge script --rpc-url \u003cRPC_URL\u003e SomeScript\n```\n\n`eip712sign` will parse the stdout from the subprocess, and by default, sign any hex string between the magic strings `vvvvvvvv` and `^^^^^^^^`.\nThis prefix + suffix can be configured using the `-prefix` and `-suffix` flags.\nIn this example, `SomeScript` should print this to the console, for example:\n\n```solidity\nfunction printDataToSign(bytes memory data) internal pure {\n    console.log(\"vvvvvvvv\");\n    console.logBytes(data);\n    console.log(\"^^^^^^^^\");\n}\n```\n\n...where `data` is 66 bytes in length for EIP-712 hashes, or JSON for EIP-712 typed data (can optionally be hex encoded).\n\nExample output:\n\n```shell\nCompiling 5 files with 0.8.15\nSolc 0.8.15 finished in 7.01s\nCompiler run successful!\nScript ran successfully.\n\n== Logs ==\n  vvvvvvvv\n  0x19011b6ca1022dcb8ee88e2ab8dd1adf6f6bfa6af586f8b074e99c952e6e3c6befadd5c5183a56f8aa2520c9522029fc20aba61ce6c6aa32aec3b00519c95eb819e8\n  ^^^^^^^^\n\nforge exited with code 0\n\nDomain hash: 0x1b6ca1022dcb8ee88e2ab8dd1adf6f6bfa6af586f8b074e99c952e6e3c6befad\nMessage hash: 0xd5c5183a56f8aa2520c9522029fc20aba61ce6c6aa32aec3b00519c95eb819e8\n\nData: 0x19011b6ca1022dcb8ee88e2ab8dd1adf6f6bfa6af586f8b074e99c952e6e3c6befadd5c5183a56f8aa2520c9522029fc20aba61ce6c6aa32aec3b00519c95eb819e8\nSigner: 0x4A02DE0C8a1C74AB99D1eCeb56d1d5f54B8293b0\nSignature: 36b6a15e3e86b1ae44bdfc9183c4d86b0eaead44c838530ecb2e43dd0618559579195d42fe63868a44ee0279feef0181b1a9ed3b0faa89bf1ebd48b0f48f54bc1c\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Feip712sign","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbase%2Feip712sign","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbase%2Feip712sign/lists"}