{"name":"ethr-did-registry","version":"1.0.0","author":{"name":"Pelle Braendgaard"},"license":"MIT","_id":"ethr-did-registry@1.0.0","contributors":[{"name":"Mircea Nistor","email":"mirceanis@gmail.com"}],"homepage":"https://github.com/uport-project/ethr-did-registry#readme","bugs":{"url":"https://github.com/uport-project/ethr-did-registry/issues"},"dist":{"shasum":"9fc076c5dd06288d79d4682ad7dd9b05832e8661","tarball":"http://registry-npm.ywwl.com/ethr-did-registry/download/ethr-did-registry-1.0.0.tgz","fileCount":34,"integrity":"sha512-9Gl3WcogECcdIjCjFbTKtmkz18VlQf50qE9iELnLIYVsEZo+hB38ApwOd83sYMGAjSs2c1dlzUI96H9kyvfl7w==","signatures":[{"sig":"MEYCIQDhNQ1XT+BIGsobWjDhONCYxNiSGzaLP5fKfJhFXoiTgQIhAM1J9Sm0VQ5V7pWkvN08BYN65fKxYX06dPSm6f2N3Kf8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":1441272,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixs9hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqElQ/8DodLkTiY5Yh/ubE9+VqZKQNPsTzQG9RvEg4ufJ4KXqFAEhoR\r\nEz75kpk1U+QnVMBfPXgQ5Bpt4qKuoOEOFwLP6d/luK1L/0asljHRoZr8K7Fd\r\nHqoiqLbeom17AFXob+ucr4jC828B0TytKW3AWVGsi52jdBGTPltQmqhCqyQ0\r\ng0D1Kn+UpkEIclK9m8+Bputo+Ud2veCHqpT+v+SWB+aKUhhl7nKLFU7zi1H2\r\nKxF1TwdO1BX1MsoWUwAabEIJLSm6XLQqtGMhZ7vu3kosq8MV0lgkuVEcJyfS\r\njIFSkeueLYVKcchKW5vqBxC6eAFEZqPj9v8oFLC3heGuHDAQaCyXvc3Cwa/v\r\nKnl0nV9RwMrxQbUr4spW41pczx1JQaumYZ8wt+T5qmpHWrQbZmnulYC6ejA5\r\ncxtiuqIrMEHZ5RSAsNJEpM3Akskuo90Ur/sO4AYeL2sWpL6BYIalJKeQQjpm\r\nOW4THgP10D17ORqgbbQyJAgClpGmTmU8cHtoUZlf3b5LOns5CONvn/kAcoFM\r\niesZfxpz7Jp8tFE3p3bEZw517OsxEnEF1HhUjQvqKeOWRYs0RB7p0JgrtJuu\r\nvi8LERMiL+SyGOv6Gy1wMH6CsfSLlbhepEy/MXd7ouwMRPNZzqxwrjLO67/i\r\nX9kV8qzt7QY0VXDTZLwAMJI0xwe7HvJUu9M=\r\n=H/RI\r\n-----END PGP SIGNATURE-----\r\n","size":102358,"noattachment":false,"key":"/ethr-did-registry/-/ethr-did-registry-1.0.0.tgz"},"main":"./dist/index.js","types":"./dist/index.d.ts","gitHead":"553374b1af559a7727087ae62f8035eb0d2a78fc","scripts":{"lint":"yarn lint:sol && yarn lint:js","test":"hardhat test","build":"yarn build:sol && yarn build:js","format":"prettier -w '**/*.{ts,js,json,md}'","lint:js":"npx eslint '**/*.{js,ts}' --fix","release":"semantic-release --debug","build:js":"tsc","lint:sol":"npx solhint 'contracts/**/*.sol' --fix","build:sol":"hardhat compile","prepublishOnly":"yarn test && yarn format && yarn lint"},"_npmUser":{"name":"uport-automation-bot","email":"devops@uport.me"},"repository":{"url":"git+ssh://git@github.com/uport-project/ethr-did-registry.git","type":"git"},"_npmVersion":"8.13.2","description":"A repository storing keys and other data about Ethereum Decentralized Identifiers (DIDs)","directories":{},"_nodeVersion":"14.19.3","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"ls":"^0.2.1","chai":"^4.3.6","dotenv":"^16.0.1","eslint":"^8.19.0","ethers":"^5.6.9","hardhat":"^2.9.9","solhint":"^3.3.7","ts-node":"^10.8.2","prettier":"^2.7.1","typechain":"^8.1.0","babel-jest":"28.1.2","typescript":"^4.7.4","@babel/core":"7.18.6","@types/chai":"^4.3.1","@types/node":"^18.0.3","uint8arrays":"^3.0.0","@types/mocha":"^9.1.1","ethereumjs-tx":"^2.1.2","eslint-plugin-n":"^15.2.4","ethereum-waffle":"^3.4.4","ethereumjs-util":"^7.1.5","chai-as-promised":"^7.1.1","semantic-release":"19.0.3","@babel/preset-env":"7.18.6","solidity-coverage":"^0.7.21","@typechain/hardhat":"^6.1.2","eslint-plugin-node":"^11.1.0","@typechain/ethers-v5":"^10.1.0","eslint-plugin-import":"^2.26.0","hardhat-gas-reporter":"^1.0.8","@semantic-release/git":"10.0.1","eslint-plugin-promise":"^6.0.0","eslint-config-prettier":"^8.5.0","eslint-config-standard":"^17.0.0","eslint-plugin-prettier":"^4.2.1","@types/chai-as-promised":"^7.1.5","@babel/preset-typescript":"7.18.6","prettier-plugin-solidity":"^1.0.0-beta.13","@nomiclabs/hardhat-ethers":"^2.0.6","@nomiclabs/hardhat-waffle":"^2.0.3","@typescript-eslint/parser":"^5.30.5","@semantic-release/changelog":"6.0.1","@nomiclabs/hardhat-etherscan":"^3.1.0","@typescript-eslint/eslint-plugin":"^5.30.5"},"_npmOperationalInternal":{"tmp":"tmp/ethr-did-registry_1.0.0_1657196385609_0.4795362156329357","host":"s3://npm-registry-packages"},"readme":"---\ntitle: 'Ethereum DID Registry'\nindex: 0\ncategory: 'ethr-did-registry'\ntype: 'reference'\nsource: 'https://github.com/uport-project/ethr-did-registry/blob/develop/README.md'\n---\n\n# Ethereum DID Registry\n\nThis library contains the Ethereum contract code that allows the owner of an ethr-did identity to update the attributes\nthat appear in its did-document. It exposes an API that allows developers to call the contract functions using\nJavascript.\n\nUse this if you want to interact directly with a deployed registry contract directly, or deploy a copy of the contract\nto another Ethereum network.\n\nA DID is an [Identifier](https://w3c.github.io/did-core/#a-simple-example) that allows you to lookup\na [DID document](https://w3c.github.io/did-core/#example-a-simple-did-document) that can be used to authenticate you and\nmessages created by you.\n\nIt's designed for resolving public keys for off-chain authentication—where the public key resolution is handled by using\ndecentralized technology.\n\nThis contract allows Ethereum addresses to present signing information about themselves with no prior registration. It\nallows them to perform key rotation and specify different keys and services that are used on its behalf for both on and\noff-chain usage.\n\n## Contract Deployments\n\n> WARNING\n> Most of these are deployments of version 0.0.3 of the contract and they do not include recent updates.\n> Join the discussion as to how to adopt these new changes [on our discord](https://discord.gg/MTeTAwSYe7)\n\n| Network Name          | name            | chainId    | hexChainId | Registry Address                                                                                                                       | Registry version                                                                                                  |\n| --------------------- | --------------- | ---------- | ---------- | -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |\n| Mainnet               | mainnet         | 1          | 0x1        | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)                  | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Ropsten               | ropsten         | 3          | 0x3        | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://ropsten.etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)          | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Rinkeby               | rinkeby         | 4          | 0x4        | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://rinkeby.etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)          | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Goerli                | goerli          | 5          | 0x5        | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://goerli.etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)           | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Kovan                 | kovan           | 42         | 0x2a       | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://kovan.etherscan.io/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)            | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| RSK                   | rsk             | 30         | 0x1e       | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://explorer.rsk.co/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)               | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| RSK Testnet           |                 | 31         | 0x1f       | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://explorer.testnet.rsk.co/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)       | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| EnergyWeb             | ewc             | 246        | 0xf6       | [0xe29672f34e92b56c9169f9d485ffc8b9a136bce4](https://explorer.energyweb.org/address/0xE29672f34e92b56C9169f9D485fFc8b9A136BCE4)        | [c9063836](https://github.com/uport-project/ethr-did-registry/commit/c90638361a76d247d61ef4e3eb245a78cf587f91)    |\n| EWC Volta             | volta           | 73799      | 0x12047    | [0xc15d5a57a8eb0e1dcbe5d88b8f9a82017e5cc4af](https://volta-explorer.energyweb.org/address/0xC15D5A57A8Eb0e1dCBE5D88B8f9a82017e5Cc4AF)  | [f4e17ee1](https://github.com/uport-project/ethr-did-registry/commit/f4e17ee1eb558c5a006bab1a04108f27d4e3f0d0)    |\n| ARTIS tau1            |                 | 246785     | 0x3c401    | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://explorer.tau1.artis.network/address/0xdCa7EF03e98e0DC2B855bE647C39ABe984fcF21B)   | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| ARTIS sigma1          |                 | 246529     | 0x3c301    | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://explorer.sigma1.artis.network/address/0xdCa7EF03e98e0DC2B855bE647C39ABe984fcF21B) | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Polygon               | polygon         | 137        | 0x89       | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://polygonscan.com/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)               | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Polygon test          |                 | 80001      | 0x13881    | [0xdca7ef03e98e0dc2b855be647c39abe984fcf21b](https://mumbai.polygonscan.com/address/0xdca7ef03e98e0dc2b855be647c39abe984fcf21b)        | [4278342e](https://github.com/uport-project/ethr-did-registry/commit/4278342e9b1dec0ab4fd63f4bd5536094c4de9f0)    |\n| Aurora                | aurora          | 1313161554 | 0x4E454152 | [0x63ed58b671eed12bc1652845ba5b2cdfbff198e0](https://explorer.mainnet.aurora.dev/address/0x63eD58B671EeD12Bc1652845ba5b2CDfBff198e0)   | [0ab4f151](https://github.com/uport-project/ethr-did-registry/commit/0ab4f151ddde5b7739b97827c4fb901289f57892)    |\n| Arbitrum Goerli       | arbitrum:goerli | 421613     | 0x66eed    | [0x8FFfcD6a85D29E9C33517aaf60b16FE4548f517E](https://goerli.arbiscan.io/address/0x8FFfcD6a85D29E9C33517aaf60b16FE4548f517E)            | [af1c2db](https://github.com/uport-project/ethr-did-registry/commit/af1c2db0e093507627338a6e562e0ed7c219b9ee)     |\n| Linea Goerli          | linea:goerli    | 59140      | 0xe704     | [0x03d5003bf0e79c5f5223588f347eba39afbc3818](https://goerli.lineascan.build/address/0x03d5003bf0e79c5f5223588f347eba39afbc3818)        | [af1c2db](https://github.com/uport-project/ethr-did-registry/commit/af1c2db0e093507627338a6e562e0ed7c219b9ee)     |\n| Sepolia               | sepolia         | 11155111   | 0xaa36a7   | [0x03d5003bf0e79c5f5223588f347eba39afbc3818](https://sepolia.etherscan.io/address/0x03d5003bf0e79c5f5223588f347eba39afbc3818#code)     | [af1c2db](https://github.com/uport-project/ethr-did-registry/commit/af1c2db0e093507627338a6e562e0ed7c219b9ee)     |\n| Cardona zkEVM Testnet |                 | 2442       | 0x98a      | [0x03d5003bf0e79c5f5223588f347eba39afbc3818](https://cardona-zkevm.polygonscan.com/address/0x03d5003bf0e79c5f5223588f347eba39afbc3818) | [3baa0b6](https://github.com/pauldesmondparker/ethr-did-registry/commit/3baa0b6ee41aeb38b786a7e93b62e88cd372f564) |\n\n## Using the Registry\n\nThe DID Registry can be used from JavaScript as well as directly from other contracts.\n\nTo use the contract, we provide hardhat artifacts. Once you require the `ethr-did-registry` module, you will get an\nobject containing the JSON.\n\n```javascript\nconst { EthereumDIDRegistry } = require('ethr-did-registry')\n```\n\nYou can use [`ethers.js`](https://github.com/ethers-io/ethers.js/) to utilize these artifacts.\n\n```javascript\nconst { ethers } = require('ethers')\nconst DidReg = new ethers.Contract(registryAddress, EthereumDIDRegistry.abi)\nDidReg.connect(yourSignerOrProvider)\n```\n\n## On-chain vs. Off-chain\n\nFor on-chain interactions Ethereum has a built-in account abstraction that can be used regardless of whether the account\nis a smart contract or a key pair. Any transaction has a `msg.sender` as the verified sender of the transaction.\n\nSince each Ethereum transaction must be funded, there is a growing trend of on-chain transactions that are authenticated\nvia an externally created signature and not by the actual transaction originator. This allows for 3rd party funding\nservices, or for receivers to pay without any fundamental changes to the underlying Ethereum architecture.\n\nThese kinds of transactions have to be signed by an actual key pair and thus cannot be used to represent smart contract\nbased Ethereum accounts.\n\nWe propose a way of a smart contract or regular key pair delegating signing for various purposes to externally managed\nkey pairs. This allows a smart contract to be represented, both on-chain as well as off-chain or in payment channels\nthrough temporary or permanent delegates.\n\n## Identity Identifier\n\nAny Ethereum account regardless of whether it's a key pair or smart contract based is considered to be an account\nidentifier.\n\nAn identity needs no registration.\n\n## Identity Ownership\n\nEach identity has a single address which maintains ultimate control over it. By default, each identity is controlled by\nitself. As ongoing technological and security improvements occur, an owner can replace themselves with any other\nEthereum address, such as an advanced multi-signature contract.\n\nThere is only ever a single identity owner. More advanced ownership models are managed through a multi-signature\ncontract.\n\n### Looking up Identity Ownership\n\nOwnership of identity is verified by calling the `identityOwner(address identity) public view returns(address)`\nfunction. This returns the address of the current Identity Owner.\n\n### Changing Identity Ownership\n\nThe account owner can replace themselves at any time, by calling the `changeOwner(address identity, address newOwner)`\nfunction.\n\nThere is also a version of this function which is called with an externally created signature, that is passed to a\ntransaction funding service.\n\nThe externally signed version has the following\nsignature `changeOwnerSigned(address identity, uint8 sigV, bytes32 sigR, bytes32 sigS, address newOwner)`.\n\nThe signature should be signed of the keccak256 hash of the following tightly packed parameters:\n\n`byte(0x19), byte(0), address of registry, nonce[currentOwner], identity, \"changeOwner\", newOwner`\n\n## Delegates\n\nDelegates are addresses that are delegated for a specific time to perform a function on behalf of an identity.\n\nThey can be accessed both on and off-chain.\n\n### Delegate Types\n\nThe type of function is simply a string, that is determined by a protocol or application higher up.\n\nExamples:\n\n- ‘DID-JWT’\n- ‘Raiden’\n\n### Validity\n\nDelegates expire. The expiration time is application specific and dependent on the security requirements of the identity\nowner.\n\nValidity is set using the number of seconds from the time that adding the delegate is set.\n\n### Looking up a Delegate\n\nYou can check to see if an address is a delegate for an identity using\nthe`validDelegate(address identity, bytes32 delegateType, address delegate) returns(bool)` function. This returns true\nif the address is a valid delegate of the given delegateType.\n\n### Adding a Delegate\n\nAn identity can assign multiple delegates to manage signing on their behalf for specific purposes.\n\nThe account owner can call the `addDelegate(address identity, bytes32 delegateType, address delegate, uint validity)`\nfunction.\n\nThere is also a version of this function which is called with an externally created signature, that is passed to a\ntransaction funding service.\n\nThe externally signed version has the following\nsignature `addDelegateSigned(address identity, uint8 sigV, bytes32 sigR, bytes32 sigS, bytes32 delegateType, address delegate, uint validity)`\n.\n\nThe signature should be signed of the keccak256 hash of the following tightly packed parameters:\n\n`byte(0x19), byte(0), address of registry, nonce[currentOwner], identity, \"addDelegate\", delegateType, delegate, validity`\n\n### Revoking a Delegate\n\nA delegate may be manually revoked by calling\nthe `revokeDelegate(address identity, string delegateType, address delegate)` function.\n\nThere is also a version of this function which is called with an externally created signature, that is passed to a\ntransaction funding service.\n\nThe externally signed version has the following\nsignature `revokeDelegateSigned(address identity, uint8 sigV, bytes32 sigR, bytes32 sigS, bytes32 delegateType, address delegate)`\n.\n\nThe signature should be signed of the keccak256 hash of the following tightly packed parameters:\n\n`byte(0x19), byte(0), address of registry, nonce[currentOwner], identity, \"revokeDelegate\", delegateType, delegate`\n\n### Enumerating Delegates Off-chain\n\nAttributes are stored as `DIDDelegateChanged` events. A `validTo` of 0 indicates a revoked delegate.\n\n```solidity\nevent DIDDelegateChanged(\n    address indexed identity,\n    bytes32 delegateType,\n    address delegate,\n    uint validTo,\n    uint previousChange\n);\n```\n\n## Adding Off-chain Attributes\n\nAn identity may need to publish some information that is only needed off-chain but still requires the security benefits\nof using a blockchain.\n\n### Setting Attributes\n\nThese attributes are set using the `setAttribute(address identity, bytes32 name, bytes value, uint validity)` function\nand published using events.\n\nThere is also a version of this function that is called with an externally created signature, that is passed to a\ntransaction funding service.\n\nThe externally signed version has the following\nsignature `setAttributeSigned(address identity, uint8 sigV, bytes32 sigR, bytes32 sigS, bytes32 name, bytes value, uint validity)`\n.\n\nThe signature should be signed off the keccak256 hash of the following tightly packed parameters:\n\n`byte(0x19), byte(0), address of registry, nonce[currentOwner], identity, \"setAttribute\", name, value, validity`\n\n### Revoking Attributes\n\nThese attributes are revoked using the `revokeAttribute(address identity, bytes32 name, bytes value)` function and\npublished using events.\n\nThere is also a version of this function that is called with an externally created signature, that is passed to a\ntransaction funding service.\n\nThe externally signed version has the following\nsignature `revokeAttributeSigned(address identity, uint8 sigV, bytes32 sigR, bytes32 sigS, bytes32 name, bytes value)`.\n\nThe signature should be signed off the keccak256 hash of the following tightly packed parameters:\n\n`byte(0x19), byte(0), address of registry, nonce[currentOwner], identity, \"revokeAttribute\", name, value`\n\n### Reading attributes\n\nAttributes are stored as `DIDAttributeChanged` events. A `validTo` of 0 indicates a revoked attribute.\n\n```solidity\nevent DIDAttributeChanged(\n    address indexed identity,\n    bytes32 name,\n    bytes value,\n    uint validTo,\n    uint previousChange\n);\n```\n\n### Delegate types and attribute names encoding\n\nFor gas cost reasons the names of attributes and types of delegates are fixed size `bytes32` values. In most situations,\nthis is not a problem since most can be represented by strings shorter than 32 bytes. To get a bytes32 value from them,\nthe recommended approach is to use the byte array representation of your string and right-pad it to get to 32 bytes.\n\n## Enumerating Linked Identity Events\n\nContract Events are a useful feature for storing data from smart contracts exclusively for off-chain use. Unfortunately,\ncurrent Ethereum implementations provide a very inefficient lookup mechanism.\n\nBy using linked events that always link to the previous block with a change to the identity, we can solve this problem\nwith improved performance.\n\nEach identity has its previously changed block stored in the `changed` mapping.\n\n1. Lookup `previousChange` block for identity\n2. Lookup all events for a given identity address using web3, but only for the `previousChange` block\n3. Do something with the event\n4. Find `previousChange` from the event and repeat\n\nExample code\n\n```js\nconst history = []\nlet prevChange = (await DidReg.changed(identityAddress)).toNumber()\nwhile (prevChange) {\n  const logs = await ethers.provider.getLogs({\n    topics: [null, `0x000000000000000000000000${identityAddress}`],\n    fromBlock: prevChange,\n    toBlock: prevChange,\n  })\n  prevChange = 0\n  for (const log of logs) {\n    const logDescription = DidReg.interface.parseLog(log)\n    history.unshift(logDescription)\n    prevChange = logDescription.args.previousChange.toNumber()\n  }\n}\n```\n\n## Assemble a DID Document\n\nThe full spec describing how to interact with this registry to build a DID document can be found in\nthe [ehtr-did-resolver](https://github.com/decentralized-identity/ethr-did-resolver/blob/master/doc/did-method-spec.md)\nrepository.\n\nIn short, you would do something like this:\n\nThe primary owner key should be looked up using `identityOwner(identity)`. This should be the first of the public keys\nlisted.\n\nIterate through the `DIDDelegateChanged` events to build a list of additional keys and authentication sections as\nneeded. The list of delegateTypes to include is still to be determined.\n\nIterate through `DIDAttributeChanged` events for service entries, encrypted public keys, and other public names. The\nattribute names are still to be determined.\n\n## Deploy contract\n\nFirst run,\n\n```bash\n$ scripts/generateDeployTxs.js\n```\n\nYou will get the data needed to deploy as an output from this command.\n\nCopy the `senderAddress` and send `cost` amount of ether to that address on the Ethereum network you wish to deploy to.\n\nOnce this funding transaction is confirmed, simply send the `rawTx` to the same network.\n`contractAddress` is the address of the deployed contract.\n\n`chainId` is intentionally not used in the transaction to make it simpler to deploy to the same address on all networks.\n\n## Testing the Contracts\n\n```bash\nyarn install\nyarn build\nyarn test\n```\n","publish_time":1657196385788,"maintainers":[{"name":"simonas-notcat","email":"simonas@not.cat"},{"name":"mirceanis","email":"mirceanis@gmail.com"},{"name":"uport-automation-bot","email":"devops@uport.me"},{"name":"pelleb","email":"pelleb@gmail.com"}],"_cnpm_publish_time":1657196385788,"dist-tags":{"latest":"2.0.0"}}