{"id":13403951,"url":"https://github.com/pubkey/eth-crypto","last_synced_at":"2025-05-13T23:09:35.521Z","repository":{"id":37561685,"uuid":"118369156","full_name":"pubkey/eth-crypto","owner":"pubkey","description":"Cryptographic javascript-functions for ethereum and tutorials to use them with web3js and solidity","archived":false,"fork":false,"pushed_at":"2025-05-06T23:33:37.000Z","size":655,"stargazers_count":902,"open_issues_count":4,"forks_count":161,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-07T00:30:27.757Z","etag":null,"topics":["blockchain","cipher","dapp","encryption","eth","ethereum","ethereum-identity","privatekey","publickey","sign","sign-data","signature","signtransaction","smart-contracts","solidity","transaction","truffle","tutorial","web3","web3js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/pubkey.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"pubkey"}},"created_at":"2018-01-21T20:02:28.000Z","updated_at":"2025-05-06T23:33:19.000Z","dependencies_parsed_at":"2022-07-14T10:21:36.311Z","dependency_job_id":"8a36e563-35b9-40a8-93df-e7476b76789c","html_url":"https://github.com/pubkey/eth-crypto","commit_stats":{"total_commits":1034,"total_committers":21,"mean_commits":49.23809523809524,"dds":0.4854932301740812,"last_synced_commit":"53f416de24527c708b63264096b1a8f4fae40a3d"},"previous_names":["pubkey/ethereum-encryption"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Feth-crypto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Feth-crypto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Feth-crypto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pubkey%2Feth-crypto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pubkey","download_url":"https://codeload.github.com/pubkey/eth-crypto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254042136,"owners_count":22004849,"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":["blockchain","cipher","dapp","encryption","eth","ethereum","ethereum-identity","privatekey","publickey","sign","sign-data","signature","signtransaction","smart-contracts","solidity","transaction","truffle","tutorial","web3","web3js"],"created_at":"2024-07-30T19:01:36.785Z","updated_at":"2025-05-13T23:09:30.500Z","avatar_url":"https://github.com/pubkey.png","language":"JavaScript","readme":"\u003c!--\n    This is a different readme file which will be published to npm\n    @link https://stackoverflow.com/a/52683086\n    The problem was that googled indexed the npm-site instead of the github site\n--\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca alt=\"travis\" href=\"https://travis-ci.org/pubkey/eth-crypto\"\u003e\n        \u003cimg src=\"https://travis-ci.org/pubkey/eth-crypto.svg?branch=master\" /\u003e\u003c/a\u003e\n    \u003ca href=\"https://twitter.com/pubkeypubkey\"\u003e\n        \u003cimg src=\"https://img.shields.io/twitter/follow/pubkeypubkey.svg?style=social\u0026logo=twitter\"\n            alt=\"follow on Twitter\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# eth-crypto\n\nCryptographic javascript-functions for ethereum and tutorials on how to use them together with web3js and solidity.\n\n## Tutorials\n\n- **[Creating Keys and use them for ethereum-transactions](./tutorials/creating-transactions.md)**\n\n  In this tutorial we will create an ethereum-identity and use it so send transactions to the blockchain.\n\n- **[Sign and validate data with solidity](./tutorials/signed-data.md)**\n\n  In this tutorial we will sign data in javascript and validate the signature inside of a smart-contract.\n\n- **[Sending encrypted and signed data to other identites](./tutorials/encrypted-message.md)**  \n\n  In this tutorial we will use the ethereum-identites and asymmetric cryptography to send an encrypted and signed message from Alice to Bob.\n\n## Functions\n\n### Install\n\n```bash\n  npm install eth-crypto --save\n```\n\n```javascript\n// es6\nimport EthCrypto from 'eth-crypto';\n\n// node\nconst EthCrypto = require('eth-crypto');\n```\n\n## API\n\n- [createIdentity()](https://github.com/pubkey/eth-crypto#createidentity)\n- [publicKeyByPrivateKey()](https://github.com/pubkey/eth-crypto#publickeybyprivatekey)\n- [publicKey.toAddress()](https://github.com/pubkey/eth-crypto#publickeytoaddress)\n- [publicKey.compress()](https://github.com/pubkey/eth-crypto#publickeycompress)\n- [publicKey.decompress()](https://github.com/pubkey/eth-crypto#publickeydecompress)\n- [sign()](https://github.com/pubkey/eth-crypto#sign)\n- [recover()](https://github.com/pubkey/eth-crypto#recover)\n- [recoverPublicKey()](https://github.com/pubkey/eth-crypto#recoverpublickey)\n- [encryptWithPublicKey()](https://github.com/pubkey/eth-crypto#encryptwithpublickey)\n- [decryptWithPrivateKey()](https://github.com/pubkey/eth-crypto#decryptwithprivatekey)\n- [cipher.stringify()](https://github.com/pubkey/eth-crypto#cipherstringify)\n- [cipher.parse()](https://github.com/pubkey/eth-crypto#cipherparse)\n- [signTransaction()](https://github.com/pubkey/eth-crypto#signtransaction)\n- [txDataByCompiled()](https://github.com/pubkey/eth-crypto#txdatabycompiled)\n- [calculateContractAddress()](https://github.com/pubkey/eth-crypto#calculatecontractaddress)\n- [hex.compress() hex.decompress()](https://github.com/pubkey/eth-crypto#hex-compressdecompress)\n\n\n# [READ THE FULL DOCUMENTATION ON GITHUB](https://github.com/pubkey/eth-crypto)\n","funding_links":["https://github.com/sponsors/pubkey"],"categories":["JavaScript","Cryptography"],"sub_categories":["Cairo"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubkey%2Feth-crypto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpubkey%2Feth-crypto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpubkey%2Feth-crypto/lists"}