{"id":50992713,"url":"https://github.com/hazae41/eip712","last_synced_at":"2026-06-20T05:03:21.893Z","repository":{"id":363785229,"uuid":"1264726886","full_name":"hazae41/eip712","owner":"hazae41","description":"EIP-712 encoding for the web","archived":false,"fork":false,"pushed_at":"2026-06-10T09:38:37.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T11:21:29.201Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hazae41.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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},"funding":{"github":["hazae41"],"patreon":"hazae41"}},"created_at":"2026-06-10T06:08:46.000Z","updated_at":"2026-06-10T09:38:42.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/hazae41/eip712","commit_stats":null,"previous_names":["hazae41/eip712"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/hazae41/eip712","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Feip712","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Feip712/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Feip712/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Feip712/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hazae41","download_url":"https://codeload.github.com/hazae41/eip712/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hazae41%2Feip712/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34557553,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":"2026-06-20T05:03:21.070Z","updated_at":"2026-06-20T05:03:21.887Z","avatar_url":"https://github.com/hazae41.png","language":"TypeScript","funding_links":["https://github.com/sponsors/hazae41","https://patreon.com/hazae41"],"categories":["TypeScript"],"sub_categories":[],"readme":"# EIP-712: Typed structured data hashing and signing\n\nEIP-712 encoding for the web\n\n```bash\nnpm install @hazae41/eip712\n```\n\n[**📦 NPM**](https://www.npmjs.com/package/@hazae41/eip712)\n\n## Features\n\n### Current features\n- 100% TypeScript and ESM\n- No external dependencies\n- Rust-like patterns\n\n## Usage\n\n### Hashing\n\n```tsx\nconst hash: Uint8Array = eip712.hash({\n  types: {\n    EIP712Domain: [\n      { name: \"name\", type: \"string\" },\n      { name: \"version\", type: \"string\" },\n      { name: \"chainId\", type: \"uint256\" },\n      { name: \"verifyingContract\", type: \"address\" },\n    ],\n    Person: [\n      { name: \"name\", type: \"string\" },\n      { name: \"wallet\", type: \"address\" }\n    ],\n    Mail: [\n      { name: \"from\", type: \"Person\" },\n      { name: \"to\", type: \"Person\" },\n      { name: \"contents\", type: \"string\" }\n    ],\n  },\n  primaryType: \"Mail\",\n  domain: {\n    name: \"Ether Mail\",\n    version: \"1\",\n    chainId: 1n,\n    verifyingContract: \"0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC\",\n  },\n  message: {\n    from: {\n      name: \"Cow\",\n      wallet: \"0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826\",\n    },\n    to: {\n      name: \"Bob\",\n      wallet: \"0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB\",\n    },\n    contents: \"Hello, Bob!\",\n  },\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Feip712","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhazae41%2Feip712","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhazae41%2Feip712/lists"}