{"id":19961718,"url":"https://github.com/doiim/p2pix-signature-schema","last_synced_at":"2026-05-13T17:30:52.899Z","repository":{"id":170313016,"uuid":"644873196","full_name":"doiim/p2pix-signature-schema","owner":"doiim","description":"A signature schema to be used for validate ITP signatures.","archived":false,"fork":false,"pushed_at":"2023-05-28T12:44:35.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T07:45:36.897Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/doiim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2023-05-24T12:39:17.000Z","updated_at":"2023-05-28T06:17:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"a727dc91-012a-41ee-a849-141b16367b71","html_url":"https://github.com/doiim/p2pix-signature-schema","commit_stats":null,"previous_names":["doiim/p2pix-signature-schema"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix-signature-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix-signature-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix-signature-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doiim%2Fp2pix-signature-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doiim","download_url":"https://codeload.github.com/doiim/p2pix-signature-schema/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396739,"owners_count":19956404,"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","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":"2024-11-13T02:08:16.904Z","updated_at":"2025-11-24T20:04:30.325Z","avatar_url":"https://github.com/doiim.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# p2pix-signature-schema\n\nA signature schema to be used for validate ITP signatures.\n\n## Installation\n```sh\ngit clone git@github.com:doiim/p2pix-signature-schema.git\nnpm install \n```\n\n## Usage\n\nFirst you need to run **private-key-derivation** script with an additional parameters representing the message you want to sign\n\n```sh\nnode private-key-generation 'supersecretpass'\n```\n\nAfter that a .privakey file will be created and will be used by the **sign-message** to sign a message passed as parameter\n\n```sh\nnode sign-message 'message to be signed'\n```\n\n## How it works\n\nEthers is an EVM integration library that support import different kind of wallets and connect to multiple type of providers. It allows a wallet send transactions, sign messages, encode/decode data. What we are doing here, is derive a private key from a password and a salt, create a Signer object and use it to sign a message. Once a third-party or a contract knows the message signed and the signature, it could verify the signer address using **ECRecover** function. In that case, soon an ITP sign a message defined by the protocol, a smart-contract that knows the **Signer Address/Account Address** could validate any message.\n\n\n\n## References \n\n[Ethers Cookbook](https://docs.ethers.org/v4/cookbook-signing.html)\n\n[Ethereum Account Explained](https://ethereum.org/en/developers/docs/accounts/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoiim%2Fp2pix-signature-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoiim%2Fp2pix-signature-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoiim%2Fp2pix-signature-schema/lists"}