{"_id":"crypto-conditions","_rev":"20-dcffa6e3c6beac0a8b473b63e5c89783","name":"crypto-conditions","description":"Implementation of crypto-conditions in JavaScript","dist-tags":{"latest":"2.2.1"},"versions":{"2.0.0":{"name":"crypto-conditions","version":"2.0.0","description":"Implementation of crypto-conditions in JavaScript","main":"index.js","browser":"./dist/index.js","directories":{"test":"test"},"files":["index.js","src","dist","schemas"],"dependencies":{"asn1.js":"^4.9.0","tweetnacl":"^1.0.0","ed25519":"0.0.4"},"devDependencies":{"ajv":"^5.3.0","babel-cli":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-es2015":"^6.9.0","babel-runtime":"^6.26.0","babelify":"^8.0.0","brfs":"^1.4.3","chai":"^4.1.2","codecov":"^3.0.0","cz-conventional-changelog":"^2.1.0","eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","husky":"^0.14.3","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.5.5","json-loader":"^0.5.7","karma":"^1.7.1","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.4","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^2.0.6","md-toc-filter":"^0.9.0","mocha":"^4.0.1","mustache":"^2.3.0","nyc":"^11.3.0","phantomjs-prebuilt":"^2.1.16","readme-to-test":"github:justmoon/readme-to-test#feature/st-improvements","release-it":"^5.0.0","sinon":"^4.1.2","watchify":"^3.9.0","webpack":"^3.8.1"},"scripts":{"lint":"eslint .","build":"npm run build:web","build:web":"webpack -p --config webpack.config.js","prepublish":"npm run build:web","test:readme":"readme-to-test","test:specs":"NODE_ENV=unit nyc mocha","test:phantom":"karma start --single-run","test":"npm run test:readme && npm run test:specs && npm run test:phantom","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive","release-minor":"./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive","release-major":"./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"ed25519":"0.0.4"},"gitHead":"5573391ec096eae40de077178233603c93504a4a","_id":"crypto-conditions@2.0.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},"dist":{"integrity":"sha512-8BcsDjbPO+EmsChOJnoVHwfrarNDDvV04+edtEiIBsx6hMWSA+dEOEkvECBsxE4RbD1fpJkQdYJzfHp63iP2JQ==","shasum":"49e869526b2107bb17bebd0413c84e380cde7ee4","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCCP3RPpyRcM3pBOI/H+qu/bqckkvNIj/PrffhSSle3igIhALWD7RNIDvtH1yS0TcQymQWuMoAW92rM81ht+JIOinau"}]},"maintainers":[{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions-2.0.0.tgz_1511789693948_0.0025552487932145596"}},"2.0.1":{"name":"crypto-conditions","version":"2.0.1","description":"Implementation of crypto-conditions in JavaScript","main":"index.js","browser":"./dist/index.js","directories":{"test":"test"},"files":["index.js","src","dist","schemas"],"dependencies":{"asn1.js":"^4.9.0","tweetnacl":"^1.0.0","ed25519":"0.0.4"},"devDependencies":{"ajv":"^5.3.0","babel-cli":"^6.26.0","babel-loader":"^7.1.2","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-transform-runtime":"^6.23.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.6.1","babel-preset-es2015":"^6.9.0","babel-runtime":"^6.26.0","babelify":"^8.0.0","brfs":"^1.4.3","chai":"^4.1.2","codecov":"^3.0.0","cz-conventional-changelog":"^2.1.0","eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","husky":"^0.14.3","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.5.5","json-loader":"^0.5.7","karma":"^1.7.1","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.4","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^2.0.6","md-toc-filter":"^0.9.0","mocha":"^4.0.1","mustache":"^2.3.0","nyc":"^11.3.0","phantomjs-prebuilt":"^2.1.16","readme-to-test":"github:justmoon/readme-to-test#feature/st-improvements","release-it":"^5.0.0","sinon":"^4.1.2","watchify":"^3.9.0","webpack":"^3.8.1"},"scripts":{"lint":"eslint .","build":"npm run build:web","build:web":"webpack -p --config webpack.config.js","prepublish":"npm run build:web","test:readme":"readme-to-test","test:specs":"NODE_ENV=unit nyc mocha","test:phantom":"karma start --single-run","test":"npm run test:readme && npm run test:specs && npm run test:phantom","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive","release-minor":"./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive","release-major":"./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"ed25519":"0.0.4"},"gitHead":"5ca6d4d4e2b1bd18b4acd29a70f00955d98e4048","_id":"crypto-conditions@2.0.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},"dist":{"integrity":"sha512-dsVdzcPa9SwpT1O69piJ3vvLUCUMLKSfYORwJVe1j01gwuWaGUx00/09FGIvXbmOrKMzA5T65Kpb/W5qMNreDQ==","shasum":"c41f6acedb087edbd02a65aa4780b6dbabbc0d3b","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDpeE65lm4QycN19oQN2gj+Lz045SqJzgrRwkcoXiIFzAIgFNVebyPxCVo8YCxcLad6j+vOQI4uU0oRvdmh/LdMXGw="}]},"maintainers":[{"email":"jernej.pregelj88@gmail.com","name":"jernej.pregelj"},{"email":"m@kretschmann.io","name":"kremalicious"},{"email":"agranzot@gmail.com","name":"vrde"},{"email":"tim.daubenschuetz@gmail.com","name":"timdaub"},{"email":"dimi.dejonghe@gmail.com","name":"diminator"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions-2.0.1.tgz_1511790107762_0.7971014061477035"}},"2.0.3":{"name":"crypto-conditions","version":"2.0.3","description":"Implementation of crypto-conditions in JavaScript","main":"index.js","browser":"./dist/index.js","directories":{"test":"test"},"files":["index.js","src","dist","schemas"],"dependencies":{"asn1.js":"4.9.2","tweetnacl":"^1.0.0","ed25519":"0.0.4"},"devDependencies":{"ajv":"^6.5.2","babel-cli":"^6.26.0","babel-loader":"^7.1.5","babel-plugin-transform-runtime":"^6.23.0","babel-polyfill":"^6.26.0","babel-preset-env":"^1.7.0","babel-preset-es2015":"^6.9.0","babel-runtime":"^6.26.0","chai":"^4.1.2","codecov":"^3.0.4","cross-env":"^5.2.0","cz-conventional-changelog":"^2.1.0","eslint":"^4.11.0","eslint-config-standard":"^10.2.1","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^5.2.1","eslint-plugin-promise":"^3.6.0","eslint-plugin-standard":"^3.0.1","husky":"^0.14.3","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.5.5","karma":"^3.0.0","karma-mocha":"^1.3.0","karma-phantomjs-launcher":"^1.0.4","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.0-beta.0","md-toc-filter":"^0.9.0","mocha":"^5.2.0","nyc":"^12.0.2","phantomjs-prebuilt":"^2.1.16","readme-to-test":"github:justmoon/readme-to-test#feature/st-improvements","release-it":"^7.5.0","rimraf":"^2.6.2","sinon":"^6.1.5","uglifyjs-webpack-plugin":"^1.2.7","webpack":"^4.16.1","webpack-cli":"^3.0.8","webpack-concat-plugin":"^3.0.0","webpack-merge":"^4.1.3","webpack-sources":"^1.1.0"},"scripts":{"lint":"eslint .","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack -p --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/node","test:readme":"readme-to-test","test:specs":"NODE_ENV=unit nyc mocha","test:phantom":"karma start --single-run","test":"npm run test:readme && npm run test:specs && npm run test:phantom","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"./node_modules/release-it/bin/release-it.js --src.tagName='v%s' --github.release --npm.publish --non-interactive","release-minor":"./node_modules/release-it/bin/release-it.js minor --src.tagName='v%s' --github.release --npm.publish --non-interactive","release-major":"./node_modules/release-it/bin/release-it.js major --src.tagName='v%s' --github.release --npm.publish --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"optionalDependencies":{"ed25519":"0.0.4"},"gitHead":"f1b1434e7f2a5cdbb1740fa911749f317caa2201","_id":"crypto-conditions@2.0.3","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},"dist":{"integrity":"sha512-JUCw6lcPhdGLmF390Q5SjieG2SKM20lz6TjTpX8XXSt62FWF3IXtUzsMzxJK+OQYBN3In1fA6lQHXus2PzGq6g==","shasum":"bc18766010c29396e64ee23f0e25a3b746efe0b3","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.0.3.tgz","fileCount":97,"unpackedSize":27208744,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbcqiRCRA9TVsSAnZWagAA6AwQAILo7Ij6Cg2CamCRFefu\nWYqG4ivK3uEIUmz3WDDwLqieohop8UFNUH1NoyUCZc9c8skXS7zuYyFN5Hw1\n5B2AGYJPA9SCiscWpX+zoDxpsi7RQMGOdGmta8DRbovG732ekk8CrfcR0ooc\nPx9VaQMMmwaRukXC87d8NRs19i2WaB5PJPtjjpjfqfresDBHD5XU9Whr2O7b\n+GiV2eSZBYcbGWv2vfAiwRZz7kdy43FiIWXas0zlEBkjzQQWkSAK4e0V4S1r\npst3amKihlxqdTd9744apQG6UcRjnhzdbBhu12SUk2wtlUzJrUrULzX/R3g1\nOli9JB8UPXioHrvcKBScGgSqP+i7bIsJ24k4w2F4XL/IthigH4L+3SQR5QbT\nGmEcwpR9bzBdFTRpC2lsh6DGQVn3R0Iry6sHyxXcTgjqHLXU/Xryldr4lknp\nL/PIQSUgqZupBjv6sbIIRyW2n7Nag1WlbY9SS44+y57iC5zInBkW//ibq4WX\neJDhdW6spGsmsZ4wOfECIQupI76DP9LDiV1tLOI0n8oIicX+F7lmUdBB3kM3\nXECo1ECTS6ha+V8R6c4bHILgP1HWsLp0Q1D6aiSubvUJ6RnbMiSmrccgDucj\n5w0GnhHZT0AjNvcrP9BI+ffF0JQAayUVhjq3CkX9FHaBdO0+I600V4c6l3N0\nYkLS\r\n=2E/z\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCGUF1/ek9RcwpsewmI4f/lbuyjTQi0dTanxxBMlyIYZwIgHbM67RkCPtKdhf2ZHrwEO5v3BZzEh4Cq6nCbpoe+SjE="}]},"maintainers":[{"email":"dimi.dejonghe@gmail.com","name":"diminator"},{"email":"jernej.pregelj88@gmail.com","name":"jernej.pregelj"},{"email":"m@kretschmann.io","name":"kremalicious"},{"email":"manuel@bigchaindb.com","name":"manolodewiner"},{"email":"tim.daubenschuetz@gmail.com","name":"timdaub"},{"email":"agranzot@gmail.com","name":"vrde"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.0.3_1534240905310_0.615505801892438"},"_hasShrinkwrap":false},"2.1.0":{"name":"crypto-conditions","version":"2.1.0","description":"Implementation of crypto-conditions in JavaScript","main":"./dist/node/index.js","browser":"./dist/browser/CryptoConditions.cjs2.min.js","types":"./types/index.d.ts","directories":{"test":"test"},"dependencies":{"asn1.js":"5.4.1","tweetnacl":"^1.0.3","ed25519":"0.0.5"},"optionalDependencies":{"ed25519":"0.0.5"},"devDependencies":{"@babel/cli":"^7.13.0","@babel/core":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.9","@babel/preset-env":"^7.13.9","babel-loader":"^8.2.2","chai":"^4.3.3","codecov":"^3.0.4","cross-env":"^7.0.3","cz-conventional-changelog":"^2.1.0","do-you-even-bench":"^1.0.5","eslint":"^7.21.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","husky":"^5.1.3","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.6.6","karma":"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","lint-staged":"^10.5.4","md-toc-filter":"^0.9.0","mocha":"^8.3.0","mustache":"^4.1.0","nyc":"^15.1.0","puppeteer":"^8.0.0","release-it":"^14.4.1","rimraf":"^3.0.2","sinon":"^6.1.5","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.5.0","webpack-concat-plugin":"^3.0.0","webpack-merge":"^5.7.3","webpack-sources":"^2.2.0"},"scripts":{"lint":"eslint .","lint-staged":"lint-staged","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack --mode production --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/browser dist/node","test:specs":"NODE_ENV=unit nyc mocha","test:browser":"karma start --single-run","test":"npm run test:specs && npm run test:browser","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'","release-minor":"release-it minor --src.tagName='v%s' --non-interactive","release-major":"release-it major --src.tagName='v%s' --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","lint-staged":{"*.js":["eslint"]},"release-it":{"github":{"release":true},"git":{"tagName":"v${version}"},"hooks":{"before:init":["npm run test"]},"npm":{"publish":true}},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"0b082be95b2ed8e2f6915309a0cd9fd792a85e0c","_id":"crypto-conditions@2.1.0","_nodeVersion":"14.15.4","_npmVersion":"7.6.1","dist":{"integrity":"sha512-B5rZdIkGAhZ9pkO/0fFP8ltpTBWAYXnRnZ0yAZoTo5hL8dXVdMrWsWnuQKxRxGuFtaVDL8jea+Og18Wzwp3FWQ==","shasum":"420768e2a82496b0bea04e93c5773274f9543298","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.1.0.tgz","fileCount":58,"unpackedSize":12405411,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRzlACRA9TVsSAnZWagAAgc4QAJHrCcYTxu/SwByXMrtn\n6fNARIuH5AiCMrNfU6flv14zsL1MCkZuvYlPZ2JrZhvoDJU+pIiJucPperSb\n8kvE0PblVkq56X/sglbxZkBPxot1HgKdtWcR8B/W1Rd9ICOZHx4i0MXTH0+O\nSHWeBFflJ01MyBtZ+Px3nh+FsCWn+/wvC0/vNFrQPWklU/lZfRwiJSlJTzs3\nLvv9F8w06rAt2BMWv1fYYqnnDwiabz85GOz81E37rYojXCWMkMVb6TtyZVwd\nJhe+m7umznm/3kS50T+O/oQr0KyIEc6DGtnHwSkTro+3odM7sSCG0yRj0gBX\nKBlv6Asw8hg/gKAKddw9Q3yepFHrpbgJ6L/Vx6xz9sUuGkm0rVEjV25lRJjk\nDB+LLQ5vnlB+GmtOpO3xEBa/I5V4LGRKY9gCiHMd3jaY7n7xaxgFieLPHcZC\niw0b9Z6PKciJhpsvX/pH2MvrjBH4S3WuK921un+6Wt6ni4Zn6+ZPmgTtRUCT\ndUVK+uqj4F4bk3dBvGfcj+mEZy8yEKXj1EAVeV0HiauBYcu0bdoW+MDnSFAP\nEUUhzeErKsVaUm/vn0eoWSHOwFqhvYKMLjoGTtJZNQ9WueKi11AJx/doQqFb\nvWnyLYWXqY027YtwW9FFdwjK+8zYAOAFKIyGDagvmS7vEdCPyL14orktwJWT\n4gQc\r\n=nhcW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYQp1YdamPjx3Zo9yocpsIR5RL9CmPDGVxzxGVCaph3AIhAL4KqmcYEsBWFGQSJQsprB6R/8vlCHycLztnRmpJsHrF"}]},"_npmUser":{"name":"getlarge","email":"ed@getlarge.eu"},"maintainers":[{"name":"getlarge","email":"ed@getlarge.eu"},{"name":"zzappie","email":"mail@davie.li"},{"name":"kremalicious","email":"m@kretschmann.io"},{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},{"name":"troymc","email":"troy@troymcconaghy.com"},{"name":"bdbadmin","email":"operations@ipdb.io"},{"name":"manolodewiner","email":"manolosingular@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.1.0_1615280447337_0.8314685412738199"},"_hasShrinkwrap":false},"2.1.1":{"name":"crypto-conditions","version":"2.1.1","description":"Implementation of crypto-conditions in JavaScript","main":"./dist/node/index.js","browser":"./dist/browser/CryptoConditions.cjs2.min.js","types":"./types/index.d.ts","directories":{"test":"test"},"dependencies":{"asn1.js":"5.4.1","tweetnacl":"^1.0.3","ed25519":"0.0.5"},"optionalDependencies":{"ed25519":"0.0.5"},"devDependencies":{"@babel/cli":"^7.13.0","@babel/core":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.9","@babel/preset-env":"^7.13.9","babel-loader":"^8.2.2","chai":"^4.3.3","codecov":"^3.0.4","cross-env":"^7.0.3","cz-conventional-changelog":"^2.1.0","do-you-even-bench":"^1.0.5","eslint":"^7.21.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","husky":"^5.1.3","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.6.6","karma":"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","lint-staged":"^10.5.4","md-toc-filter":"^0.9.0","mocha":"^8.3.0","mustache":"^4.1.0","nyc":"^15.1.0","puppeteer":"^8.0.0","release-it":"^14.4.1","rimraf":"^3.0.2","sinon":"^6.1.5","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.5.0","webpack-concat-plugin":"^3.0.0","webpack-merge":"^5.7.3","webpack-sources":"^2.2.0"},"scripts":{"lint":"eslint .","lint-staged":"lint-staged","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack --mode production --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/browser dist/node","test:specs":"NODE_ENV=unit nyc mocha","test:browser":"karma start --single-run","test":"npm run test:specs && npm run test:browser","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'","release-minor":"release-it minor --src.tagName='v%s' --non-interactive","release-major":"release-it major --src.tagName='v%s' --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","lint-staged":{"*.js":["eslint"]},"release-it":{"github":{"release":true},"git":{"tagName":"v${version}"},"hooks":{"before:init":["npm run test"]},"npm":{"publish":true}},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"526fd1db844e7cd1cb61a29e4101910bee598d1e","_id":"crypto-conditions@2.1.1","_nodeVersion":"14.15.4","_npmVersion":"7.6.1","dist":{"integrity":"sha512-rznsEkMkm29L0x5fknopA6tuNvhvLzHj0R5ZaUv1MKs7o0Gj9yMb5zJiyQ6PAs5m6LUwzSHPcfWmHmnD6exrNQ==","shasum":"653ed570d7696eaf328bf046741f3bec2b31ac40","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.1.1.tgz","fileCount":59,"unpackedSize":12409761,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgR0fUCRA9TVsSAnZWagAAnHkP+wdVz+LSMWJ7FNFNTrsp\nVERBNgPYR+83wvGlAMfi/uyIbxth0bpf1oS6Nix/ydEPD3w2x/S2ZiPoihQj\nULcJn34XjfZJB+0lLb0qjdA8Cyp+/rvl+5pL3uVyjYW+RnAwLGAo13FH0HMQ\nyJECIIzAIVJywLk+04qdGHTJ5bEd6MI9rVc80+WugPyzcxYaxCJLpNFe0LZH\n/cArc4K+wAkB0OL9j44hTnRp2iDREJlKiZuy7XbEQ0fBrh9vKp6LXQ15reDC\nxyNuQIzzjrqq1TH13obVGFCkWNoFbDozA1VskFYyOpFVbwdK6z3HPc3Btrrw\nj4uhhE+PBXIgYURcNFBwjojRGc5VMD53jOSF1UK/IzA9jSlAmpYgRPzNtIhw\n3+dBXdtpjqJ++wyH6LLaOpE2CxoXjVB4+1pwfSfctMjj9ZOl9h7520rmEI3m\nvdxw4uBv4DUi4SC8nHRnS4bPnK/3Ss+5ibZB6fUp1zPTtpX0wVebE1fS1hJG\nU1yVAxVxvJSi3H9IG7n4h4D2OfgPkGZVeoFV+eBtkoS6j+mxXjvrtm4mP+/2\nV93/vzd22EGw2MV32F6UC2wiB4bZoIESX1Ask0xAxVJC/1IOIpuwkmVYfECr\n+1ANfaIUqPD0BfLQGN9/ojBI1pTFx2yi7xCWrMvocwoO1YI+NuqM4DhqogDA\n2b1d\r\n=QTZa\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7om7Qui0dd53znPxB24BChk9r5dlD5KL7J1BkSVRVogIgaR4Vxh7vX+TCoOhtVLo7ZSoNuUwUzj1qO89ZzfA/dqA="}]},"_npmUser":{"name":"getlarge","email":"ed@getlarge.eu"},"maintainers":[{"name":"getlarge","email":"ed@getlarge.eu"},{"name":"zzappie","email":"mail@davie.li"},{"name":"kremalicious","email":"m@kretschmann.io"},{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},{"name":"troymc","email":"troy@troymcconaghy.com"},{"name":"bdbadmin","email":"operations@ipdb.io"},{"name":"manolodewiner","email":"manolosingular@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.1.1_1615284179359_0.4882565747087755"},"_hasShrinkwrap":false},"2.1.2":{"name":"crypto-conditions","version":"2.1.2","description":"Implementation of crypto-conditions in JavaScript","main":"./dist/node/index.js","browser":"./dist/browser/CryptoConditions.cjs2.min.js","types":"./types/index.d.ts","directories":{"test":"test"},"dependencies":{"asn1.js":"5.4.1","tweetnacl":"^1.0.3","ed25519":"0.0.5"},"optionalDependencies":{"ed25519":"0.0.5"},"devDependencies":{"@babel/cli":"^7.13.0","@babel/core":"^7.13.8","@babel/plugin-transform-runtime":"^7.13.9","@babel/preset-env":"^7.13.9","babel-loader":"^8.2.2","chai":"^4.3.3","codecov":"^3.0.4","cross-env":"^7.0.3","cz-conventional-changelog":"^2.1.0","do-you-even-bench":"^1.0.5","eslint":"^7.21.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.8.0","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^4.3.1","husky":"^5.1.3","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.6.6","karma":"^6.1.1","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","lint-staged":"^10.5.4","md-toc-filter":"^0.9.0","mocha":"^8.3.0","mustache":"^4.1.0","nyc":"^15.1.0","puppeteer":"^8.0.0","release-it":"^14.4.1","rimraf":"^3.0.2","sinon":"^6.1.5","terser-webpack-plugin":"^4.2.3","webpack":"^4.46.0","webpack-cli":"^4.5.0","webpack-concat-plugin":"^3.0.0","webpack-merge":"^5.7.3","webpack-sources":"^2.2.0"},"scripts":{"lint":"eslint .","lint-staged":"lint-staged","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack --mode production --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/browser dist/node","test:specs":"NODE_ENV=unit nyc mocha","test:browser":"karma start --single-run","test":"npm run test:specs && npm run test:browser","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'","release-minor":"release-it minor --src.tagName='v%s' --non-interactive","release-major":"release-it major --src.tagName='v%s' --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","lint-staged":{"*.js":["eslint"]},"release-it":{"github":{"release":true},"git":{"tagName":"v${version}"},"hooks":{"before:init":["npm run test"]},"npm":{"publish":true}},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"c8e7ee2b942a1d0fccfa349c1fb8aaf20a9a7d9e","_id":"crypto-conditions@2.1.2","_nodeVersion":"14.15.4","_npmVersion":"7.6.1","dist":{"integrity":"sha512-BzFv7h1SJK+JeucmJ+6nkXTq1ep06R118Og8UiULeoSLkmDkrCt/RaQwdNhEyt68DxuLUKaYCVV1y6VQ+mfYPw==","shasum":"89b07df34aba03a164c75d60e99c0014447f0196","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.1.2.tgz","fileCount":59,"unpackedSize":12410331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSgXqCRA9TVsSAnZWagAA4EQP/jzbduJPC93ocCCVG/j9\ncK8ZtDaKTw3eQpNZhGQwfFHvShQo5aY383Ae16HNBS7dYamqh8muchdoF3JW\n2vdTjMr0UU+l9mWw5dqADsfMRJPA2NeYwOgCTOuvb6I6rMyW/25/7HSjPPQT\nCttxswW2u23LgwtnGWlXOp68+ERgARyQbt4fQA/oBm0j71tehfMTMdyHi25q\nr4L2Kp8SiIT7u7EgCkZpzuA03bb+N5i8YSdGnBaHG0mXSeN2EP0zA3bs8Igi\nadf3U6fY+Q9Rxemq5g2rlSrKRyRgROiYyZnX2I0g93Tz8tt7OnTq6lW4eldM\nThlmygXxOzJQE0m2pu35kRwXGhT9jK3ZFByDEzFvl/5r32Gx0YjwETORtYbj\nvGmb406livjXtqqjkcyhPuF2tq0zWitzHTvsUQeys7Ue2aalZRotwz3q+6/h\n8vlEYUhndVF25SOPcG4zuCd8mKrhoWogTj0F9AtCR3cJXO+Ao0l0wXv5f7bp\ndrRdmNubdlM3KRBkZnGs432m5aYdonTS3+4KKJpK2y5WJdM1BZP34LmQYSru\neIJ5KnWDFhSgRnSp5nqbMY4xfa9Wrxt2MwHZ743Bponat6Y5kM1KfWpGmsYz\nHJNRY3fKglz45oOEFRtlmo1X36HgprG6q9HUrmPhaGn5XwPIQYsD9Hc6Y8Vx\nntlW\r\n=12zv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCUyWuhjzddPTi9ZNyeKwcol8VGbv0CWchUA7jIiXALZAIgY0HWpYFxeq6takQI9F9HR2klRLaBt9rxaddonHaeOk0="}]},"_npmUser":{"name":"getlarge","email":"ed@getlarge.eu"},"maintainers":[{"name":"getlarge","email":"ed@getlarge.eu"},{"name":"zzappie","email":"mail@davie.li"},{"name":"kremalicious","email":"m@kretschmann.io"},{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},{"name":"troymc","email":"troy@troymcconaghy.com"},{"name":"bdbadmin","email":"operations@ipdb.io"},{"name":"manolodewiner","email":"manolosingular@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.1.2_1615463913655_0.1451777417234319"},"_hasShrinkwrap":false},"2.1.3":{"name":"crypto-conditions","version":"2.1.3","description":"Implementation of crypto-conditions in JavaScript","main":"./dist/node/index.js","browser":"./dist/browser/CryptoConditions.cjs2.min.js","types":"./types/index.d.ts","directories":{"test":"test"},"dependencies":{"asn1.js":"5.4.1","tweetnacl":"^1.0.3","ed25519":"0.0.5"},"optionalDependencies":{"ed25519":"0.0.5"},"devDependencies":{"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","babel-loader":"^8.2.2","buffer":"^6.0.3","chai":"^4.3.3","codecov":"^3.8.3","cross-env":"^7.0.3","crypto-browserify":"^3.12.0","cz-conventional-changelog":"^3.3.0","do-you-even-bench":"^1.0.5","eslint":"^7.32.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.25.4","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","husky":"^7.0.4","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.6.6","karma":"^6.3.16","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^5.0.0","lint-staged":"^12.3.4","md-toc-filter":"^0.9.0","mocha":"^9.2.0","mustache":"^4.2.0","nyc":"^15.1.0","path-browserify":"^1.0.1","process":"^0.11.10","puppeteer":"^13.3.0","querystring-es3":"^0.2.1","release-it":"^14.12.4","rimraf":"^3.0.2","sinon":"^6.1.5","stream-browserify":"^3.0.0","terser-webpack-plugin":"^5.3.1","webpack":"^5.68.0","webpack-cli":"^4.9.2","webpack-merge":"^5.8.0","webpack-sources":"^3.2.3"},"scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","lint-staged":"lint-staged","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack --mode production --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/browser dist/node","test:specs":"NODE_ENV=unit nyc mocha","test:browser":"karma start --single-run","test":"npm run test:specs && npm run test:browser","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'","release-minor":"release-it minor --src.tagName='v%s' --non-interactive","release-major":"release-it major --src.tagName='v%s' --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","lint-staged":{"*.js":["eslint"]},"release-it":{"github":{"release":true},"git":{"tagName":"v${version}"},"hooks":{"before:init":["npm run test"]},"npm":{"publish":true}},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"a93810746e43f04064619fb0a4ae10b505027d7c","_id":"crypto-conditions@2.1.3","_nodeVersion":"16.13.0","_npmVersion":"8.2.0","dist":{"integrity":"sha512-aKmpv1RluETqQXzfBP4fu+QI37KoxqZ6kiD/M2k0MNYAZJYpdMXBdVJGHZ9beqiDpUhtcgmjiWSX5FmnwOjvcw==","shasum":"b90cd02e2b63b41cfd1f438358f35ef23568f551","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.1.3.tgz","fileCount":59,"unpackedSize":11111076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiClr5CRA9TVsSAnZWagAATPAP/2ULK5fkW8MU3Ni72UsT\nNY5XGUzG1dVlJVeSkjh5/of+a8stbNfJMKsMLNMh9PJWX633XpgwYIjHkvfG\nP1cc5we85NgAx97y81HHs65qnBixkkw5UO4Y2aQmlGl/W56Jgk6yHM5ngfUk\nuMKwRHQW0t8cv91jvZUzYjwAH1JzFEABLHMk/FS8Zd6fhdCbjoUoiQqkhB+u\noHOr9vSvowmaTKOhtiy4L0Kwc+Ok6GXuHEoqyHLZbBeNKvLZ4fAP6lDIA7RU\n1OobCAqx8mWf+dA5OwMLEeS79EXfT4QGHcSK0TVj2SwmogVjsDr0NIpQrdYC\nyJI0rFKNIM8uC1YdXIEtoWm4hBq0IkM9Xn1rvJqGwIBJRw0o8ZYwZvNudeSl\nGgJIQ5LztZvmUajjjRPysHLp0t1cCmeshnsMhT/lYc6yaF0LxAbbaK+LRKWM\nuyk3buvwWPLc57h7x/oy2F1+ok1s8fOdLWCF9N4wqDgD69gEPBTCbptr9dL2\nPHpbydTCDmS2e0Dnwk6qH63ReTfwmI1qhE+45y2onNZ//hpstQAOlVTmrPgM\nn8lsHtZoezQSj/pnh4pKBhR64zWcRmV6cZAlK2mvK1R+b4UQ7aWevwWamoml\nk/xqa6botRCvWiEkl/a+DWwYS7DECFRswc1oQLpSppgEywTgUnzOFxSN3XO5\n1JEj\r\n=VCyD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFmMeAilf0jnxTQti5y+D/w28caucwo4JkvzBYHeUod3AiBvXht7Lwkmn/28G+4h0ZGrPs4EP6z+EYsqsZ/96Y+K6A=="}]},"_npmUser":{"name":"getlarge","email":"ed@getlarge.eu"},"maintainers":[{"name":"kremalicious","email":"m@kretschmann.io"},{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},{"name":"troymc","email":"troy@troymcconaghy.com"},{"name":"bdbadmin","email":"operations@ipdb.io"},{"name":"manolodewiner","email":"manolosingular@gmail.com"},{"name":"zzappie","email":"mail@davie.li"},{"name":"getlarge","email":"ed@getlarge.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.1.3_1644845817097_0.1999109382006865"},"_hasShrinkwrap":false},"2.2.0":{"name":"crypto-conditions","version":"2.2.0","description":"Implementation of crypto-conditions in JavaScript","main":"./dist/node/index.js","browser":"./dist/browser/CryptoConditions.cjs2.min.js","types":"./types/index.d.ts","directories":{"test":"test"},"dependencies":{"asn1.js":"5.4.1","tweetnacl":"^1.0.3","ed25519":"0.0.5"},"optionalDependencies":{"ed25519":"0.0.5"},"devDependencies":{"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/eslint-parser":"^7.17.0","@babel/plugin-proposal-export-default-from":"^7.16.7","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@babel/register":"^7.17.0","@babel/runtime-corejs3":"^7.17.2","babel-loader":"^8.2.2","buffer":"^6.0.3","chai":"^4.3.3","codecov":"^3.8.3","cross-env":"^7.0.3","crypto-browserify":"^3.12.0","cz-conventional-changelog":"^3.3.0","do-you-even-bench":"^1.0.5","eslint":"^7.32.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.25.4","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","husky":"^7.0.4","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.6.6","karma":"^6.3.16","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^5.0.0","lint-staged":"^12.3.4","md-toc-filter":"^0.9.0","mocha":"^9.2.0","mustache":"^4.2.0","nyc":"^15.1.0","path-browserify":"^1.0.1","process":"^0.11.10","puppeteer":"^13.3.0","querystring-es3":"^0.2.1","release-it":"^14.12.4","rimraf":"^3.0.2","sinon":"^6.1.5","stream-browserify":"^3.0.0","terser-webpack-plugin":"^5.3.1","webpack":"^5.68.0","webpack-cli":"^4.9.2","webpack-merge":"^5.8.0","webpack-sources":"^3.2.3"},"scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","lint-staged":"lint-staged","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack --mode production --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/browser dist/node","test:specs":"NODE_ENV=unit nyc mocha --require @babel/register","test:browser":"karma start --single-run","test":"npm run test:specs && npm run test:browser","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'","release-minor":"release-it minor --src.tagName='v%s' --non-interactive","release-major":"release-it major --src.tagName='v%s' --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","lint-staged":{"*.js":["eslint"]},"release-it":{"github":{"release":true},"git":{"tagName":"v${version}"},"hooks":{"before:init":["npm run test:specs"]},"npm":{"publish":true}},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"d41fb72525bee07ecc2089b8cf634da2edd22b66","_id":"crypto-conditions@2.2.0","_nodeVersion":"16.13.0","_npmVersion":"8.2.0","dist":{"integrity":"sha512-uk6/eU0t7hgTSw0FC0rv9y0VEd4ILCQ4l2F3N22cO5/rxqQoeuHxP3AyY7MwtX968pJa3yuNEkwTZ93wZaKqGQ==","shasum":"2fea795727d79ca15a37a69b6e9d9722532c96e0","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.2.0.tgz","fileCount":59,"unpackedSize":12831420,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC6ISCRA9TVsSAnZWagAA19sP/R7F4b7sFbAFTkUnBHZO\nKANfSNnAX4F/OZ9drx0uga3ou7zP/WZLIGMQcqzR6HpsRCUOif3al05kyPy0\npwAzgXk4CfqDm0gj8fYH1Bq9scK9Eut7SmnzQfCSEwP8Ub3G81rVazvQYQTl\nZgN/hP+CqqwD5MB4+p663TRF481JEAC5ogE7qzs9U8ix9ml2EcOseA8tBccp\nA6oCg5KPpBpEFW0R+F7/hNLWfTkqWgo3+yY/+HbCykm2TivuajRrVJwZCNo7\n1QmgINKjAN3r0aMQSbKeSTS7EGKKKmzDQzpdPg0VT0f9jQXdSiEEGB67A0Be\npqCIwOvk6kV9ZNDuY5Ec3Fw/SHTNvYeYC+3znPuzkQR3i3ZGk8Jr9fsYa5wx\nxAezWdqtDhIfCuhQj0JBa+1CEH3ItXYgkHt9ODsJLB8pTAwtJvZDQ2l+Phcn\nhEMYbK3xnrHtMco0/Ll6bJkAGnnmn/fZev0J+jReWAzyDemWzpCygRCV6OAW\nuAjhSNBsktBbI2OUC/NvkJumfX/WnW5IjhbNRwlVTyVxdFT/fg1Z52NbytzY\nflkFlZMk5tu6n+qbxW3ilvySRqc3jbkm7/+hupHRfIkTRIxJaHXQWC/AmWfq\nTlxDsfDTzkr/WdNINWVsJnDRk/sRT5LY49r6lytVxWcZ7Vsv/cUY1+ewKJ7u\nv0DK\r\n=RrYi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQiqODvh9d4upKck6/6xOViExnAk/On6Zi1Zvtq6C0ogIgL25bxD6Aiv0nTqCU8dd7jxST8wOC0pzVQWe6q6YFCPY="}]},"_npmUser":{"name":"getlarge","email":"ed@getlarge.eu"},"maintainers":[{"name":"kremalicious","email":"m@kretschmann.io"},{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},{"name":"troymc","email":"troy@troymcconaghy.com"},{"name":"bdbadmin","email":"operations@ipdb.io"},{"name":"manolodewiner","email":"manolosingular@gmail.com"},{"name":"zzappie","email":"mail@davie.li"},{"name":"getlarge","email":"ed@getlarge.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.2.0_1644929553837_0.7607096119530641"},"_hasShrinkwrap":false},"2.2.1":{"name":"crypto-conditions","version":"2.2.1","description":"Implementation of crypto-conditions in JavaScript","main":"./dist/node/index.js","browser":"./dist/browser/CryptoConditions.cjs2.min.js","types":"./types/index.d.ts","directories":{"test":"test"},"dependencies":{"asn1.js":"5.4.1","tweetnacl":"^1.0.3","ed25519":"0.0.5"},"optionalDependencies":{"ed25519":"0.0.5"},"devDependencies":{"@babel/cli":"^7.17.0","@babel/core":"^7.17.2","@babel/eslint-parser":"^7.17.0","@babel/plugin-proposal-export-default-from":"^7.16.7","@babel/plugin-transform-runtime":"^7.17.0","@babel/preset-env":"^7.16.11","@babel/register":"^7.17.0","@babel/runtime-corejs3":"^7.17.2","babel-loader":"^8.2.2","buffer":"^6.0.3","chai":"^4.3.3","codecov":"^3.8.3","cross-env":"^7.0.3","crypto-browserify":"^3.12.0","cz-conventional-changelog":"^3.3.0","do-you-even-bench":"^1.0.5","eslint":"^7.32.0","eslint-config-standard":"^16.0.2","eslint-plugin-import":"^2.25.4","eslint-plugin-node":"^11.1.0","eslint-plugin-promise":"^5.1.0","husky":"^7.0.4","interledger-jsdoc-template":"^2.0.0","jsdoc":"^3.6.6","karma":"^6.3.16","karma-chrome-launcher":"^3.1.0","karma-mocha":"^2.0.1","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^5.0.0","lint-staged":"^12.3.4","md-toc-filter":"^0.9.0","mocha":"^9.2.0","mustache":"^4.2.0","nyc":"^15.1.0","path-browserify":"^1.0.1","process":"^0.11.10","puppeteer":"^13.3.0","querystring-es3":"^0.2.1","release-it":"^14.12.4","rimraf":"^3.0.2","sinon":"^6.1.5","stream-browserify":"^3.0.0","terser-webpack-plugin":"^5.3.1","webpack":"^5.68.0","webpack-cli":"^4.9.2","webpack-merge":"^5.8.0","webpack-sources":"^3.2.3"},"scripts":{"lint":"eslint .","lint:fix":"eslint . --fix","lint-staged":"lint-staged","build":"npm run clean && npm run build:cjs && npm run build:dist","build:web":"webpack --mode production --config webpack.config.js","prepublish":"npm run build:web","build:bundle":"webpack","build:cjs":"cross-env BABEL_ENV=cjs babel ./src -d dist/node","build:dist":"cross-env NODE_ENV=production webpack","clean":"rimraf dist/bundle dist/browser dist/node","test:specs":"NODE_ENV=unit nyc mocha --require @babel/register","test:browser":"karma start --single-run","test":"npm run test:specs && npm run test:browser","docs:jsdoc":"jsdoc -R README.md -c jsdoc.json src/*","docs:toc":"md-toc-filter docs/README.template.md > README.md","docs":"npm run docs:toc","prepublishOnly":"npm run build","release":"read -p 'GITHUB_TOKEN: ' GITHUB_TOKEN && export GITHUB_TOKEN=$GITHUB_TOKEN && release-it --src.tagName='v%s'","release-minor":"release-it minor --src.tagName='v%s' --non-interactive","release-major":"release-it major --src.tagName='v%s' --non-interactive"},"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"author":{"name":"Ripple","email":"info@ripple.com"},"license":"Apache-2.0","bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","lint-staged":{"*.js":["eslint"]},"release-it":{"github":{"release":true},"git":{"tagName":"v${version}"},"hooks":{"before:init":["npm run test:specs"]},"npm":{"publish":true}},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"af267ee3395c65803215eeda10f19c3db3a132f0","_id":"crypto-conditions@2.2.1","_nodeVersion":"16.13.0","_npmVersion":"8.2.0","dist":{"integrity":"sha512-GWz6K6BZsoNmCpCcQUprmsCC7tsrvxtx8gBZwtgQbMXwFPyFQz3Aw7rd6kQBGnalX8MlN08R3Xz2UVD7nofAcg==","shasum":"5a01b259d489f1bc2fc0aed186804887a34200ea","tarball":"https://registry.npmjs.org/crypto-conditions/-/crypto-conditions-2.2.1.tgz","fileCount":59,"unpackedSize":12831786,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiC6SdCRA9TVsSAnZWagAAy9YP/0gMZ0QgUagnoF9vpTxi\nNKXLZanrxk0chYj1VjnH3/uqW+4CA1mU2/SRrcLiI1H6fU37WhKVp5QvKCFB\nltSxz6WARqBsqboaVREaKpcTApCWZFxWj5z290nWub9QouBKLY0iQe45p0Ut\nbvV9yigRp4qcwupbfI3k8IOk/WgsMGL/2fF2QCnEePfbfxSIXN4H7zl8xRe/\nYxFfEccUchxTFcGgBSS7ZTile+TIl5CL/AqFCY7cE5qKKPyMo9S/FYUhuhqA\n0dRXZ1sA3iTzJ6humHg+tqdf9fGc6fVWuW2u9XoGILxIxLDU9p49TlGRl8vZ\nlW3fwSS9BEsbw0uxdxj7/ZnDArmWTGLYnqLDk+U1fLj10mo+F+iSLdtoiELf\nD6qPRr+TWJ+4Q5ETFoYFT4XdYLlMulSBqSVetXqUAFGIGkd3HwwWPJkNd5kN\nmzFjy0amiLP3Cv9MRiJcClyBL33TZYCKKlQaiKVAgCg8aSIuDk0WTzRoGVfy\nNipuriucMzji4Y6qvDDaPrjNFVxQaaZaHUDKESjklvKSBplnrSq/8u83EUIC\nYxL+m3EOOhBvL6JGH9hZWMu+TxAj4vjqQHNP4RHdfqUoFu4hps77El8wj8eU\nK92udVxFfbrqDXXnxepabLNVrX/ev/xVZgdaq/w6jJ+b5fRkyn9+346nNVMV\nMKwT\r\n=nt7K\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDSddA4qhymnYBW2x6eqFpdxKj9SJKyGQLGF+A7wnZf9wIhANkDL8ZIKx0zISy9R+3O/8YSsrhnLUQBoB21xTXho1ah"}]},"_npmUser":{"name":"getlarge","email":"ed@getlarge.eu"},"maintainers":[{"name":"kremalicious","email":"m@kretschmann.io"},{"name":"jernej.pregelj","email":"jernej.pregelj88@gmail.com"},{"name":"troymc","email":"troy@troymcconaghy.com"},{"name":"bdbadmin","email":"operations@ipdb.io"},{"name":"manolodewiner","email":"manolosingular@gmail.com"},{"name":"zzappie","email":"mail@davie.li"},{"name":"getlarge","email":"ed@getlarge.eu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/crypto-conditions_2.2.1_1644930205065_0.7065400720603645"},"_hasShrinkwrap":false}},"readme":"# Crypto Conditions\n\n[![npm][npm-image]][npm-url] \n<!-- [![circle][circle-image]][circle-url] [![codecov][codecov-image]][codecov-url] -->\n\n[npm-image]: https://img.shields.io/npm/v/crypto-conditions.svg?style=flat\n[npm-url]: https://npmjs.org/package/crypto-conditions\n<!-- [circle-image]: https://circleci.com/gh/interledgerjs/five-bells-condition.svg?style=shield -->\n<!-- [circle-url]: https://circleci.com/gh/interledgerjs/five-bells-condition -->\n<!-- [codecov-image]: https://codecov.io/gh/interledgerjs/five-bells-condition/branch/master/graph/badge.svg -->\n<!-- [codecov-url]: https://codecov.io/gh/interledgerjs/five-bells-condition -->\n\n> Implementation of crypto-conditions in JavaScript for Node.js and the browser\n\n## Specification\n\nEditor's Draft: [**draft-thomas-crypto-conditions-02**](https://tools.ietf.org/html/draft-thomas-crypto-conditions-02)\n\nThis specification is only a draft at this stage and has not been submitted.\n\n## Table of Contents\n\n- [Crypto Conditions](#crypto-conditions)\n    - [Specification](#specification)\n    - [Table of Contents](#table-of-contents)\n    - [API Documentation](#api-documentation)\n    - [Usage](#usage)\n        - [Validate a Condition](#validate-a-condition)\n        - [Validate a Fulfillment (No Message)](#validate-a-fulfillment-no-message)\n        - [Get Condition from Fulfillment And Validate](#get-condition-from-fulfillment-and-validate)\n        - [Create a PREIMAGE-SHA-256 Condition (Hashlock)](#create-a-preimage-sha-256-condition-hashlock)\n        - [Create a PREIMAGE-SHA-256 Fullfillment (Hashlock)](#create-a-preimage-sha-256-fullfillment-hashlock)\n        - [Parse a Fulfillment](#parse-a-fulfillment)\n        - [Create an ED25519 Condition](#create-an-ed25519-condition)\n        - [Fulfill an ED25519 Condition](#fulfill-an-ed25519-condition)\n        - [Verify a Fulfillment (with Message)](#verify-a-fulfillment-with-message)\n        - [Create a THRESHOLD-SHA-256 Condition](#create-a-threshold-sha-256-condition)\n        - [Create a THRESHOLD-SHA-256 Fulfillment](#create-a-threshold-sha-256-fulfillment)\n        - [Create a PREFIX-SHA-256 Condition](#create-a-prefix-sha-256-condition)\n        - [Create a PREFIX-SHA-256 Fulfillment](#create-a-prefix-sha-256-fulfillment)\n        - [Create an RSA-SHA-256 Condition](#create-an-rsa-sha-256-condition)\n        - [Create an RSA-SHA-256 Fulfillment](#create-an-rsa-sha-256-fulfillment)\n        - [Advanced: Parse a Condition](#advanced-parse-a-condition)\n        - [Advanced: Parse and Reserialize a THRESHOLD-SHA-256 Fulfillment](#advanced-parse-and-reserialize-a-threshold-sha-256-fulfillment)\n        - [Advanced: Manually Create a Condition](#advanced-manually-create-a-condition)\n        - [In browser environment](#in-browser-environment)\n\n## API Documentation\n\nTODO: Host doc on [https://www.bigchaindb.com/](https://www.bigchaindb.com/)\n\n**[API Docs](https://interledger.org/five-bells-condition/jsdoc/)**\n\n## Usage\n\n### Validate a Condition\n\n``` js\nconst cc = require('crypto-conditions')\n\n// Check a condition for validity\nconst condition = 'ni:///sha-256;47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU?fpt=preimage-sha-256&cost=0'\nconst validationResult = cc.validateCondition(condition)\n// validationResult === true\n```\n\nThis will ensure that the requested type, features and fulfillment length are\nall accepted by the current implementation.\n\n### Validate a Fulfillment (No Message)\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst condition = 'ni:///sha-256;47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU?fpt=preimage-sha-256&cost=0'\nconst fulfillment = 'oAKAAA'\nconst validationResult = cc.validateFulfillment(fulfillment, condition)\n// validationResult === true\n```\n\nThis validates the fulfillment and ensures that it matches the given condition.\n\n### Get Condition from Fulfillment And Validate\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst fulfillment = 'oAKAAA'\nconst condition = cc.fulfillmentToCondition(fulfillment)\n\n// You could now look up this condition in your database etc.\n\nconst validationResult = cc.validateFulfillment(fulfillment, condition)\n// validationResult === true\n```\n\n### Create a PREIMAGE-SHA-256 Condition (Hashlock)\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst myFulfillment = new cc.PreimageSha256()\nmyFulfillment.setPreimage(Buffer.from(''))\nconsole.log(myFulfillment.getConditionUri())\n// prints 'ni:///sha-256;47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU?fpt=preimage-sha-256&cost=0'\n```\n\n### Create a PREIMAGE-SHA-256 Fullfillment (Hashlock)\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst myFulfillment = new cc.PreimageSha256()\nmyFulfillment.setPreimage(Buffer.from(''))\nconsole.log(myFulfillment.serializeUri())\n// prints 'oAKAAA'\n```\n\n### Parse a Fulfillment\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst parsedFulfillment = cc.fromFulfillmentUri('oAKAAA')\n// parsedFulfillment instanceof cc.PreimageSha256 === true\n// Note: Merely parsing a fulfillment DOES NOT validate it.\n\n// Validate a fulfillment\nparsedFulfillment.validate()\n```\n\n### Create an ED25519 Condition\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst ed25519Fulfillment = new cc.Ed25519Sha256()\ned25519Fulfillment.setPublicKey(Buffer.from('ec172b93ad5e563bf4932c70e1245034c35467ef2efd4d64ebf819683467e2bf', 'hex'))\nconsole.log(ed25519Fulfillment.getConditionUri())\n// prints 'ni:///sha-256;U1YhFdW0lOI-SVF3PbDP4t_lVefj_-tB5P11yvfBaoE?fpt=ed25519-sha-256&cost=131072'\n```\n\n### Fulfill an ED25519 Condition\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst edPrivateKey = Buffer.from('833fe62409237b9d62ec77587520911e9a759cec1d19755b7da901b96dca3d42', 'hex')\n\nconst ed25519Fulfillment = new cc.Ed25519Sha256()\n// ed25519Fulfillment.setPublicKey(Buffer.from('...'))\n// ed25519Fulfillment.setSignature(Buffer.from('...'))\n// -- or --\ned25519Fulfillment.sign(Buffer.from('Hello World! Conditions are here!'), edPrivateKey)\nconsole.log(ed25519Fulfillment.getConditionUri())\n// prints 'ni:///sha-256;U1YhFdW0lOI-SVF3PbDP4t_lVefj_-tB5P11yvfBaoE?fpt=ed25519-sha-256&cost=131072'\nconsole.log(ed25519Fulfillment.serializeUri())\n// prints 'pGSAIOwXK5OtXlY79JMscOEkUDTDVGfvLv1NZOv4GWg0Z-K_gUC2IpH62UMvjymLnEpIldvik_b_2hpo2t8Mze9fR6DHISpf6jzal6P0wD6p8uisHOyGpR1FISer26CdG28zHAcK'\n```\n\n### Verify a Fulfillment (with Message)\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst fulfillment = 'pGSAIOwXK5OtXlY79JMscOEkUDTDVGfvLv1NZOv4GWg0Z-K_gUC2IpH62UMvjymLnEpIldvik_b_2hpo2t8Mze9fR6DHISpf6jzal6P0wD6p8uisHOyGpR1FISer26CdG28zHAcK'\nconst condition = 'ni:///sha-256;U1YhFdW0lOI-SVF3PbDP4t_lVefj_-tB5P11yvfBaoE?fpt=ed25519-sha-256&cost=131072'\nconst message = Buffer.from('Hello World! Conditions are here!')\n\nconst result = cc.validateFulfillment(fulfillment, condition, message)\n// result === true\n```\n\n### Create a THRESHOLD-SHA-256 Condition\n``` js\nconst cc = require('crypto-conditions')\n\nconst thresholdFulfillment = new cc.ThresholdSha256()\nthresholdFulfillment.addSubconditionUri('ni:///sha-256;U1YhFdW0lOI-SVF3PbDP4t_lVefj_-tB5P11yvfBaoE?fpt=ed25519-sha-256&cost=131072')\nthresholdFulfillment.addSubfulfillmentUri('oAKAAA')\nthresholdFulfillment.setThreshold(1) // defaults to subconditions.length\nconsole.log(thresholdFulfillment.getConditionUri())\n// prints 'ni:///sha-256;l-wuy18t5Ic2GfCbVb9yAiTJ_gJbN2x34fk3eHOz5kY?fpt=threshold-sha-256&cost=133120&subtypes=ed25519-sha-256,preimage-sha-256'\n```\n\n### Create a THRESHOLD-SHA-256 Fulfillment\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst thresholdFulfillment = new cc.ThresholdSha256()\nthresholdFulfillment.addSubfulfillmentUri('pGSAIOwXK5OtXlY79JMscOEkUDTDVGfvLv1NZOv4GWg0Z-K_gUC2IpH62UMvjymLnEpIldvik_b_2hpo2t8Mze9fR6DHISpf6jzal6P0wD6p8uisHOyGpR1FISer26CdG28zHAcK')\nthresholdFulfillment.addSubfulfillmentUri('oAKAAA')\nthresholdFulfillment.setThreshold(1) // defaults to subconditions.length\nconsole.log(thresholdFulfillment.getConditionUri())\n// prints 'ni:///sha-256;l-wuy18t5Ic2GfCbVb9yAiTJ_gJbN2x34fk3eHOz5kY?fpt=threshold-sha-256&cost=133120&subtypes=ed25519-sha-256,preimage-sha-256'\nconst thresholdFulfillmentUri = thresholdFulfillment.serializeUri()\n// Note: If there are more than enough fulfilled subconditions, shorter\n// fulfillments will be chosen over longer ones.\n// thresholdFulfillmentUri.length === 68\nconsole.log(thresholdFulfillmentUri)\n// prints 'ojGgBKACgAChKaQngCBTViEV1bSU4j5JUXc9sM_i3-VV5-P_60Hk_XXK98FqgYEDAgAA'\n```\n\n### Create a PREFIX-SHA-256 Condition\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst prefix = new cc.PrefixSha256()\nprefix.setPrefix(Buffer.from('2016:'))\nprefix.setMaxMessageLength(65536)\nprefix.setSubconditionUri('ni:///sha-256;U1YhFdW0lOI-SVF3PbDP4t_lVefj_-tB5P11yvfBaoE?fpt=ed25519-sha-256&cost=131072')\nconsole.log(prefix.getConditionUri())\n// prints 'ni:///sha-256;3Q87-ZwAaOH3KKkRD-wAuTiA3g7T8idCir2Gie6hkoI?fpt=prefix-sha-256&cost=197637&subtypes=ed25519-sha-256'\n```\n\n### Create a PREFIX-SHA-256 Fulfillment\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst prefix = new cc.PrefixSha256()\nprefix.setPrefix(Buffer.from('Hello World! '))\nprefix.setMaxMessageLength(16384)\nprefix.setSubfulfillmentUri('pGSAIOwXK5OtXlY79JMscOEkUDTDVGfvLv1NZOv4GWg0Z-K_gUC2IpH62UMvjymLnEpIldvik_b_2hpo2t8Mze9fR6DHISpf6jzal6P0wD6p8uisHOyGpR1FISer26CdG28zHAcK')\nconst fulfillmentUri = prefix.serializeUri()\nconsole.log(fulfillmentUri)\n// prints 'oXuADUhlbGxvIFdvcmxkISCBAkAAomakZIAg7Bcrk61eVjv0kyxw4SRQNMNUZ-8u_U1k6_gZaDRn4r-BQLYikfrZQy-PKYucSkiV2-KT9v_aGmja3wzN719HoMchKl_qPNqXo_TAPqny6Kwc7IalHUUhJ6vboJ0bbzMcBwo'\n\nconst conditionUri = prefix.getConditionUri()\nconst message = Buffer.from('Conditions are here!')\ncc.validateFulfillment(fulfillmentUri, conditionUri, message)\n```\n\n### Create an RSA-SHA-256 Condition\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst rsaFulfillment = new cc.RsaSha256()\nrsaFulfillment.setPublicModulus(Buffer.from('b30e7a938783babf836850ff49e14f87e3f92d5c46e33feca3e4f0b22358580b11765995f4b8eea7fb4712c2e1e316f7f775a953d232216a169d9a64ddc007120a400b37f2afc077b62fe304de74de6a119ec4076b529c4f6096b0baad4f533df0173b9b822fd85d65fa4befa92d8f524f69cbca0136bd80d095c169aec0e095', 'hex'))\nconsole.log(rsaFulfillment.getConditionUri())\n// prints 'ni:///sha-256;j2luKLUjz-Ilu0jdDQO-Eg5Srmu06lEs4dsZHHVxcdc?fpt=rsa-sha-256&cost=16384'\n```\n\n### Create an RSA-SHA-256 Fulfillment\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst exampleMessage = Buffer.from('Hello World! Conditions are here!')\nconst privateKey =\n'-----BEGIN RSA PRIVATE KEY-----\\n' +\n'MIICXAIBAAKBgQCzDnqTh4O6v4NoUP9J4U+H4/ktXEbjP+yj5PCyI1hYCxF2WZX0\\n' +\n'uO6n+0cSwuHjFvf3dalT0jIhahadmmTdwAcSCkALN/KvwHe2L+ME3nTeahGexAdr\\n' +\n'UpxPYJawuq1PUz3wFzubgi/YXWX6S++pLY9ST2nLygE2vYDQlcFprsDglQIDAQAB\\n' +\n'AoGAB7Rjyd1W6b475U027vLm/S3uFumVk0m44QSE5uVmc8NmKPWJ4lHi0w+Y61G/\\n' +\n'booaeWdytcyho5ZxCq8OEAynQSkJiBNtzBg+xCGcO6GPOf+dFBYZFQsXiG/EbwrA\\n' +\n'pT0cv+AqiGzLIAh2WtNI6cr5/ZEMScNhMcQ4AZ1kRyUdpIECQQDbRtFz0dSMMvS/\\n' +\n'1KtDZxej9HqC5xOEuCDEZuLvk4bW4mC02OP/H/VV5qqclz0LIvMWK6TDtoFRpkvD\\n' +\n'UYiYoc85AkEA0QtH1zQlGGlliLcWoPeqjkbtf3ocmYy2exBSCwnOf87xV//k9pNC\\n' +\n'7jmoIzRgKVef8kQR/mXWszo3WbWMt0aAPQJBAMtoRD/GM/7h/fw9Uamy5lEnJsZr\\n' +\n'iMWi8HKAZp+LIJgRY1gfolA12yWWVknwWaYNA6ZbUfpjQE73jmxfI/FCmLECQBmF\\n' +\n'WAr06cZ2L5gmShPyyJbAIASdItq4LBsQHgQM+XHvENXeftR/m/87eMR7g3XopbVN\\n' +\n'DClTw4d0Bwfjuz8w0z0CQFG7RmgPqsTEGfojpRgLZnec87R6XhuUY5ZoGgpnx7r9\\n' +\n'/zGekAwjBZDKpc+H0jC14JjMzRRKeWVEpDU3k2cfBH0=\\n' +\n'-----END RSA PRIVATE KEY-----\\n'\n\nconst rsaFulfillment = new cc.RsaSha256()\n// rsaFulfillment.setPublicModulus(Buffer.from('...'))\n// rsaFulfillment.setSignature(Buffer.from('...'))\n// -- or --\nrsaFulfillment.sign(exampleMessage, privateKey)\nconsole.log(rsaFulfillment.serializeUri().length)\n// prints '355'\n\n// Verify RSA-SHA256 condition\nconst rsaFulfillmentUri = rsaFulfillment.serializeUri()\nconst rsaConditionUri = rsaFulfillment.getConditionUri()\ncc.validateFulfillment(rsaFulfillmentUri, rsaConditionUri, exampleMessage)\n```\n\n### Advanced: Parse a Condition\n``` js\nconst cc = require('crypto-conditions')\n\n// Parse a condition\nconst condition = 'ni:///sha-256;47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU?fpt=preimage-sha-256&cost=0'\nconst parsedCondition = cc.fromConditionUri(condition)\nconsole.log(parsedCondition.constructor.name)\n// prints 'Condition'\n\n// Compile to a condition\nconsole.log(parsedCondition.serializeUri())\n// prints condition\n```\n### Advanced: Parse and Reserialize a THRESHOLD-SHA-256 Fulfillment\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst thresholdFulfillmentUri = 'oi-gBKACgAChJ6AlgCB_g7Flf_H8U7ktwYFIodZd_C1LH6PWdyhK3dIAEm2QaYEBDA'\nconst reparsedFulfillment = cc.fromFulfillmentUri(thresholdFulfillmentUri)\n\nconst reserializedFulfillment = reparsedFulfillment.serializeUri()\nconsole.log(reserializedFulfillment)\n// prints thresholdFulfillmentUri\n```\n\n### Advanced: Manually Create a Condition\n\n``` js\nconst cc = require('crypto-conditions')\n\nconst myCondition = new cc.Condition()\nmyCondition.setTypeId(cc.PreimageSha256.TYPE_ID)\nmyCondition.setSubtypes(new Set('preimage-sha-256'))\nmyCondition.setHash(Buffer.from('e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855', 'hex'))\nmyCondition.setCost(0)\nconsole.log(myCondition.serializeUri())\n// prints 'ni:///sha-256;47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU?fpt=preimage-sha-256&cost=0'\n```\n\n### In browser environment\n\n```html\n<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n    <title>CryptoConditions</title>\n  </head>\n  <body>\n    <script src=\"https://unpkg.com/crypto-conditions@2.0.3/dist/browser/CryptoConditions.window.min.js\"></script>\n    <script>\n      const conditionUri = 'ni:///sha-256;47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU?fpt=preimage-sha-256&cost=0'\n      const validationResult = CryptoConditions.validateCondition(condition)\n      console.log(`Condition ${conditionUri} is valid ? ${validationResult}`)\n      alert(JSON.stringify(CryptoConditions.Condition.fromUri(conditionUri), null, 2))\n    </script>\n  </body>\n</html>\n```\n","maintainers":[{"email":"m@kretschmann.io","name":"kremalicious"},{"email":"jernej.pregelj88@gmail.com","name":"jernej.pregelj"},{"email":"troy@troymcconaghy.com","name":"troymc"},{"email":"operations@ipdb.io","name":"bdbadmin"},{"email":"manolosingular@gmail.com","name":"manolodewiner"},{"email":"ed@getlarge.eu","name":"getlarge"}],"time":{"modified":"2022-10-26T14:44:15.368Z","created":"2017-11-27T13:34:55.538Z","2.0.0":"2017-11-27T13:34:55.538Z","2.0.1":"2017-11-27T13:41:48.067Z","2.0.3":"2018-08-14T10:01:52.893Z","2.1.0":"2021-03-09T09:00:47.609Z","2.1.1":"2021-03-09T10:02:59.929Z","2.1.2":"2021-03-11T11:58:33.991Z","2.1.3":"2022-02-14T13:36:57.355Z","2.2.0":"2022-02-15T12:52:34.232Z","2.2.1":"2022-02-15T13:03:25.360Z"},"homepage":"https://github.com/bigchaindb/js-crypto-conditions","keywords":["cryptographic","condition","fulfillment","interledger","payment","assured","escrow"],"repository":{"type":"git","url":"git+ssh://git@github.com/bigchaindb/js-crypto-conditions.git"},"author":{"name":"Ripple","email":"info@ripple.com"},"bugs":{"url":"https://github.com/bigchaindb/js-crypto-conditions/issues"},"license":"Apache-2.0","readmeFilename":"README.md"}