{"_id":"@ampretia/composer-wallet-cloudant","_rev":"4-90824dba19190746aea62b59942c7418","name":"@ampretia/composer-wallet-cloudant","dist-tags":{"latest":"0.2.1"},"versions":{"0.1.0":{"name":"@ampretia/composer-wallet-cloudant","version":"0.1.0","description":"Hyperledger Composer Wallet implementation for the IBM Cloud Object Store","engines":{"node":">=8","npm":">=5"},"main":"index.js","scripts":{"pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check","test":"nyc mocha --recursive -t 10000","mocha":"mocha --recursive -t 10000 test","nyc":"nyc mocha --recursive -t 10000"},"repository":{"type":"git","url":"git+https://github.com/ampretia/composer-wallet-ibmcos.git"},"keywords":["blockchain","hyperledger","solutions"],"author":{"name":"Hyperledger Composer"},"license":"Apache-2.0","devDependencies":{"chai":"3.5.0","chai-as-promised":"6.0.0","chai-things":"0.2.0","delay":"2.0.0","eslint":"3.17.1","license-check":"1.1.5","lodash.clonedeep":"4.5.0","mocha":"3.4.2","nyc":"11.1.0","sinon":"2.3.8"},"dependencies":{"@cloudant/cloudant":"2.1.0","composer-common":"^0.17.3"},"license-check-config":{"src":["**/*.js","!./cli.js","!./coverage/**/*","!./node_modules/**/*","!./out/**/*"],"path":"header.txt","blocking":true,"logInfo":false,"logError":true},"nyc":{"exclude":["coverage/**","out/**","scripts/**","systest/**","test/**","lib/shellcmds/**","shell.js"],"reporter":["text-summary","html"],"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"37469f8de644ac64fa58cc1cc163dd5e7733c9cb","bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-cloudant@0.1.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-2U8s+2Jp9IbXEPrN03iZMN9o4NOw3LT2B6Tm/ge1f4umKGHZDvBTGNp/aLfpSUS9rYYApfKSTzTmBhgayHVlEQ==","shasum":"dfb8456e75dc115e54b2336890e51462ec0fece8","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-cloudant/-/composer-wallet-cloudant-0.1.0.tgz","fileCount":11,"unpackedSize":29248,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCua9/B4gxGYyQ+m+6LarmrbDGXKov89343dpPjmQDm1gIgY7KVmhZP2rK8cdMFFokUduTQXqLBxwijbA++0AyR6iE="}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-cloudant_0.1.0_1520456972128_0.6106885834542854"},"_hasShrinkwrap":false},"0.2.0":{"name":"@ampretia/composer-wallet-cloudant","version":"0.2.0","description":"Hyperledger Composer Wallet implementation for the IBM Cloud Object Store","engines":{"node":">=8","npm":">=5"},"main":"index.js","scripts":{"pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check","test":"nyc mocha --recursive -t 10000","mocha":"mocha --recursive -t 10000 test","nyc":"nyc mocha --recursive -t 10000"},"repository":{"type":"git","url":"git+https://github.com/ampretia/composer-wallet-ibmcos.git"},"keywords":["blockchain","hyperledger","solutions"],"author":{"name":"Hyperledger Composer"},"license":"Apache-2.0","devDependencies":{"chai":"3.5.0","chai-as-promised":"6.0.0","chai-things":"0.2.0","delay":"2.0.0","eslint":"3.17.1","license-check":"1.1.5","lodash.clonedeep":"4.5.0","mocha":"3.4.2","nyc":"11.1.0","sinon":"2.3.8"},"dependencies":{"@cloudant/cloudant":"2.1.0","composer-common":"^0.19.8"},"license-check-config":{"src":["**/*.js","!./cli.js","!./coverage/**/*","!./node_modules/**/*","!./out/**/*"],"path":"header.txt","blocking":true,"logInfo":false,"logError":true},"nyc":{"exclude":["coverage/**","out/**","scripts/**","systest/**","test/**","lib/shellcmds/**","shell.js"],"reporter":["text-summary","html"],"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"b781787bda7bca036acb0944c9dca666433c3dea","bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-cloudant@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-VeaibmbpSYcn9PiIO5kWoqO4iNWLHGKVqXyYSeh0tV9EUGAI3j//vIWBAN3GVNClfE2Xn4dX5/DrtrGn+Ufq/A==","shasum":"5df369d9ad97e1815f4688ca5824b9fbc823af3b","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-cloudant/-/composer-wallet-cloudant-0.2.0.tgz","fileCount":11,"unpackedSize":29248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHnqUCRA9TVsSAnZWagAAxRkP/25ZYqGT2xoOEpiYOzbN\nkdZfyogjEobWr8uuWeWTmYRk+0CZ6tl4GBdnfaLibWiZ5/++FK9plIVRDWzo\nMfMlpwRnwg7p6K/xu7FfWGVMQEXm909emVe8KU3zSAk5UUsQ9OTYr8fTTZZ9\ngQjPfyclqgwLYc8IL6Q92Clx2n6lrGpByEZaVtZz6wQju/VzU93hSupt3Nut\nURKiimm1f+5ZG8X7CKSVkdjO5F+HkeT3hdD2NccqwPUHjFkRVCcpeJH385/F\n3AmI94oJqvLIMyrGSmQvTDv0LNwXYWKUES39YnfxVevLDlJXvsN65+zN9FuJ\npBQirlwXOjApdj1vVtaNE3BRqcGu6NM+7TFFqAqOnNfYmWa0TFBx6vIm7Hsj\n4+G6H8ETlEeiQ/h2Qb8foAyfgQDN+ppxykeH2Ssaq96mDkrclHwe+gwlKEyh\n2nhRW8+lUmbI/i/Ez8+R8+t5FZ1lAPlYqp61TBVAa5E4B9nEIm8KyVHJ2q2L\n2eHZ/aYzQJrVFke5sQeRc4+u2rgYisVsww3Zx6E33LUvn06lgV2o4z6A+XHC\n6tE28zBoiHT1zpY6aJJJE8vzbipFH6QaVFY/MuEAvFZdcAJJBYXJJ4haQT6h\nrm8N0PpcQWNStBM4hBUaql8ZPZpc3FgF20j5cjvvI34VjYblWwoE9kjIJZPY\nU7dd\r\n=RkVz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFM//tgEAK+qQIPDaoZS+PFZjDinXKwm0QXv+Q1r/W69AiEA0YOP2ZWFcoSgiGzPNSQYpMt9Bdozn20rR0EZwgE9B1w="}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-cloudant_0.2.0_1528724116347_0.19651408065436415"},"_hasShrinkwrap":false},"0.2.1":{"name":"@ampretia/composer-wallet-cloudant","version":"0.2.1","description":"Hyperledger Composer Wallet implementation for the IBM Cloud Object Store","engines":{"node":">=8","npm":">=5"},"main":"index.js","scripts":{"pretest":"npm run lint","lint":"eslint .","postlint":"npm run licchk","licchk":"license-check","test":"nyc mocha --recursive -t 10000","mocha":"mocha --recursive -t 10000 test","nyc":"nyc mocha --recursive -t 10000"},"repository":{"type":"git","url":"git+https://github.com/ampretia/composer-wallet-ibmcos.git"},"keywords":["blockchain","hyperledger","solutions"],"author":{"name":"Hyperledger Composer"},"license":"Apache-2.0","devDependencies":{"chai":"3.5.0","chai-as-promised":"6.0.0","chai-things":"0.2.0","delay":"2.0.0","eslint":"3.17.1","license-check":"1.1.5","lodash.clonedeep":"4.5.0","mocha":"3.4.2","nyc":"11.1.0","sinon":"2.3.8"},"dependencies":{"@cloudant/cloudant":"2.1.0","composer-common":"^0.19.8"},"license-check-config":{"src":["**/*.js","!./cli.js","!./coverage/**/*","!./node_modules/**/*","!./out/**/*"],"path":"header.txt","blocking":true,"logInfo":false,"logError":true},"nyc":{"exclude":["coverage/**","out/**","scripts/**","systest/**","test/**","lib/shellcmds/**","shell.js"],"reporter":["text-summary","html"],"all":true,"check-coverage":true,"statements":100,"branches":100,"functions":100,"lines":100},"gitHead":"b781787bda7bca036acb0944c9dca666433c3dea","bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-cloudant@0.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-TCmhE8BzwIn8rhzyndAqEn2NXtIqqJuqO3EhGFJ12ogdl5T3YfgcSU8HnUfuCAtGO0q5w/Wbn76ghX10uBLN8Q==","shasum":"b4b8c113dff982abf10a87aae9a0b0646605a379","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-cloudant/-/composer-wallet-cloudant-0.2.1.tgz","fileCount":11,"unpackedSize":29248,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbHnsYCRA9TVsSAnZWagAA1CgP/0VixTxzwWLWr8SIxlkK\nDTjgMvrzqqn6ES9i21f9Sih9UIyrrJJQXg5pEwRvpEt5am/Kv3m9gbCw0yQM\nxL3dNYQsbxDvGMsCNGbGV4hpe0ZaV9t5MmIGRmnl9ClVW1VBFLCKzhrkYLJz\nkkri714aTqoCsc64UtHmGnVHP8emD+t87JG6vjGrMdd7H5CLP4S2ej7k21D1\nQMGK+7RTGXFrMyz4CD0mJh7yBuOyMjdaiOxt++92lQBEOvbBoe/qd3+SAcwa\n/EIL0+qEddOwREqqsEyFy+hxvJOKVk1yeWi2jjUSBj/MRzlemzwepyoJdX70\nuzhumGDUYWJI5Ty2zDmYcTSbodHUAqOz8Y0pXc22IPooI/fSwDsjkgin5CmA\n7LhF2YZbxl8yqKiulaOfys0cLRdlneJ2fuwHpHeOnSV7hZuNNoCb5mycMzxQ\nQXR2EZE98fBOUrjk+TtXZGnuUiWTKm406SaeObPI0iEeTWrTrK/trkCfw/+D\nw902TV8xEkCZ88SZCtqbYNLazF8GhRtQb0quIWY9ZNoDqLOf/T/BXYhVXCDA\n4YtpUWkne9W5tWFE+9FEAT7X5g9nShhZUYzEPkN+EcIkqIv5LHffYKbG2E2G\ndFvZUwCtgBj+r7SWO9TaspN9cu4oRb5aWzBv9r9VvAJ2bw4rxeV5sBZ4HtRW\nHVMP\r\n=dEbY\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDwHUCyKYVt+5Fq4/FOC9/dL7j2pTo5YLTEhueN6WuUTAiAvq7JhfyLS1qbnaMvAZzdNQh64LM/WOsW/2h7FsKyZVg=="}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-cloudant_0.2.1_1528724248198_0.27952835367287654"},"_hasShrinkwrap":false}},"time":{"created":"2018-03-07T21:09:32.041Z","0.1.0":"2018-03-07T21:09:32.174Z","modified":"2022-04-04T13:52:55.434Z","0.2.0":"2018-06-11T13:35:16.404Z","0.2.1":"2018-06-11T13:37:28.264Z"},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"description":"Hyperledger Composer Wallet implementation for the IBM Cloud Object Store","homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","keywords":["blockchain","hyperledger","solutions"],"repository":{"type":"git","url":"git+https://github.com/ampretia/composer-wallet-ibmcos.git"},"author":{"name":"Hyperledger Composer"},"bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"license":"Apache-2.0","readme":"# composer-wallet-cloudant\n\nThis is Hyperledger Composer Wallet implementation using the [Cloudant NoSQL](https://console.bluemix.net/docs/services/Cloudant/getting-started.html) database (based on Apache CouchDB).\n\n> Be aware that the 'Lite' plan is rate limited to the number of queries that can be performed per second.\n\n## Usage\n\nThe steps below assume that you have an application or playground, or rest server for Hyperledger Composer that wish to use.\nAlso it assumes you are familar with NPM, and the card concept in the Composer\n\n### *Step 1*\n\n- Signup for a IBM Cloud account (the developer plan is free and includes object storage)\n- Follow the [instructions](https://console.bluemix.net/docs/services/Cloudant/tutorials/create_service.html#creating-a-cloudant-nosql-db-instance-on-ibm-cloud) to create a Cloudant Services \n- Once created, create [service credentials](https://console.bluemix.net/docs/services/Cloudant/tutorials/create_service.html#the-service-credentials) \n- Once the credential has been created, save a copy as a json file, call it `cardstore-cloudant.json'\n\n- Edit the `cardstore-cloudant.json` file to look like the following. You may wish to adjust the database field to be something else. This is the name of the database that will created in the Cloudant service.\n\n```\n{\n  \"composer\": {\n    \"wallet\": {\n      \"type\": \"@ampretia/composer-wallet-cloudant\",\n      \"options\": {\n        \"database\": \"alpha-metal\",\n        \"username\": \"xxxxxxxxxxxxxxxxxxxxxxx\",\n        \"password\": \"yyyyyyyyyyyyyyyyyyyyyyy\",\n        \"host\": \"zzzzzzzzzzzzzzzzzzzzzzzzzzz-bluemix.cloudant.com\",\n        \"port\": 443,\n        \"url\": \"https://zzzzzzzz-bluemix.cloudant.com\"\n      }\n    }\n  }\n}\n\n```\n\n### *Step 2*\n\nFirstly, this module that provides the support to connect from Composer to Cloudant needs to be installed.\nThis is loaded using a node.js require statment, and the current preview will look for this in the global modules. \n\n```\nnpm install -g @ampretia/composer-wallet-cloudant\n```\n\n### *Step 3*\n\nSetup the NODE_CONFIG environment variable to use the Cloudant wallet, and use the service credentials.\n\n```bash\n$ export NODE_CONFIG=$(cat cardstore-cloundant.json)\n```\n\nThe any application (or command line, eg `composer card list`) that is in this shell will use the cloud wallets. \n","readmeFilename":"README.md"}