{"_id":"@clrfund/maci-domainobjs","_rev":"1-38b095949d02124b4b5e705dda2dd9a3","name":"@clrfund/maci-domainobjs","dist-tags":{"latest":"1.1.7"},"versions":{"0.10.2":{"name":"@clrfund/maci-domainobjs","version":"0.10.2","description":"This module implements domain objects. A domain object is:","main":"build/index.js","scripts":{"watch":"tsc --watch","build":"tsc","test":"jest","test-debug":"node --inspect-brk ./node_modules/.bin/jest"},"devDependencies":{"@types/jest":"^24.0.25","@types/node":"^13.1.2","jest":"^24.9.0","maci-crypto":"npm:@clrfund/maci-crypto@^0.10.2","ts-jest":"^24.2.0"},"gitHead":"081845366eb65fffbfa7e60aca3cb69347de488e","types":"./build/index.d.ts","_id":"@clrfund/maci-domainobjs@0.10.2","_nodeVersion":"16.13.2","_npmVersion":"8.1.2","dist":{"integrity":"sha512-Schf4U9X6GibnK/TIeaZ5uJNtcreuP0cBdwfde/2VuA924Bo4P4MPZjXrSOvriP6KYnVt+1/REQE30nLBlVq9w==","shasum":"d1cdb735ae56f286cad2baa227ff47a3178d880c","tarball":"https://registry.npmjs.org/@clrfund/maci-domainobjs/-/maci-domainobjs-0.10.2.tgz","fileCount":9,"unpackedSize":43774,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID6VU1Py/kckyuI1j5r+WmjlAzaQvi2SBX13wCMfzQWtAiEAqd7Ho875Wv3yRBhGaEBN2fThncrCj8AtGEbTwFx3lck="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjf+DoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGQw/+NjnLfpQOKdiAWSGuLNhnBLuRH4uSCXIIo3NtibG/7EA2mgp1\r\nkyE9qW/WTl/bW6fTU/kWVlYdRnNZnmhkqaDfX6I9Sk2AwDxFlG5cn+wX1gZU\r\nvEKvCxTxbXgLcXyKf4xLWGa8QQ9sPKxR3bbDK2N2EfgL5quQmvX/jKvgaiMl\r\nyzVKFGkagyBElr/OxsLqOCfqufbptV8bqgOgdis9t2edyTXivMI8osmmcsOS\r\nPvVL4Q2JRYcjVieONM3e9e6iyRt5XT8eNokiAKsU+dNsN8BvQQOjsb057kQv\r\n1rGlpLwXcbQNp2zi1YoHTS7xjZ5lyAw8Gh2VIwhOswgJ/IM+TdfWK/a7mGnp\r\nVLyYfDEDJjx8sESDSbOAUqHh+vBD20oqLzxshUuv7XMbnPgqy5Y8tg6+CFwh\r\nUF8qcJM84m+tuvWoVrL9cuaJjTErQ0qKW35X++6zwJ+Yw5V2hZjUQc6t3gOx\r\n9fUUygn2+4xk8D0tqGm/rRnoPZsJ4H5udfm80mVUvAIHUDAhE8S3CWSwuNTL\r\niiv4lAPRQa5qiDfwWkbW2YGWzDr2gAOYnFBWYPp3unn6LqlalvmgLMouWxXe\r\nztTjeQ42OiCJn5JuBhaXsbOcTN+XKYvSQO+Oy2X7SS21rQvMX8JtMAB9yNeB\r\nMzxokSchNCT+cX/aopUVtkNYPaZ7h6XkRsM=\r\n=8sfs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"yuetlooo","email":"contact@yuetloo.com"},"directories":{},"maintainers":[{"name":"yuetlooo","email":"contact@yuetloo.com"},{"name":"auryn_macmillan","email":"aurynmacmillan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/maci-domainobjs_0.10.2_1669325032199_0.6369333457803348"},"_hasShrinkwrap":false},"1.1.7":{"name":"@clrfund/maci-domainobjs","version":"1.1.7","description":"[![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link] [![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link]","main":"build/index.js","scripts":{"watch":"tsc --watch","build":"tsc","test":"jest","test-debug":"node --inspect-brk ./node_modules/.bin/jest"},"devDependencies":{"@types/jest":"^26.0.21","@types/node":"^14.14.35","jest":"^26.6.3","@clrfund/maci-crypto":"^1.1.7","ts-jest":"^26.5.4"},"dependencies":{"base64url":"^3.0.1"},"gitHead":"f567a17293114ba2d5e89c711d00a9f4c197f070","types":"./build/index.d.ts","_id":"@clrfund/maci-domainobjs@1.1.7","_nodeVersion":"16.16.0","_npmVersion":"8.11.0","dist":{"integrity":"sha512-nR24qELBjSdDshSCIBs3IyuRoBNPApv44C8NYqapNTDTJndECYqdTz6Rm/eSGr4acJIAOnMb8XB1cm1WpVFCoA==","shasum":"874d1f87f399bf94c180f341dfc2414b4172cd87","tarball":"https://registry.npmjs.org/@clrfund/maci-domainobjs/-/maci-domainobjs-1.1.7.tgz","fileCount":9,"unpackedSize":79765,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAgOTOBiGm9HGH1boIL7HkvLJWtRZrIfWs4gZzSCAx/PAiEAwuA5mjyWeCxBlhZvdAfEDHBpXhqf3xg9+s92ovWgz4g="}]},"_npmUser":{"name":"yuetlooo","email":"contact@yuetloo.com"},"directories":{},"maintainers":[{"name":"yuetlooo","email":"contact@yuetloo.com"},{"name":"auryn_macmillan","email":"aurynmacmillan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/maci-domainobjs_1.1.7_1700116588381_0.6905414936804568"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-24T21:23:52.140Z","0.10.2":"2022-11-24T21:23:52.399Z","modified":"2023-11-16T06:36:28.800Z","1.1.7":"2023-11-16T06:36:28.600Z"},"maintainers":[{"name":"yuetlooo","email":"contact@yuetloo.com"},{"name":"auryn_macmillan","email":"aurynmacmillan@gmail.com"}],"description":"[![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link] [![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link]","readme":"# maci-domainobjs\n\n[![NPM Package][domainobjs-npm-badge]][domainobjs-npm-link]\n[![Actions Status][domainobjs-actions-badge]][domainobjs-actions-link]\n\nThis module implements domain objects. A domain object is:\n\n> a logical container of purely domain information, usually represents a\n> logical entity in the problem domain space\n\nhttps://wiki.c2.com/?DomainObject\n\nIn effect, domain objects are representations of objects shared between other\nmodules in this codebase. They also encapsulate helper functions which make it\neasy to use them with said modules.\n\n## `PrivKey`\n\nA private key. Provides helper functions to do with passing it into a circuit\nin the right format, serialisation and deserialisation, and deep copying.\n\n## `PubKey`\n\nA public key. Provides helper functions to do with passing it into a contract\nfunction or circuit in the right format, hashing, serialisation and\ndeserialisation, and deep copying.\n\n## `Keypair`\n\nEncapsulates a `PrivKey` and `PubKey`. Also provides `genEcdhSharedKey` which\ngenerates an ECDH shared key from a public key and a private key.\n\n## `Command`\n\nThe `Command` domain object represents a request by a user to cast a vote\nand/or change one's public key.\n\n## `Message`\n\nThe `Message` domain object is an encrypted `Command` and signature. That is, a\n`Message` is a `Ciphertext` (defined in [`maci-crypto`](../crypto/README.md))\nwhich is the encrypted `Command` and its `Signature` (also defined in\n`maci-crypto`). In other terms:\n\n```\nMessage = Encrypt([Command, Signature], Key)\n```\n\n## `Ballot`\nRepresents a User's votes in a Poll, as well as their next valid nonce.\n\n## `StateLeaf`\n\nRepresents a leaf in the state tree, which maps public keys to voice credit\nbalances, as well as the timestamp at which it was inserted.\n\n## `VerifyingKey`\n\nEncapsulates a Groth16 zk-SNARK verifying key.\n\n## `Proof`\n\nEncapsulates a Groth16 zk-SNARK proof.\n\n[domainobjs-npm-badge]: https://img.shields.io/npm/v/maci-domainobjs.svg\n[domainobjs-npm-link]: https://www.npmjs.com/package/maci-domainobjs\n[domainobjs-actions-badge]: https://github.com/privacy-scaling-explorations/maci/actions/workflows/domainobjs-build.yml/badge.svg\n[domainobjs-actions-link]: https://github.com/privacy-scaling-explorations/maci/actions?query=workflow%3Adomainobjs\n","readmeFilename":"README.md"}