{"_id":"@ampretia/composer-wallet-ibmcos","_rev":"5-2b3202c0427a8ad98fee62afb46f045c","name":"@ampretia/composer-wallet-ibmcos","description":"Hyperledger Composer Wallet implementation for the IBM Cloud Object Store","dist-tags":{"preview":"0.1.0","latest":"0.1.3"},"versions":{"0.1.0":{"name":"@ampretia/composer-wallet-ibmcos","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","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","eslint":"3.17.1","license-check":"1.1.5","mocha":"3.4.2","nyc":"11.1.0","sinon":"2.3.8"},"dependencies":{"composer-common":"0.17.3","ibm-cos-sdk":"1.1.1"},"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},"bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-ibmcos@0.1.0","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-SJAGPwjkbyomRw2xa1zOzJ8dLianTioCzIsKopfJ2wdVfxFyLAHceSCR2izDNHb5bD0sl/YqY2odmL/dZN9H2A==","shasum":"df76c5447045fa3476c658ce3148fe4eb44dcef4","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-ibmcos/-/composer-wallet-ibmcos-0.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGieH42qGjpyYJczUkMq/rKXWVfrArqL+Z4k1Hk5TI8XAiAtXpwvQuHOktzyt878QlwnuKidNuxCValkUsgYQcLGHQ=="}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-ibmcos-0.1.0.tgz_1517495804612_0.7656247250270098"},"directories":{}},"0.1.1":{"name":"@ampretia/composer-wallet-ibmcos","version":"0.1.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","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","eslint":"3.17.1","license-check":"1.1.5","mocha":"3.4.2","nyc":"11.1.0","sinon":"2.3.8"},"dependencies":{"ibm-cos-sdk":"1.1.1"},"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},"bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-ibmcos@0.1.1","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-h1hopSUso6xwh/Ma/OcRq4GorM/F2wSNyXclg1sPZ4uD0cLVoR9uLW2mqPsm6FX1bPfH9TRy2Tc759l09Q+tnQ==","shasum":"159a278d381b02238348424ffc8e70c828cb0eb1","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-ibmcos/-/composer-wallet-ibmcos-0.1.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzvJdFkeFk1ynOplKYgqmuTOa2tzfkwxpTzjkTveqj9AIhAP40Esph1m3muuqMCsIfzBlFYpgGD55b3dP3JgqGFkaa"}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-ibmcos-0.1.1.tgz_1517572962600_0.3913789470680058"},"directories":{}},"0.1.2":{"name":"@ampretia/composer-wallet-ibmcos","version":"0.1.2","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","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","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":{"ibm-cos-sdk":"1.1.1","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":"a1a4e756eccfedcf16ce2b2ad05b100d2d6adc47","bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-ibmcos@0.1.2","_npmVersion":"5.5.1","_nodeVersion":"8.9.0","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-9eFlCpwRcCi6Hg4kCkNctoFrL5CPzpXD52wdrb51qKMm/B7nY0hGkWWkZD8DVl6pNAN6Qt+sadVW3YO1o/MCvw==","shasum":"0cad2c448c1207d61f16e49c87b2844481b68b78","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-ibmcos/-/composer-wallet-ibmcos-0.1.2.tgz","fileCount":11,"unpackedSize":30996,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBFmkyKBUFTrmKt1X2ZSM13GY5D7mIMs0EmXCYOd1YZAIgNDNHJfYR821Yhfu/ztc7+7jTPaM+6bkqghbA9M2SbKk="}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-ibmcos_0.1.2_1518100319565_0.8924753354417694"},"_hasShrinkwrap":false},"0.1.3":{"name":"@ampretia/composer-wallet-ibmcos","version":"0.1.3","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","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","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":{"ibm-cos-sdk":"1.1.1","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":"7c5246a29adfd87b6a71cc352bb746f52fb113ac","bugs":{"url":"https://github.com/ampretia/composer-wallet-ibmcos/issues"},"homepage":"https://github.com/ampretia/composer-wallet-ibmcos#readme","_id":"@ampretia/composer-wallet-ibmcos@0.1.3","_npmVersion":"5.6.0","_nodeVersion":"8.9.0","_npmUser":{"name":"calanais","email":"matthew@mh-white.com"},"dist":{"integrity":"sha512-p0TqlBtDtHF2xpCGWyd4kmYcWrMgP4MYrniYCkvAsWKJJhcP+JkLyxgOCqGfoppS0ZdN7ymW1phSu0vnWh66vg==","shasum":"bdc5a57ba61bcd16b6dc362e675f8771a6c249df","tarball":"https://registry.npmjs.org/@ampretia/composer-wallet-ibmcos/-/composer-wallet-ibmcos-0.1.3.tgz","fileCount":11,"unpackedSize":31049,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCMsM8b90bzpazGjySvm/isI4WRYWzEO2E54LG8THHC/AIhAJ0d+W+40OfKp9xEpWQyvBgqdTSFoirzA4gZll7bZKoU"}]},"maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/composer-wallet-ibmcos_0.1.3_1520255575133_0.956301764601309"},"_hasShrinkwrap":false}},"readme":"# composer-wallet-ibmcos\n\nThis is Hyperledger Composer Wallet implementation using the [IBM Cloud Object Storage](https://www.ibm.com/cloud/object-storage) as a store.\n\nThis uses the S3 API, so conversion to other Object Storage services should be feasible.\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\n### *Step 1*\n\n- Signup for a IBM Cloud account (the developer plan is free and includes object storage)\n- Create a Cloud Object Store bucket. Would suggest to under the 'Select Service ID' automatically create a service\n- Also if you want to use the AWS CLI to access the bucket specify the following in the Add Inline Configuration Parameters (Optional) field: {\"HMAC\":true}\n\nYou will need then to keep a copy of the Service Credentials. These are of the form \n```\n{\n  \"apikey\": \"0viPHOY7LbLNa9eLftrtHPpTjoGv6hbLD1QalRXikliJ\",\n  \"cos_hmac_keys\": {\n      \"access_key_id\": \"347aa3a4b34344f8bc7c7cccdf856e4c\",\n      \"secret_access_key\": \"gvurfb82712ad14e7a7915h763a6i87155d30a1234364f61\"\n  },\n  \"endpoints\": \"https://cos-service.bluemix.net/endpoints\",\n  \"iam_apikey_description\": \"Auto generated apikey during resource-key operation for Instance - crn:v1:bluemix:public:cloud-object-storage:global:a/3ag0e9402tyfd5d29761c3e97696b71n:d6f74k03-6k4f-4a82-b165-697354o63903::\",\n  \"iam_apikey_name\": \"auto-generated-apikey-f9274b63-ef0b-4b4e-a00b-b3bf9023f9dd\",\n  \"iam_role_crn\": \"crn:v1:bluemix:public:iam::::serviceRole:Manager\",\n  \"iam_serviceid_crn\": \"crn:v1:bluemix:public:iam-identity::a/3ag0e9402tyfd5d29761c3e97696b71n::serviceid:ServiceId-540a4a41-7322-4fdd-a9e7-e0cb7ab760f9\",\n  \"resource_instance_id\": \"crn:v1:bluemix:public:cloud-object-storage:global:a/3ag0e9402tyfd5d29761c3e97696b71n:d6f74k03-6k4f-4a82-b165-697354o63903::\"\n}\n```\n\nMore information in the [IBM Cloud Documentation](https://console.bluemix.net/docs/services/cloud-object-storage/iam/service-credentials.html#service-credentials) \n\n### *Step 2*\n\nFirstly, this module that provides the support to connect from Composer to the Object Storage 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-waller-ibmcos\n```\n\n### *Step 3*\n\nConfiguration needs to be passed to the client appliation using composer to use this new wallet.\n\nThere are two main ways this can be achieved. Via configuration file, or via environment variables. \n\n*File*\nAssuming that you do not have the config directory already - this is using the standard node npm `config` module\n\n\n- Create a directory `config` in the current working directory of the application\n- Create a file `default.json` in this `config` directory\n- Ensure that the contents of the file are\n```\n{\n  \"composer\": {\n    \"cardstore\": {\n      \"type\": \"@ampretia/composer-wallet-ibmcos\",\n      \"desc\": \"Uses the IBM Cloud Object Store\",\n      \"options\": {\n        \"bucketName\": \"alpha-metal\",\n        \"endpoint\": \"s3.eu-gb.objectstorage.softlayer.net\",\n        \"apikey\": \"0viPHOY7LbLNa9eLftrtHPpTjoGv6hbLD1QalRXikliJ\",\n        \"serviceInstanceId\": \"crn:v1:bluemix:public:cloud-object-storage:global:a/3ag0e9402tyfd5d29761c3e97696b71n:d6f74k03-6k4f-4a82-b165-697354o63903::\"\n      }\n    }\n  }\n}\n```\n\n- `type` is the name of this module\n- `desc` is some text for the humans\n- `bucketName` is the buckName you created\n- `endpoint` is the *Service Endpoint* from the *Endpoint* section in the Object Store dasboard\n- `apikey` is the apikey from the service credentials\n- `serviceInstanceId` is the *resource_instance_id* from the service credentials\n\n*Environment Variable*\n\nAs this is using the *config* module specifing the details on the command line via environment variables can be achieved by\n\n```\nexport NODE_CONFIG={\"composer\":{\"cardstore\":{\"type\":\"@ampretia/composer-wallet-ibmcos\",\"desc\":\"Uses the IBM Cloud Object Store\",\"options\":{\"bucketName\":\"alpha-metal\",\"endpoint\":\"s3.eu-gb.objectstorage.softlayer.net\",\"apikey\":\"0viPHOY7LbLNa9eLftrtHPpTjoGv6hbLD1QalRXikliJ\",\"serviceInstanceId\":\"crn:v1:bluemix:public:cloud-object-storage:global:a/3ag0e9402tyfd5d29761c3e97696b71n:d6f74k03-6k4f-4a82-b165-697354o63903::\"}}}}\n```\n\nThe any application (or command line, eg `composer card list`) that is in this shell will use the cloud wallets. \n","maintainers":[{"name":"calanais","email":"matthew@mh-white.com"}],"time":{"modified":"2022-04-04T13:52:55.553Z","created":"2018-02-01T14:36:46.434Z","0.1.0":"2018-02-01T14:36:46.434Z","0.1.1":"2018-02-02T12:02:43.414Z","0.1.2":"2018-02-08T14:32:00.317Z","0.1.3":"2018-03-05T13:12:55.178Z"},"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","readmeFilename":"README.md"}