{"_id":"@brioux/cactus-plugin-ledger-connector-fabric","_rev":"9-2fa35c0d4c2371406fdb90dcbebf9304","name":"@brioux/cactus-plugin-ledger-connector-fabric","dist-tags":{"latest":"0.9.8-web-socket-identity-provider"},"versions":{"0.9.1":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.1","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2","ws":"8.1.0"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.1","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-j6UrZFfjtwD0h94l68G9AHr2/4Lm+dshSa7bZ+aViMkNdC0TZBGQC4hufZl91i9S3W9XMSn/h96g1cOAivR5uQ==","shasum":"e269cbf22ed6520f04a751d772cc85859492dc7f","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.1.tgz","fileCount":106,"unpackedSize":639696,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDd0rk29nDOAgH+UjQHIBpDcngqJhjdwO8SRLRRzTbavAiEA3HFk08OX/WlLEx8C+cZJXnWrld2VnPjmsNOK6OIFAkQ="}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.1_1632036256705_0.6902824460700656"},"_hasShrinkwrap":false},"0.9.2":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.2","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2","ws":"8.1.0"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.2","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-oJ9i/EMns1orbl4hShVpUwwnwqk7W7+1TKTv00O1ydmPVpmR26uCHhbB9Ehk5iT0k76Gn1tqLajjYR1wY+ObHQ==","shasum":"d8ad8dd8e886c6f1d829dbb8e7822a322cc933b2","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.2.tgz","fileCount":106,"unpackedSize":640084,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDG39SIi+Za00Whyq358KLO4fAH1ai7augyNeJfshlwOQIgVfc5qSK9KI8S2JtZ6XJLQ5b2mn+JLyZORM4/iSrbGsQ="}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.2_1632040449936_0.7389882810664441"},"_hasShrinkwrap":false},"0.9.2-web-socket-identity-provider":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.2-web-socket-identity-provider","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/hyperledger/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2","ws":"8.1.0"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.2-web-socket-identity-provider","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-cyZbQXThk1OG9Uqwqyg3k5HjnZUiSeF5A8xb/wdMaXFHtgnrxRcpSPiT9Omt249V7OgwILFroJATZuRzfggbpw==","shasum":"792920d04b25858ba52a880d1702c3820f06bfcd","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.2-web-socket-identity-provider.tgz","fileCount":106,"unpackedSize":640113,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDbnxJjSM0GlR1Hdwx7/S6hRKL55Y+xiAEygUyBpgF5XwIgSMkRQucBnVih5SZMn/dKIYgVQz/2UQAGHyN51wRImZA="}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.2-web-socket-identity-provider_1632041317980_0.8878334938991235"},"_hasShrinkwrap":false},"0.9.3-web-socket-identity-provider":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.3-web-socket-identity-provider","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/brioux/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2","ws":"8.1.0"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.3-web-socket-identity-provider","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-lW5QoGZ3ArSEhtiFBCGFLmlzH3+M0/G0/WQJvKsCClY1sHJWaN4PDP8hwxoLGiBCuKdEUf8wbur3gv9qN9KPcg==","shasum":"2ca0b74aaa1e95e3564d5980b33a42cc16e29c85","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.3-web-socket-identity-provider.tgz","fileCount":106,"unpackedSize":640108,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH38hBA+XnjnSzgUaj5q8DwYdTbFhsMGNfMu69iGtocoAiEA2Qxgb8ojKS+2KbcJsBO5z5ebpWFxD9h7atMs6tJVd2w="}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.3-web-socket-identity-provider_1632041413707_0.7459281056020828"},"_hasShrinkwrap":false},"0.9.5-web-socket-identity-provider":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.5-web-socket-identity-provider","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/brioux/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0","ws-wallet":"1.0.15","ws-identity-client":"1.0.0"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.5-web-socket-identity-provider","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-RyDkOE9nqMtVkt2lgXcEWiJX8wLFnx2D12m7uZKFoYRm4aSlOeafQn9Hty918W7z3Su0Qmrutp/AcKkty/EaFw==","shasum":"3a71021b04e96e029e0afee3a688e0e3545e1e7c","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.5-web-socket-identity-provider.tgz","fileCount":104,"unpackedSize":623104,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCt1TC8gf8c5F86UymAiPPehqHm+EL8lf2KK210kYd9WwIhAMLMdeRtWlncRV/Vzprq8LXXTs0+i83qEymuCM9hifmU"}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.5-web-socket-identity-provider_1632749459826_0.8365976024633592"},"_hasShrinkwrap":false},"0.9.6-web-socket-identity-provider":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.6-web-socket-identity-provider","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/brioux/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0","ws-wallet":"1.0.15","ws-identity-client":"1.0.0"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.6-web-socket-identity-provider","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-qMYU00chTv9fRdgnhrxe82C4jTDcer6nQ9XeK7wOY3AyGKHgHl0kZpKeMqF39RGaOcnBTfeTNAEwO1usjczFEA==","shasum":"fe121c13c204b3db193df31b61515ff89849f770","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.6-web-socket-identity-provider.tgz","fileCount":104,"unpackedSize":623130,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC9ptV1Fo4N6f3eHgpvSwqZRjHLjzBnBC7jJNKs/wzsBAIgVKeMkI2QJ9q96XDvKBrSzRzjRxXn1VcwQXC+d8xNeg4="}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.6-web-socket-identity-provider_1632756340052_0.05523973493971046"},"_hasShrinkwrap":false},"0.9.7-web-socket-identity-provider":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.7-web-socket-identity-provider","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/brioux/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.1","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0","ws-wallet":"1.0.21","ws-identity-client":"1.0.1"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.7-web-socket-identity-provider","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-TVyt0b8Jb3FsYDg8+0JFMAgnrL5q29kiTvqlGVlJun9vxwEhyR8iFSGerLCKi/z68YW83oObGxBFMV+1ct9i2A==","shasum":"1a5368a2408c02aac46e0de96da3b141aa6446b9","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.7-web-socket-identity-provider.tgz","fileCount":104,"unpackedSize":621283,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYRNCMBMQQ5WX3E5oCyOKJGjIkBxEIYY68fu7sTWdeQgIhAL+Lz4maOJKlBKbbpB+lReowUoW6nuHal84pVatEz1UR"}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.7-web-socket-identity-provider_1633085835848_0.11734048398664965"},"_hasShrinkwrap":false},"0.9.8-web-socket-identity-provider":{"name":"@brioux/cactus-plugin-ledger-connector-fabric","version":"0.9.8-web-socket-identity-provider","description":"Allows Cactus nodes to connect to a Fabric ledger.","main":"dist/lib/main/typescript/index.js","mainMinified":"dist/cactus-plugin-ledger-connector-fabric.node.umd.min.js","browser":"dist/cactus-plugin-ledger-connector-fabric.web.umd.js","browserMinified":"dist/cactus-plugin-ledger-connector-fabric.web.umd.min.js","module":"dist/lib/main/typescript/index.js","types":"dist/lib/main/typescript/index.d.ts","scripts":{"generate-sdk":"openapi-generator-cli generate -i ./src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/ --reserved-words-mappings protected=protected","codegen:openapi":"npm run generate-sdk","codegen":"run-p 'codegen:*'","watch":"npm-watch","webpack":"npm-run-all webpack:dev webpack:prod","webpack:dev":"npm-run-all webpack:dev:node webpack:dev:web","webpack:dev:web":"webpack --env=dev --target=web --config ../../webpack.config.js","webpack:dev:node":"webpack --env=dev --target=node --config ../../webpack.config.js","webpack:prod":"npm-run-all webpack:prod:node webpack:prod:web","webpack:prod:web":"webpack --env=prod --target=web --config ../../webpack.config.js","webpack:prod:node":"webpack --env=prod --target=node --config ../../webpack.config.js"},"watch":{"codegen:openapi":{"patterns":["./src/main/json/openapi.json"]}},"publishConfig":{"access":"public"},"engines":{"node":">=10","npm":">=6"},"repository":{"type":"git","url":"git+https://github.com/brioux/cactus.git"},"keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"license":"Apache-2.0","bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"homepage":"https://github.com/hyperledger/cactus#readme","dependencies":{"@fidm/x509":"1.2.1","@hyperledger/cactus-common":"0.9.0","@hyperledger/cactus-core":"0.9.0","@hyperledger/cactus-core-api":"0.9.0","axios":"0.21.4","bl":"5.0.0","bn.js":"4.12.0","express":"4.17.1","fabric-ca-client":"2.3.0-snapshot.49","fabric-common":"2.3.0-snapshot.49","fabric-network":"2.3.0-snapshot.49","fabric-protos":"2.2.8","form-data":"4.0.0","http-status-codes":"2.1.4","jsrsasign":"10.4.0","multer":"1.4.3","ngo":"2.7.0","node-ssh":"12.0.0","node-vault":"0.9.22","openapi-types":"9.1.0","prom-client":"13.2.0","temp":"0.9.4","typescript-optional":"2.0.1","uuid":"8.3.2","ws-identity-client":"1.0.1"},"devDependencies":{"@hyperledger/cactus-plugin-keychain-memory":"0.9.0","@hyperledger/cactus-test-tooling":"0.9.0","@types/express":"4.17.13","@types/fs-extra":"9.0.12","@types/jsrsasign":"8.0.13","@types/multer":"1.4.7","@types/node-vault":"0.9.13","@types/temp":"0.9.1","@types/uuid":"8.3.1","fs-extra":"10.0.0","ws-wallet":"1.1.1"},"_id":"@brioux/cactus-plugin-ledger-connector-fabric@0.9.8-web-socket-identity-provider","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-73I9O1X+nU1UsAmCUk0UZdolpto3q26XiiG2EOZ+HjXLT+J3CeqEtTitqC0dCuWzBBTOvFPKQ603veqr6uvn6Q==","shasum":"7ed0ba7277f4d3e6ce9d7f8846cc22e171e12fb3","tarball":"https://registry.npmjs.org/@brioux/cactus-plugin-ledger-connector-fabric/-/cactus-plugin-ledger-connector-fabric-0.9.8-web-socket-identity-provider.tgz","fileCount":104,"unpackedSize":616735,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzaFMCRA9TVsSAnZWagAAOtsQAKDGbY2638Y/LIzDG1UM\nbNT0v3XdQ0ROsQnShX/YFV80TWKcdaOSFBQVmifdxn5wWE01mDGJtDdrxbCw\nhkb0H/wCci/1+DLc4bB0Cu5uDM2Afl3mbHTm8WYaTGIAG/HPlhOW5rDFdP1t\nsAVy72lM5+9lM4sQyMQTQWPJtFIehy1wGG5bmhTg/819Q3HZjBWmiNH/rtRk\nTPe1hJxhVpzHDb5gPf2M3V+bja/y2ad9l/BAdyJGVSlw+5UP/zdU9a7KtPxn\nUrx1JN5IVUAZUfBXeqxfNLqGsyTMSA7E7MVEjSTmms4bfFsBZwWSV7a2rLSD\n46+bQvWsATQ/w4It3+NvjPdSHPz0LF9D/Prp8Q+DGLUulLWn33ztSfCq9shG\n2ZgKJAPCjFaGWUmHL2HYLI1zB31yjKSro8QSUA3k7a3mSMj8ohEBRwuiKzfn\nRsEzrTnpm5l0PW2aWOyNHqZA9UrrmztRveyYgHim+3Ra/kH3tNnfuyRTz7fb\n5N7dhi0A6tFio6AJCT3Fjo2cxiTr9e3j2mkb7Ho5Bb5PghMNa2XoBDdU8rVm\nI4pBezQA4dp9qLGs90e9W+sqC0UIt6MjifL2U4GC0eUsE+Q7pXYxwF4HdruB\n9oQO4T7vxtodtaZq7ZLBy4vcvt5hTaz/DOqIE0mGZlXMo2KUi1m8aDjQoJNb\n9evA\r\n=Fhwq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICWKJbBLE6TvkPhL0kB2fQQZ1L9KiNDgzSNZrMElGWmOAiBqJ/6BFcCxhzI5dUlDFQnXFvZN/IEPrQyVRnqtpSARTg=="}]},"_npmUser":{"name":"brioux","email":"bertrand.rioux@gmail.com"},"directories":{},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cactus-plugin-ledger-connector-fabric_0.9.8-web-socket-identity-provider_1633364669748_0.5512141264663639"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-19T07:24:16.664Z","0.9.1":"2021-09-19T07:24:16.879Z","modified":"2022-04-04T20:42:20.462Z","0.9.2":"2021-09-19T08:34:10.088Z","0.9.2-web-socket-identity-provider":"2021-09-19T08:48:38.141Z","0.9.3-web-socket-identity-provider":"2021-09-19T08:50:13.870Z","0.9.5-web-socket-identity-provider":"2021-09-27T13:30:59.985Z","0.9.6-web-socket-identity-provider":"2021-09-27T15:25:40.201Z","0.9.7-web-socket-identity-provider":"2021-10-01T10:57:16.033Z","0.9.8-web-socket-identity-provider":"2021-10-04T16:24:29.943Z"},"maintainers":[{"name":"brioux","email":"bertrand.rioux@gmail.com"}],"description":"Allows Cactus nodes to connect to a Fabric ledger.","homepage":"https://github.com/hyperledger/cactus#readme","keywords":["Hyperledger","Cactus","Integration","Blockchain","Distributed Ledger Technology"],"repository":{"type":"git","url":"git+https://github.com/brioux/cactus.git"},"contributors":[{"name":"Please add yourself to the list of contributors","email":"your.name@example.com","url":"https://example.com"},{"name":"Peter Somogyvari","email":"peter.somogyvari@accenture.com","url":"https://accenture.com"}],"author":{"name":"Hyperledger Cactus Contributors","email":"cactus@lists.hyperledger.org","url":"https://www.hyperledger.org/use/cactus"},"bugs":{"url":"https://github.com/hyperledger/cactus/issues"},"license":"Apache-2.0","readme":"# `@hyperledger/cactus-plugin-ledger-connector-fabric`\n\nThis plugin provides `Cactus` a way to interact with Fabric networks. Using this we can perform:\n* Deploy Golang chaincodes.\n* Make transactions.\n* Invoke chaincodes functions that we have deployed on the network.\n\n## Summary\n\n  - [Getting Started](#getting-started)\n  - [Architecture](#architecture)\n  - [Usage](#usage)\n  - [Identity Providers](#identity-providers)\n  - [Runing the tests](#running-the-tests)\n  - [Built With](#built-with)\n  - [Prometheus Exporter](#prometheus-exporter)\n  - [Contributing](#contributing)\n  - [License](#license)\n  - [Acknowledgments](#acknowledgments)\n\n## Getting Started\n\nClone the git repository on your local machine. Follow these instructions that will get you a copy of the project up and running on\nyour local machine for development and testing purposes.\n\n### Prerequisites\n\nIn the root of the project to install the dependencies execute the command:\n```sh\nnpm run comfigure\n```\n### Compiling\n\nIn the project root folder, run this command to compile the plugin and create the dist directory:\n```sh\nnpm run tsc\n```\n### Architecture\nThe sequence diagrams for various endpoints are mentioned below\n\n#### run-transaction-endpoint\n![run-transaction-endpoint sequence diagram](docs/architecture/images/run-transaction-endpoint.png)\nThe above diagram shows the sequence diagram of run-transaction-endpoint. User A (One of the many Users) interacts with the API Client which in turn, calls the API server. API server then executes transact() method which is explained in detailed in the subsequent diagram.\n![run-transaction-endpoint transact() method](docs/architecture/images/run-transaction-endpoint-transact.png)\nThe above diagram shows the sequence diagraom of transact() method of the PluginLedgerConnectorFabric class. The caller to this function, which in reference to the above sequence diagram is API server, sends RunTransactionRequest object as an argument to the transact() method. Based on the invocationType (FabricContractInvocationType.CALL, FabricCOntractInvocationType.SEND), corresponding responses are send back to the caller.\n\n![run-transaction-endpoint-enroll](docs/architecture/images/run-transaction-endpoint-enroll.png)\n\nThe above diagram shows the sequence diagraom of enroll() method of the PluginLedgerConnectorFabric class. The caller to this function, which in reference to the above sequence diagram is API server, sends Signer object along with EnrollmentRequest as an argument to the enroll() method. Based on the singerType (FabricSigningCredentialType.X509, FabricSigningCredentialType.VaultX509, FabricSigningCredentialType.WsX509), corresponding identity is enrolled and stored inside keychain. \n\n## Usage\n\nTo use this import public-api and create new **PluginLedgerConnectorFabric** and **ChainCodeCompiler**.\n```typescript\n  const connector: PluginLedgerConnectorFabric = new PluginLedgerConnectorFabric(pluginOptions);\n  const compiler = new ChainCodeCompiler({ logLevel });\n```\nFor compile the chaincodes:\n```typescript\n  const opts: ICompilationOptions = {\n    fileName: \"hello-world-contract.go\",\n    moduleName: \"hello-world-contract\",\n    pinnedDeps: [\n      \"github.com/hyperledger/fabric@v1.4.8\",\n      \"golang.org/x/net@v0.0.0-20210503060351-7fd8e65b6420\",\n    ],\n    modTidyOnly: true, // we just need the go.mod file so tidy only is enough\n    sourceCode: HELLO_WORLD_CONTRACT_GO_SOURCE,\n  };\n\n  const result = await compiler.compile(opts);\n```\n\nTo support signing of message with multiple identity types\n```typescript\n// vault server config for supporting vault identity provider\nconst vaultConfig:IVaultConfig = {\n  endpoint : \"http://localhost:8200\",\n  transitEngineMountPath: \"/transit\",\n}\n// web-socket server config for supporting vault identity provider\nconst webSocketConfig:IVaultConfig = {\n  server: socketServer as FabricSocketServer\n}\n// provide list of identity signing to be supported\nconst supportedIdentity:FabricSigningCredentialType[] = [FabricSigningCredentialType.VaultX509,FabricSigningCredentialType.WsX509,FabricSigningCredentialType.X509]\nconst pluginOptions:IPluginLedgerConnectorFabricOptions = {\n  // other options\n  vaultConfig : vaultConfig,\n  webSocketConfig : webSocketConfig,\n  supportedIdentity:supportedIdentity\n  // .. other options\n}\nconst connector: PluginLedgerConnectorFabric = new PluginLedgerConnectorFabric(pluginOptions);\n```\nTo enroll an identity\n```typescript\nawait connector.enroll(\n        {\n          keychainId: \"keychain-identifier-for storing-certData\",\n          keychainRef: \"cert-data-identifier\",\n\n          // require in case of vault\n          type: FabricSigningCredentialType.VaultX509, // FabricSigningCredentialType.X509\n          vaultTransitKey: {\n            token: \"vault-token\",\n            keyName: \"vault-key-label\",\n          },\n          // required in case of web-socket server\n          type: FabricSigningCredentialType.WsX509,\n          webSocketKey: {\n            signature: signature,\n            sessionId: sessionId,\n          },\n        },\n        {\n          enrollmentID: \"client2\",\n          enrollmentSecret: \"pw\",\n          mspId: \"Org1MSP\",\n          caId: \"ca.org1.example.com\",\n        },\n      );\n```\n\nTo Register an identity using register's key\n```typescript\nconst secret = await connector.register(\n        {\n          keychainId: \"keychain-id-that-store-certData-of-registrar\",\n          keychainRef: \"certData-label\",\n\n          // require in case of vault\n          type: FabricSigningCredentialType.VaultX509, // FabricSigningCredentialType.X509\n          vaultTransitKey: {\n            token: testToken,\n            keyName: registrarKey,\n          },\n          // required in case of web-socket server\n          type: FabricSigningCredentialType.WsX509,\n          webSocketKey: {\n            signature: signature,\n            sessionId: sessionId,\n          },\n        },\n        {\n          enrollmentID: \"client-enrollmentID\",\n          enrollmentSecret: \"pw\",\n          affiliation: \"org1.department1\",\n        },\n        \"ca.org1.example.com\", // caID\n      );\n```\n\nTo transact with fabric\n```typescript\nconst resp = await connector.transact{\n  signingCredential: {\n          keychainId: keychainId,\n          keychainRef: \"client-certData-id\",\n\n          // require in case of vault\n          type: FabricSigningCredentialType.VaultX509, // FabricSigningCredentialType.X509\n          vaultTransitKey: {\n            token: testToken,\n            keyName: registrarKey,\n          },\n          // required in case of web-socket server\n          type: FabricSigningCredentialType.WsX509,\n          webSocketKey: {\n            signature: signature,\n            sessionId: sessionId,\n          },\n        },\n        // .. other options\n}\n```\n\nTo Rotate the key\n```typescript\nawait connector.rotateKey(\n  {\n        keychainId: keychainId,\n        keychainRef: \"client-certData-id\",\n        type: FabricSigningCredentialType.VaultX509, // FabricSigningCredentialType.X509\n\n        // require in case of vault\n        vaultTransitKey: {\n          token: testToken,\n          keyName: registrarKey,\n        },\n        // key rotation currently not available using web-socket server\n        // web-socket connection not used to manages external keys\n        // user should re-enroll with new pub/priv key pair\n  },\n  {\n      enrollmentID: string;\n      enrollmentSecret: string;\n      caId: string;\n  }\n)\n```\n\n> Extensive documentation and examples in the [readthedocs](https://readthedocs.org/projects/hyperledger-cactus/) (WIP)\n## Identity Providers\n\nIdentity providers allows client to manage their private more effectively and securely. Cactus Fabric Connector support multiple type of providers. Each provider differ based upon where the private are stored. On High level certificate credential are stored as\n\n```typescript\n{  \n  type: FabricSigningCredentialType;\n  credentials: {\n    certificate: string;\n    // if identity type is IdentityProvidersType.X509\n    privateKey?: string;\n  };\n  mspId: string;\n}\n```\n\nCurrently Cactus Fabric Connector supports following Identity Providers\n\n- X509 : Simple and unsecured provider wherein `private` key is stored along with certificate in some `datastore`. Whenever connector require signature on fabric message, private key is brought from the `datastore` and message signed at the connector.\n- Vault-X.509 : Secure provider wherein `private` key is stored with vault's transit transit engine and certificate in `certDatastore`. Rather then bringing the key to the connector, message digest are sent to the vault server which returns the `signature`.\n- WS-X.509 : Secure provider wherein `private` key is stored with `client` and certificate in `certDatastore`. To get the fabric messages signed, message digest is sent to the client via `webSocket` connection opened by the client in the beginning (as described above)\n\n### setting up a WS-X.509 provider\nThe following packages are used to access private keys (via web-socket)  stored on a clients external device (e.g., browser, mobile app, or an IoT device...).\n  -[ws-identity](https://github.com/brioux/ws-identity): web-socket server that issues new ws-session tickets, authenticates incoming connections, and sends signature requests\n  -[ws-identity-client](https://github.com/brioux/ws-identity-client): backend connector to send requests from fabric application to ws-identity\n  -[ws-wallet](https://github.com/brioux/ws-wallet): external clients key tool: create new key pair, open web-socket connection with ws-identity\n\n### Building the ws-identity docker image\n\n\n## Running the tests\n\nTo check that all has been installed correctly and that the pugin has no errors, run the tests:\n\n* Run this command at the project's root:\n```sh\nnpm run test:plugin-ledger-connector-fabric\n```\n### Building/running the container image locally\n\nIn the Cactus project root say:\n\n```sh\nDOCKER_BUILDKIT=1 docker build -f ./packages/cactus-plugin-ledger-connector-fabric/Dockerfile . -t cplcb\n```\n\nBuild with a specific version of the npm package:\n```sh\nDOCKER_BUILDKIT=1 docker build --build-arg NPM_PKG_VERSION=0.4.1 -f ./packages/cactus-plugin-ledger-connector-fabric/Dockerfile . -t cplcb\n```\n\n\n#### Running the container\n\nLaunch container with plugin configuration as an **environment variable**:\n```sh\ndocker run \\\n  --rm \\\n  --publish 3000:3000 \\\n  --publish 4000:4000 \\\n  --env PLUGINS='[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-fabric\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\",  \"options\": {\"instanceId\": \"some-unique-fabric-connector-instance-id\", \"dockerBinary\": \"usr/local/bin/docker\",\"cliContainerEnv\": {\n    \"CORE_PEER_LOCALMSPID\": \"Org1MSP\",\n    \"CORE_PEER_ADDRESS\": \"peer0.org1.example.com:7051\",\n    \"CORE_PEER_MSPCONFIGPATH\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp\",\n    \"CORE_PEER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt\",\n    \"ORDERER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem\"\n  },\n  \"discoveryOptions\": {\n    \"enabled\": true,\n    \"asLocalhost: true\"\n  }\n  }}}]' \\\n  cplcb\n```\n\nLaunch container with plugin configuration as a **CLI argument**:\n```sh\ndocker run \\\n  --rm \\\n  --publish 3000:3000 \\\n   --publish 4000:4000 \\\n  cplcb \\\n    ./node_modules/.bin/cactusapi \\\n    --plugins='[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-fabric\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\",  \"options\": {\"instanceId\": \"some-unique-fabric-connector-instance-id\", \"dockerBinary\": \"usr/local/bin/docker\",\"cliContainerEnv\": {\n    \"CORE_PEER_LOCALMSPID\": \"Org1MSP\",\n    \"CORE_PEER_ADDRESS\": \"peer0.org1.example.com:7051\",\n    \"CORE_PEER_MSPCONFIGPATH\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp\",\n    \"CORE_PEER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt\",\n    \"ORDERER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem\"\n  },\n  \"discoveryOptions\": {\n    \"enabled\": true,\n    \"asLocalhost: true\"\n  }\n  }}}]'\n```\n\nLaunch container with **configuration file** mounted from host machine:\n```sh\n\necho '[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-fabric\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\",  \"options\": {\"instanceId\": \"some-unique-fabric-connector-instance-id\", \"dockerBinary\": \"usr/local/bin/docker\",\"cliContainerEnv\": {\n    \"CORE_PEER_LOCALMSPID\": \"Org1MSP\",\n    \"CORE_PEER_ADDRESS\": \"peer0.org1.example.com:7051\",\n    \"CORE_PEER_MSPCONFIGPATH\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp\",\n    \"CORE_PEER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt\",\n    \"ORDERER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem\"\n  },\n  \"discoveryOptions\": {\n    \"enabled\": true,\n    \"asLocalhost: true\"\n  }\n  }}}]' > cactus.json\n\ndocker run \\\n  --rm \\\n  --publish 3000:3000 \\\n  --publish 4000:4000 \\\n  --mount type=bind,source=\"$(pwd)\"/cactus.json,target=/cactus.json \\\n  cplcb \\\n    ./node_modules/.bin/cactusapi \\\n    --config-file=/cactus.json\n```\n\n#### Testing API calls with the container\n\nDon't have a fabric network on hand to test with? Test or develop against our fabric All-In-One container!\n\n**Terminal Window 1 (Ledger)**\n```sh\ndocker run -p 0.0.0.0:8545:8545/tcp  -p 0.0.0.0:8546:8546/tcp  -p 0.0.0.0:8888:8888/tcp  -p 0.0.0.0:9001:9001/tcp  -p 0.0.0.0:9545:9545/tcp hyperledger/cactus-fabric-all-in-one:latest\n```\n\n**Terminal Window 2 (Cactus API Server)**\n```sh\ndocker run \\\n  --network host \\\n  --rm \\\n  --publish 3000:3000 \\\n  --publish 4000:4000 \\\n  --env PLUGINS='[{\"packageName\": \"@hyperledger/cactus-plugin-ledger-connector-fabric\", \"type\": \"org.hyperledger.cactus.plugin_import_type.LOCAL\",  \"options\": {\"instanceId\": \"some-unique-fabric-connector-instance-id\", \"dockerBinary\": \"usr/local/bin/docker\",\"cliContainerEnv\": {\n    \"CORE_PEER_LOCALMSPID\": \"Org1MSP\",\n    \"CORE_PEER_ADDRESS\": \"peer0.org1.example.com:7051\",\n    \"CORE_PEER_MSPCONFIGPATH\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp\",\n    \"CORE_PEER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com/tls/ca.crt\",\n    \"ORDERER_TLS_ROOTCERT_FILE\":\n      \"/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem\"\n  },\n  \"discoveryOptions\": {\n    \"enabled\": true,\n    \"asLocalhost: true\"\n  }\n  }}}]' \\\n  cplcb\n```\n\n**Terminal Window 3 (curl - replace eth accounts as needed)**\n```sh\ncurl --location --request POST 'http://127.0.0.1:4000/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/run-transaction' \\\n--header 'Content-Type: application/json' \\\n--data-raw '{\n    channelName: \"mychannel\",\n    contractName: \"contract-example\";\n    invocationType: \"FabricContractInvocationType.SEND\";\n    methodName: \"example\"\n}'\n```\n\nThe above should produce a response that looks similar to this:\n\n```json\n{\n    \"success\": true,\n    \"data\": {\n        \"transactionReceipt\": {\n            \"blockHash\": \"0x7c97c038a5d3bd84613fe23ed442695276d5d2df97f4e7c4f10ca06765033ffd\",\n            \"blockNumber\": 1218,\n            \"contractAddress\": null,\n            \"cumulativeGasUsed\": 21000,\n            \"from\": \"0x627306090abab3a6e1400e9345bc60c78a8bef57\",\n            \"gasUsed\": 21000,\n            \"logs\": [],\n            \"logsBloom\": \"0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000\",\n            \"status\": true,\n            \"to\": \"0xf17f52151ebef6c7334fad080c5704d77216b732\",\n            \"transactionHash\": \"0xc7fcb46c735bdc696d500bfc70c72595a2b8c31813929e5c61d9a5aec3376d6f\",\n            \"transactionIndex\": 0\n        }\n    }\n}\n```\n\n\n\n## Prometheus Exporter\n\nThis class creates a prometheus exporter, which scraps the transactions (total transaction count) for the use cases incorporating the use of Fabric connector plugin.\n\n\n### Usage Prometheus\nThe prometheus exporter object is initialized in the `PluginLedgerConnectorFabric` class constructor itself, so instantiating the object of the `PluginLedgerConnectorFabric` class, gives access to the exporter object.\nYou can also initialize the prometheus exporter object seperately and then pass it to the `IPluginLedgerConnectorFabricOptions` interface for `PluginLedgerConnectoFabric` constructor.\n\n`getPrometheusExporterMetricsEndpointV1` function returns the prometheus exporter metrics, currently displaying the total transaction count, which currently increments everytime the `transact()` method of the `PluginLedgerConnectorFabric` class is called.\n\n### Prometheus Integration\nTo use Prometheus with this exporter make sure to install [Prometheus main component](https://prometheus.io/download/).\nOnce Prometheus is setup, the corresponding scrape_config needs to be added to the prometheus.yml\n\n```(yaml)\n- job_name: 'fabric_ledger_connector_exporter'\n  metrics_path: api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics\n  scrape_interval: 5s\n  static_configs:\n    - targets: ['{host}:{port}']\n```\n\nHere the `host:port` is where the prometheus exporter metrics are exposed. The test cases (For example, packages/cactus-plugin-ledger-connector-fabric/src/test/typescript/integration/fabric-v1-4-x/run-transaction-endpoint-v1.test.ts) exposes it over `0.0.0.0` and a random port(). The random port can be found in the running logs of the test case and looks like (42379 in the below mentioned URL)\n`Metrics URL: http://0.0.0.0:42379/api/v1/plugins/@hyperledger/cactus-plugin-ledger-connector-fabric/get-prometheus-exporter-metrics`\n\nOnce edited, you can start the prometheus service by referencing the above edited prometheus.yml file.\nOn the prometheus graphical interface (defaulted to http://localhost:9090), choose **Graph** from the menu bar, then select the **Console** tab. From the **Insert metric at cursor** drop down, select **cactus_fabric_total_tx_count** and click **execute**\n\n### Helper code\n\n###### response.type.ts\nThis file contains the various responses of the metrics.\n\n###### data-fetcher.ts\nThis file contains functions encasing the logic to process the data points\n\n###### metrics.ts\nThis file lists all the prometheus metrics and what they are used for.\n## Contributing\n\nWe welcome contributions to Hyperledger Cactus in many forms, and there’s always plenty to do!\n\nPlease review [CONTIRBUTING.md](../../CONTRIBUTING.md) to get started.\n\n## License\n\nThis distribution is published under the Apache License Version 2.0 found in the [LICENSE](../../LICENSE) file.\n\n## Acknowledgments\n","readmeFilename":"README.md"}