{"_id":"@sphereon/ssi-sdk-waci-pex-qr-react","_rev":"183-d271d25ff422b9e53fb3332f325d63f3","name":"@sphereon/ssi-sdk-waci-pex-qr-react","dist-tags":{"unstable":"0.8.1-unstable.225","latest":"0.8.0","next":"0.8.1-next.194"},"versions":{"0.3.5-unstable.44":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.3.5-unstable.44","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"7850e34ad2af58f62523a2346826d12280216d31","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.3.5-unstable.44","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-MEtLPr0z2Qq7ZES4HXMUAUfsV95rDMEs4yXIGCX7JXEChR2LsFFwuHuzZzHfrYLrORa+k9J9zn4EfFICOs/0fw==","shasum":"8536cb487d2065143cf29b1e70ba1a5b7e43ea45","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.3.5-unstable.44.tgz","fileCount":23,"unpackedSize":32212,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBcDJCRA9TVsSAnZWagAADDcP/iNNtk+CmPs6us6i20Ee\ntKiTvDcISWRDBMcu/++qcwsF3Laflqw8zS1R8ufA/cLjTMq36AWdfG9MP2Tw\noIuly6zKwggA1VMlnBK8l1EL9FPQRb6nEPVa4Gh97JL10UR2VVkdOPCAU8uL\neaPsxn2Cp0gp2vB/7uZbXHWu6g+Q9CPDzgpTe27esIdDLtrMCiiRikam/A3y\nBJ87fpfZqEJQ649rEH70Un2glEPac1akIeB2ijy0b62DLzSnFtgd0U+dZStQ\nQfRtdHLHUIXvNWL57s2kOuvIAAYUe7jkLSxRK/z27vIxENDm4eFU6Q5MZVlO\nLm/zkqfZ0gSnOn+bcsrMNlgEmxwk5qhSvtWpipLBkzbUnnvYjc4PvGmytosd\nH7+0yq9bKClA6wlLzuNbu3hxg9yJnwmCYlzQSbqGZO1Tm4zg6bSLvaUdrNqw\nNE6LLjZ53u05gSXckwWjdfBtEbqdJlp7Uqvr4eGnqEb8pX+Ev7c38p8Wv8m/\n3W6uPJ38wCnxtJ/IHzb/StVqp30K5GxyqRwRXC+WCmqPcV1IzvZ0L9RssyY1\ngZfgWsrfwe/7Pg0vcEoHWNqeJpY1b8iL8NCVM+7FcO3zV54twRpMMblK2a+E\nvZOvABPfvPatD+MihLHO+QpS1kUWVxWgGVXP73nkdKHZ2h9bXU9j/uToc0Hi\nXlU7\r\n=/y+u\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhmVLpqW09NkGtMrZBnw8NRHIvm/8BAKUP/MAGV2RTVQIgC8feLZm9dmMsr/8ToqDHmTBiKmsRlNzb646zcUIl4mU="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.3.5-unstable.44_1644544201687_0.21000655055706363"},"_hasShrinkwrap":false},"0.3.5-unstable.45":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.3.5-unstable.45","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"040014a84e7111e80819a68302ab68855a9a6ba5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an SSI QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only supporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the recipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The possible `accept` value may be:\n\n1. `oidc4vp`\n2. `siop+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2` ( in future )\n\nThe data fields will need to be passed in `SsiQrCodeProps.authenticationRequestOpts.state` : string.\n\n#### Importing the plugin\n\n```\nimport {SsiQrCodeProvider} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  SsiQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```\nplugins: [\n  ...\n  new SsiQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```\nimport { createSsiQrCode } from '../agent';\nimport {QRContent, QRMode, QRType} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```\n    getSsiQrCodeProps(): SsiQrCodeProps {\n    return {\n      accept: AcceptValue.OIDC4VP,\n      mode: QRMode.DID_AUTH_SIOP_V2,\n      authenticationRequestOpts: {\n        redirectUri: 'https://example.com/qrCode/callbacks',\n        requestBy: {\n          type: SIOP.PassBy.VALUE\n        },\n        signatureType: {\n          hexPrivateKey: \"e96d4bf41709c1bf9276ed784b39d6f6ae47e7e4091f849e5ab001452340acf7\",\n          did: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902\",\n          kid: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902#controller\",\n        },\n        registration: {\n          didMethodsSupported: ['did:ethr:'],\n          subjectIdentifiersSupported: SubjectIdentifierType.DID,\n          credentialFormatsSupported: [CredentialFormat.JWT],\n          registrationBy: {\n            type: SIOP.PassBy.VALUE,\n          },\n        },\n        state: \"State 2022-01-31 00\"\n      },\n      onGenerate: (content: QRContent) => {\n        // Example output of onGenerate:\n        // {\n        //   \"nonce\": \"gMWABjAANoQ3LfScAF4HPW\",\n        //   \"state\": \"State 2022-01-31 00\",\n        //   \"qrValue\": \"openid://?response_type=id_token&scope=openid&client_id=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&redirect_uri=https%3A%2F%2Fexample.com%2FqrCode%2Fcallbacks&iss=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&response_mode=post&response_context=rp&nonce=rSwJ_-N_EUO-X7HX3dVAsKe2_jjrxlIMmZakKiTjDdY&state=State%202022-01-31%2000&registration=%7B%22did_methods_supported%22%3A%5B%22did%3Aethr%3A%22%5D%2C%22subject_identifiers_supported%22%3A%22did%22%2C%22credential_formats_supported%22%3A%5B%22jwt%22%5D%7D&request=eyJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIjY29udHJvbGxlciIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ1MDUyODQsImV4cCI6MTY0NDUwNTg4NCwicmVzcG9uc2VfdHlwZSI6ImlkX3Rva2VuIiwic2NvcGUiOiJvcGVuaWQiLCJjbGllbnRfaWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2V4YW1wbGUuY29tL3FyQ29kZS9jYWxsYmFja3MiLCJpc3MiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZXNwb25zZV9tb2RlIjoicG9zdCIsInJlc3BvbnNlX2NvbnRleHQiOiJycCIsIm5vbmNlIjoiclN3Sl8tTl9FVU8tWDdIWDNkVkFzS2UyX2pqcnhsSU1tWmFrS2lUakRkWSIsInN0YXRlIjoiU3RhdGUgMjAyMi0wMS0zMSAwMCIsInJlZ2lzdHJhdGlvbiI6eyJkaWRfbWV0aG9kc19zdXBwb3J0ZWQiOlsiZGlkOmV0aHI6Il0sInN1YmplY3RfaWRlbnRpZmllcnNfc3VwcG9ydGVkIjoiZGlkIiwiY3JlZGVudGlhbF9mb3JtYXRzX3N1cHBvcnRlZCI6WyJqd3QiXX19.Sld1kZvV5NNL592MT16ssVVmNif4MhkxUtsRZcHxxUXWXgae4ilbgK1O_pY1ISi-dtQXES0Lp8pzkVj2w47sPA\"\n        // }\n      },\n      bgColor: 'white',\n      fgColor: 'black',\n      level: 'L',\n      size: 128,\n      title: 'title2021120903',\n    }\n  }\n\n  delegateCreateSsiQRCode = () => {\n    let qrCode = createSsiQrCode(this.getSsiQrCodeProps())\n    return qrCode\n    .then(qrCodeResolved => {\n      return qrCodeResolved\n    });\n  }\n```\n\n#### For rendering add to the view\n\n```\n  <View>\n  //...\n  {\n    this.delegateCreateSsiQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.3.5-unstable.45","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-4xQWOwtq9mVcOM38z6wfZ0S2QkrJFQaTYtw1aEY92mN3gDjRNWmZkbFTakiq4wPsX82EMYJP0RSSB9HjSXQFWQ==","shasum":"dc30cb052782b523abf2c17e8fb5ca3447120c43","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.3.5-unstable.45.tgz","fileCount":23,"unpackedSize":32218,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBcGMCRA9TVsSAnZWagAA1fQP/3ChXKUMhZi9KVM847Bz\nBpqC9r5wnVCFQDlXFpMBqTbAq7pmZCziBRCHrgdcclx9gCvY4U44RDlHa+DS\n4zkbOoFErAUSqr9XbWeOdz3z8QpaQsv0aURotnDbomw8XvJMR7G345132kJN\nHePuVETmXWWjIQTfTcQMe1oVhU9c/OuyY9mmDL3F8Mo9LnRjr+9kNUlZm1mu\nvfTTK3Yw/dQySMyylhcgsEZvV6i4bASiwFHnRILzw0Osmwn3H0b75M8Ovsas\nhdzSKLjryR1PdPHloBe3Z+w8TTuVa86eMnstCB5QB8etp1uJSvE45Ed9a8+h\nJ/VnGU+TUEy0D3ZsmoKSnMh8TckAq2bNmRKLP9KtlqVYqPYqfkonypuPEHww\nsy8tu4wx34to4Hz1y42RKg+herVQGTm1hQDmJ0NCOlna8jZMZQmL7ClrEfrS\nROE4YpkA2p8GMY0mBLDk3M3pWloIXWthR+x5aKAeCK+icDHsdKc1TH16A1Th\nX3qL7qmLLJERv8XifbxrSzGriig3yPH2nMXrGMx+HZ31btrgNucocAOq94hm\nimiVMA+7n7IBxbTypNEveuyyBEfLBYLxBYF/wnocHCgVVtNHme1kpV0XxpfF\nd0btD6988hnAFW8boOIi9VjqEW0jkKRqRh+0mfNDgmGORlKNJh1el5o4PqCC\nwPwC\r\n=I1L4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCxQg94u8GCbV63ykZ0iIXyFWtpA28uk5yh9cZ2xQlTxgIgcXaLwlJ+8TPtmmX5+1/9qKrW5rdXuLu7NjjSqrL6RbA="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.3.5-unstable.45_1644544396729_0.40617169725281155"},"_hasShrinkwrap":false},"0.3.5-next.46":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.3.5-next.46","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3824cc0e57e146bb70452b93a14141c90704a9a0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an SSI QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only supporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the recipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The possible `accept` value may be:\n\n1. `oidc4vp`\n2. `siop+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2` ( in future )\n\nThe data fields will need to be passed in `SsiQrCodeProps.authenticationRequestOpts.state` : string.\n\n#### Importing the plugin\n\n```\nimport {SsiQrCodeProvider} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  SsiQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```\nplugins: [\n  ...\n  new SsiQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```\nimport { createSsiQrCode } from '../agent';\nimport {QRContent, QRMode, QRType} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```\n    getSsiQrCodeProps(): SsiQrCodeProps {\n    return {\n      accept: AcceptValue.OIDC4VP,\n      mode: QRMode.DID_AUTH_SIOP_V2,\n      authenticationRequestOpts: {\n        redirectUri: 'https://example.com/qrCode/callbacks',\n        requestBy: {\n          type: SIOP.PassBy.VALUE\n        },\n        signatureType: {\n          hexPrivateKey: \"e96d4bf41709c1bf9276ed784b39d6f6ae47e7e4091f849e5ab001452340acf7\",\n          did: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902\",\n          kid: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902#controller\",\n        },\n        registration: {\n          didMethodsSupported: ['did:ethr:'],\n          subjectIdentifiersSupported: SubjectIdentifierType.DID,\n          credentialFormatsSupported: [CredentialFormat.JWT],\n          registrationBy: {\n            type: SIOP.PassBy.VALUE,\n          },\n        },\n        state: \"State 2022-01-31 00\"\n      },\n      onGenerate: (content: QRContent) => {\n        // Example output of onGenerate:\n        // {\n        //   \"nonce\": \"gMWABjAANoQ3LfScAF4HPW\",\n        //   \"state\": \"State 2022-01-31 00\",\n        //   \"qrValue\": \"openid://?response_type=id_token&scope=openid&client_id=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&redirect_uri=https%3A%2F%2Fexample.com%2FqrCode%2Fcallbacks&iss=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&response_mode=post&response_context=rp&nonce=rSwJ_-N_EUO-X7HX3dVAsKe2_jjrxlIMmZakKiTjDdY&state=State%202022-01-31%2000&registration=%7B%22did_methods_supported%22%3A%5B%22did%3Aethr%3A%22%5D%2C%22subject_identifiers_supported%22%3A%22did%22%2C%22credential_formats_supported%22%3A%5B%22jwt%22%5D%7D&request=eyJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIjY29udHJvbGxlciIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ1MDUyODQsImV4cCI6MTY0NDUwNTg4NCwicmVzcG9uc2VfdHlwZSI6ImlkX3Rva2VuIiwic2NvcGUiOiJvcGVuaWQiLCJjbGllbnRfaWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2V4YW1wbGUuY29tL3FyQ29kZS9jYWxsYmFja3MiLCJpc3MiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZXNwb25zZV9tb2RlIjoicG9zdCIsInJlc3BvbnNlX2NvbnRleHQiOiJycCIsIm5vbmNlIjoiclN3Sl8tTl9FVU8tWDdIWDNkVkFzS2UyX2pqcnhsSU1tWmFrS2lUakRkWSIsInN0YXRlIjoiU3RhdGUgMjAyMi0wMS0zMSAwMCIsInJlZ2lzdHJhdGlvbiI6eyJkaWRfbWV0aG9kc19zdXBwb3J0ZWQiOlsiZGlkOmV0aHI6Il0sInN1YmplY3RfaWRlbnRpZmllcnNfc3VwcG9ydGVkIjoiZGlkIiwiY3JlZGVudGlhbF9mb3JtYXRzX3N1cHBvcnRlZCI6WyJqd3QiXX19.Sld1kZvV5NNL592MT16ssVVmNif4MhkxUtsRZcHxxUXWXgae4ilbgK1O_pY1ISi-dtQXES0Lp8pzkVj2w47sPA\"\n        // }\n      },\n      bgColor: 'white',\n      fgColor: 'black',\n      level: 'L',\n      size: 128,\n      title: 'title2021120903',\n    }\n  }\n\n  delegateCreateSsiQRCode = () => {\n    let qrCode = createSsiQrCode(this.getSsiQrCodeProps())\n    return qrCode\n    .then(qrCodeResolved => {\n      return qrCodeResolved\n    });\n  }\n```\n\n#### For rendering add to the view\n\n```\n  <View>\n  //...\n  {\n    this.delegateCreateSsiQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.3.5-next.46","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-8AFBUEyW5FqKBvxmaWOhHNHpRlcasAL4V/+Ma2kX90zP1Mvk850H2ERblJgLmDFzE+zQ2bWRLTL3mhw6uWmybg==","shasum":"62e5a994a5bda2dc00f05a0873d0095f9e43ae1f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.3.5-next.46.tgz","fileCount":23,"unpackedSize":32214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBcIaCRA9TVsSAnZWagAA/2wQAJM2t/HQFyvMy5K3yT9M\nWWriWWrRDKXWCW14CBC+N8vAdFsO4VKp9cgn9/7bVqzLEUZs23oFacR1pwhd\nL1S/O4AVODx26TMHjB0OfSQ+iyG+FqyznkYYEhyXnrc/1zruZUzgMyMYD3xh\nkzgwdmksONW4G6Uu+5w0vtunBTxUAczo3PYx+ww9SqVff3QVlodTLJXOyJ4S\nlZ0LNjp5lFhTPmPcjdf7NlpNi3MeP2MevBuXNVvmJGrPje2gEBwb6ZX4EpFO\nd+9DqhZn1MTHcGDqAKltEJGE61suk2FVKj0lgHDZzf50prG2R0MtM9w721Is\nbaKlhH89nbdfjhT9WnA6lQNH3vHgBmLRh/qVls9D54VuJU7Cq3bT4wOdDKTb\ntNHo1Fj3+ezIge+ojOKKHNackCd68h1lYhmyYOnTI1Iq/gMj0Lj3FbKQPkzY\nc8a1ocSK5Eks42RnKkuQcfws4OqhpMIEZJ6E5QlDZaiwW+KpF0rpR/oF71R/\nE19rSpGu4dRNaXS4yG+XIx2ivLCdnP/37/bUdsqe1k+BXIl0xElsvf7WiS9y\nDPJWnxvF6Yh7WQB9W9PGVxfZPxt/s6IbiX8vYEgodFB/Vh6o0xdBWv8Aiu5W\nNMBXiKoYomeutpjE264xWk4mE5UiLNn3sbk6EN4gUUq7wjHgr+UFrGGSJs9X\n3eHN\r\n=yJxF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5kUXqNFawMx29ri/3AKMuTGMa0VsxrorDWCsdefoTcwIhAMrJ936GipKsA1iXu7ewOffi04bP/ZYdWZTSrSRnLaOh"}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.3.5-next.46_1644544538319_0.8761210145834588"},"_hasShrinkwrap":false},"0.3.5-next.47":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.3.5-next.47","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"11ebcfc037be76f2cc4113fe2dbd0247bc4bc9af","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an SSI QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only supporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the recipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The possible `accept` value may be:\n\n1. `oidc4vp`\n2. `siop+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2` ( in future )\n\nThe data fields will need to be passed in `SsiQrCodeProps.authenticationRequestOpts.state` : string.\n\n#### Importing the plugin\n\n```\nimport {SsiQrCodeProvider} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  SsiQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```\nplugins: [\n  ...\n  new SsiQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```\nimport { createSsiQrCode } from '../agent';\nimport {QRContent, QRMode, QRType} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```\n    getSsiQrCodeProps(): SsiQrCodeProps {\n    return {\n      accept: AcceptValue.OIDC4VP,\n      mode: QRMode.DID_AUTH_SIOP_V2,\n      authenticationRequestOpts: {\n        redirectUri: 'https://example.com/qrCode/callbacks',\n        requestBy: {\n          type: SIOP.PassBy.VALUE\n        },\n        signatureType: {\n          hexPrivateKey: \"e96d4bf41709c1bf9276ed784b39d6f6ae47e7e4091f849e5ab001452340acf7\",\n          did: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902\",\n          kid: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902#controller\",\n        },\n        registration: {\n          didMethodsSupported: ['did:ethr:'],\n          subjectIdentifiersSupported: SubjectIdentifierType.DID,\n          credentialFormatsSupported: [CredentialFormat.JWT],\n          registrationBy: {\n            type: SIOP.PassBy.VALUE,\n          },\n        },\n        state: \"State 2022-01-31 00\"\n      },\n      onGenerate: (content: QRContent) => {\n        // Example output of onGenerate:\n        // {\n        //   \"nonce\": \"gMWABjAANoQ3LfScAF4HPW\",\n        //   \"state\": \"State 2022-01-31 00\",\n        //   \"qrValue\": \"openid://?response_type=id_token&scope=openid&client_id=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&redirect_uri=https%3A%2F%2Fexample.com%2FqrCode%2Fcallbacks&iss=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&response_mode=post&response_context=rp&nonce=rSwJ_-N_EUO-X7HX3dVAsKe2_jjrxlIMmZakKiTjDdY&state=State%202022-01-31%2000&registration=%7B%22did_methods_supported%22%3A%5B%22did%3Aethr%3A%22%5D%2C%22subject_identifiers_supported%22%3A%22did%22%2C%22credential_formats_supported%22%3A%5B%22jwt%22%5D%7D&request=eyJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIjY29udHJvbGxlciIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ1MDUyODQsImV4cCI6MTY0NDUwNTg4NCwicmVzcG9uc2VfdHlwZSI6ImlkX3Rva2VuIiwic2NvcGUiOiJvcGVuaWQiLCJjbGllbnRfaWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2V4YW1wbGUuY29tL3FyQ29kZS9jYWxsYmFja3MiLCJpc3MiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZXNwb25zZV9tb2RlIjoicG9zdCIsInJlc3BvbnNlX2NvbnRleHQiOiJycCIsIm5vbmNlIjoiclN3Sl8tTl9FVU8tWDdIWDNkVkFzS2UyX2pqcnhsSU1tWmFrS2lUakRkWSIsInN0YXRlIjoiU3RhdGUgMjAyMi0wMS0zMSAwMCIsInJlZ2lzdHJhdGlvbiI6eyJkaWRfbWV0aG9kc19zdXBwb3J0ZWQiOlsiZGlkOmV0aHI6Il0sInN1YmplY3RfaWRlbnRpZmllcnNfc3VwcG9ydGVkIjoiZGlkIiwiY3JlZGVudGlhbF9mb3JtYXRzX3N1cHBvcnRlZCI6WyJqd3QiXX19.Sld1kZvV5NNL592MT16ssVVmNif4MhkxUtsRZcHxxUXWXgae4ilbgK1O_pY1ISi-dtQXES0Lp8pzkVj2w47sPA\"\n        // }\n      },\n      bgColor: 'white',\n      fgColor: 'black',\n      level: 'L',\n      size: 128,\n      title: 'title2021120903',\n    }\n  }\n\n  delegateCreateSsiQRCode = () => {\n    let qrCode = createSsiQrCode(this.getSsiQrCodeProps())\n    return qrCode\n    .then(qrCodeResolved => {\n      return qrCodeResolved\n    });\n  }\n```\n\n#### For rendering add to the view\n\n```\n  <View>\n  //...\n  {\n    this.delegateCreateSsiQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.3.5-next.47","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-PssAuRc2UhRJ4y1uU+eLEvlRMXTQDFvWvRgwWHwnm/j8CGSdcCJJuEuQkysZyHGHiQVLAmDpR5nirOM5fAoOSg==","shasum":"b794c05c4f947cae84034daae5030876e10dd990","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.3.5-next.47.tgz","fileCount":23,"unpackedSize":32214,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBcURCRA9TVsSAnZWagAAYIEQAIccB1ynjKIGY1IMcETN\nfyu4GnKCyjxlgz0pQTFG5AB1NAZeHdxD9VWvDzCtZdvsZHK22RKAskH+k0tv\nGcZBE7hcgLcBRcMjyBYoj0WEklmrSOC6ASlrWdkV7EIvdFWb3IYBmefWn+lY\nLT9T1fyXHkMm8Ng1+clT19sFQth+Titc3afLoC1yWR31ZQ7yeclsUdiMrMcf\n511w01ecL7o9k7U+U3050UGNkzQ674Yxl8v/X27ji+TR9nJx21q2RY/GU6R0\nt5zwzDlFfdy7XuWuxKH/DCrPaNlKyvrf3H4n7NOS0J7ROua8Of8qO+OE3gha\npS9rkFHxBbgfzXy6UIT/jYCv8tq/6H+8pr4iZBtdOWQNxRSqrqaHRyNPGmVk\niPJCZomHdfjRMqLTEwgaRffwqPhvuyEzv8FxqkI0DuEwODkDrRVbFmkJoSMK\nn2gqTadO3y7fkIp6KgQRYLezmRte7gvlTnA/wadnNWYf7X9fX8k9/gmlKLrc\nZxytprGuJGsbil1Jpe7cGIGmIfJo1OM384ixyFwA29pxzMWQpMnGwHlKFC57\n8+JNBwIHW1Rnf2JcpH81AspeTfweksT49v61LuCzwPIyPy/PFQJDTtt2b4JH\nlns1tAVLgNZaqYv2GCkx9OfHNr+iqQN9S03RIG+C5E4YaYSlxDfzuj13wNrI\nfCSW\r\n=stFR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrM4LLALSNnHFCpSQhd5rLbNO3ZoFRjFC9MCcol59W/wIgGJvtW5fp15j3BK715VXVTmQvPT1ZvVSI4UMeCkLP79Q="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.3.5-next.47_1644545297254_0.6857996612675639"},"_hasShrinkwrap":false},"0.4.0":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.0","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"8dff4d7ba94349a52332e9f6c4bdf23a95117e63","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.0","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-/Wyuxoo+qCUyzCmcT+bBKYvS1yhOWzGJdBt+Olu0ymH8zIV/G9HzBHOgrFGlqJbk/lCDvjEMef1s6Wq+jxlGtg==","shasum":"b6a07074ca082f47aef1be180b33a1489d072763","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.0.tgz","fileCount":23,"unpackedSize":32198,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiBcnDCRA9TVsSAnZWagAAkk0P+wTahW6M6TBXF8Z2aboi\nnH3Xu8fCDqPzOO/tFvR3+jII48MMo7rJjOJhPPwY9+eHFGH3AbDB6Hvl0qD7\nwN3r+5e8fdfIgC4scJvwB+56AFTz69EAdHr4u7GFc6MAQzkt2upHvhvV1n2S\nKbat1iQaigW07YJ7BqeiPbRHcavqsjMIazsf1lMd/Xj86ivXREvbOegvfCT9\n4DtEMh17zxT+RYpjArITvlKBxMRwIPTzw+PbXN3jTHp4/e1lpgiUc8E9QPkN\nokc4DzmObyaNosQOtK9WXBTGnOEqQ3wYe1iOOTfdcGmi2Y0A0iUpMc8sxGtU\n1cdcwNHiPuVHdFayZrFfqcqVKO+f6EpRdxk80R6ZfHWBF8xYHAbobZ2J63v+\n6/+O1QVxvfz0l+sX2l2ZeT1or9Q4oCR78LNwM44Xen5r04jiKgxf3PCLWHOR\nibgafFid4tuhMO5qZYBB7xZFvvD8y5aGbJomNi7qwTKie86YSrk0kQEMw4qJ\nbOCulqQHZX200iQ8jdZ88guk2QfJyC0XnZ7O7Oydce2cVxzhY26zMOf4lXGY\nfl2KtL0hrEFv+HGyLxMeDvmXJBjOe4G38+kchUUAH5MglbV8EbKOpEAR/Na0\nBeDYfev1H5e1n4nMRZG2flhR/iMY75pWW54VzN5ECFP3qF/TD/6lFZF0CeWy\n0wZe\r\n=Lwc3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnsrXS8kzAoteeeyM6JmJYzTgiEj/bOF4gXlLa3Gz+tAiBjOHnhYGlislPRXyBxKfYwtscKTcOvSwHx8nTeeVS/BQ=="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.0_1644546499575_0.5797544920483342"},"_hasShrinkwrap":false},"0.4.1-unstable.2":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.1-unstable.2","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"ef8f9f950506712e1ecd0c15e068f39dce872677","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an SSI QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only supporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the recipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The possible `accept` value may be:\n\n1. `oidc4vp`\n2. `siop+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2` ( in future )\n\nThe data fields will need to be passed in `SsiQrCodeProps.authenticationRequestOpts.state` : string.\n\n#### Importing the plugin\n\n```\nimport {SsiQrCodeProvider} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  SsiQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```\nplugins: [\n  ...\n  new SsiQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```\nimport { createSsiQrCode } from '../agent';\nimport {QRContent, QRMode, QRType} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```\n    getSsiQrCodeProps(): SsiQrCodeProps {\n    return {\n      accept: AcceptValue.OIDC4VP,\n      mode: QRMode.DID_AUTH_SIOP_V2,\n      authenticationRequestOpts: {\n        redirectUri: 'https://example.com/qrCode/callbacks',\n        requestBy: {\n          type: SIOP.PassBy.VALUE\n        },\n        signatureType: {\n          hexPrivateKey: \"e96d4bf41709c1bf9276ed784b39d6f6ae47e7e4091f849e5ab001452340acf7\",\n          did: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902\",\n          kid: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902#controller\",\n        },\n        registration: {\n          didMethodsSupported: ['did:ethr:'],\n          subjectIdentifiersSupported: SubjectIdentifierType.DID,\n          credentialFormatsSupported: [CredentialFormat.JWT],\n          registrationBy: {\n            type: SIOP.PassBy.VALUE,\n          },\n        },\n        state: \"State 2022-01-31 00\"\n      },\n      onGenerate: (content: QRContent) => {\n        // Example output of onGenerate:\n        // {\n        //   \"nonce\": \"gMWABjAANoQ3LfScAF4HPW\",\n        //   \"state\": \"State 2022-01-31 00\",\n        //   \"qrValue\": \"openid://?response_type=id_token&scope=openid&client_id=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&redirect_uri=https%3A%2F%2Fexample.com%2FqrCode%2Fcallbacks&iss=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&response_mode=post&response_context=rp&nonce=rSwJ_-N_EUO-X7HX3dVAsKe2_jjrxlIMmZakKiTjDdY&state=State%202022-01-31%2000&registration=%7B%22did_methods_supported%22%3A%5B%22did%3Aethr%3A%22%5D%2C%22subject_identifiers_supported%22%3A%22did%22%2C%22credential_formats_supported%22%3A%5B%22jwt%22%5D%7D&request=eyJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIjY29udHJvbGxlciIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ1MDUyODQsImV4cCI6MTY0NDUwNTg4NCwicmVzcG9uc2VfdHlwZSI6ImlkX3Rva2VuIiwic2NvcGUiOiJvcGVuaWQiLCJjbGllbnRfaWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2V4YW1wbGUuY29tL3FyQ29kZS9jYWxsYmFja3MiLCJpc3MiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZXNwb25zZV9tb2RlIjoicG9zdCIsInJlc3BvbnNlX2NvbnRleHQiOiJycCIsIm5vbmNlIjoiclN3Sl8tTl9FVU8tWDdIWDNkVkFzS2UyX2pqcnhsSU1tWmFrS2lUakRkWSIsInN0YXRlIjoiU3RhdGUgMjAyMi0wMS0zMSAwMCIsInJlZ2lzdHJhdGlvbiI6eyJkaWRfbWV0aG9kc19zdXBwb3J0ZWQiOlsiZGlkOmV0aHI6Il0sInN1YmplY3RfaWRlbnRpZmllcnNfc3VwcG9ydGVkIjoiZGlkIiwiY3JlZGVudGlhbF9mb3JtYXRzX3N1cHBvcnRlZCI6WyJqd3QiXX19.Sld1kZvV5NNL592MT16ssVVmNif4MhkxUtsRZcHxxUXWXgae4ilbgK1O_pY1ISi-dtQXES0Lp8pzkVj2w47sPA\"\n        // }\n      },\n      bgColor: 'white',\n      fgColor: 'black',\n      level: 'L',\n      size: 128,\n      title: 'title2021120903',\n    }\n  }\n\n  delegateCreateSsiQRCode = () => {\n    let qrCode = createSsiQrCode(this.getSsiQrCodeProps())\n    return qrCode\n    .then(qrCodeResolved => {\n      return qrCodeResolved\n    });\n  }\n```\n\n#### For rendering add to the view\n\n```\n  <View>\n  //...\n  {\n    this.delegateCreateSsiQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.1-unstable.2","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-Y9/Xmsald/aUVWQy4i7cuSP/2DH4cqgnEIRClaFFxw+X09/2Rnqps3CYjHKc07DmSctvoATCvH0vaPB8NWO3XA==","shasum":"6d7e2f096d86e86795fad561716155ed7c6cd92c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.1-unstable.2.tgz","fileCount":23,"unpackedSize":32217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiEAOHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrFzQ//ftL2dAdp2B3T9miBv45s8TB+wi32N62W9/sOFR1O3q1p8Bsv\r\nZLMsJB5GTiiOPDrRLZ0rZ6w/pFQ6x2+kCzhcxmxO7O2/D3l0U+n/FvoCEush\r\nPWjFj3WV97ORVxulKRJvDKKJFa1bdveWdZiumGOy8Erc6CdBPjwPYvoNQbB3\r\nX5LyRMHshrgvBAuoFFYa/06D97ZUNR1bQjiPBQIbIknJ+7t3ESmr+CKEAGEy\r\n6pNzp1x+nSJ5kJll3JBi9Wft8W/gdcYA+T2Fkb4OyynzGjtu6xooZgGr6qYv\r\nuT3j0nnOGkBpZ9/U4Dq/my4OIqPyZyRHDW6Mf8tQooZebSEPkVZBkwL6jbn5\r\n4SoOSHCJx6HZ1qINqfUQA9pzVe+VyFWVqKScxP00FgicWnYvEPv7/oLdpsR1\r\nALEwA4ittQi0xpvlau0FoCPy29t0O6TEx0RCstEpUaOUClbGhHtap2YF1LDF\r\ndHbeA9RtrHw+Lnmfjj8H0/3Pt+OwfPYcH2VAZdX6MwjTwjMqyKBGYDWpgzE/\r\nVojpBgaYNF/FnMHb6IOIC7L4kWpDLr999d54pcvBQGXK7qaoOg0uttTqDPOY\r\ndwdIfXoaub2anZvJR3Gt0xNuBc+Qs/PVqO8BNPEY/KUHQ9Rq2es1H44h7ZBY\r\nFq5C8Ex7JRdj0AOxPQCFRTUBRqTmHmGWOh4=\r\n=alXT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD96UxuEv4jqCfnNpW+F/6QVWLW2D5KT56jplSb512VkQIhAJqxy8rhAqadMu12vIzXHI98vMbEQ3KA90y8DI4u4PsA"}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.1-unstable.2_1645216646850_0.43489541304990453"},"_hasShrinkwrap":false},"0.4.1-unstable.3":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.1-unstable.3","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d3d60760532a7d5045e6fe0f40e203fd19ffd34a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an SSI QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only supporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the recipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The possible `accept` value may be:\n\n1. `oidc4vp`\n2. `siop+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2` ( in future )\n\nThe data fields will need to be passed in `SsiQrCodeProps.authenticationRequestOpts.state` : string.\n\n#### Importing the plugin\n\n```\nimport {SsiQrCodeProvider} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  SsiQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```\nplugins: [\n  ...\n  new SsiQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```\nimport { createSsiQrCode } from '../agent';\nimport {QRContent, QRMode, QRType} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```\n    getSsiQrCodeProps(): SsiQrCodeProps {\n    return {\n      accept: AcceptValue.OIDC4VP,\n      mode: QRMode.DID_AUTH_SIOP_V2,\n      authenticationRequestOpts: {\n        redirectUri: 'https://example.com/qrCode/callbacks',\n        requestBy: {\n          type: SIOP.PassBy.VALUE\n        },\n        signatureType: {\n          hexPrivateKey: \"e96d4bf41709c1bf9276ed784b39d6f6ae47e7e4091f849e5ab001452340acf7\",\n          did: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902\",\n          kid: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902#controller\",\n        },\n        registration: {\n          didMethodsSupported: ['did:ethr:'],\n          subjectIdentifiersSupported: SubjectIdentifierType.DID,\n          credentialFormatsSupported: [CredentialFormat.JWT],\n          registrationBy: {\n            type: SIOP.PassBy.VALUE,\n          },\n        },\n        state: \"State 2022-01-31 00\"\n      },\n      onGenerate: (content: QRContent) => {\n        // Example output of onGenerate:\n        // {\n        //   \"nonce\": \"gMWABjAANoQ3LfScAF4HPW\",\n        //   \"state\": \"State 2022-01-31 00\",\n        //   \"qrValue\": \"openid://?response_type=id_token&scope=openid&client_id=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&redirect_uri=https%3A%2F%2Fexample.com%2FqrCode%2Fcallbacks&iss=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&response_mode=post&response_context=rp&nonce=rSwJ_-N_EUO-X7HX3dVAsKe2_jjrxlIMmZakKiTjDdY&state=State%202022-01-31%2000&registration=%7B%22did_methods_supported%22%3A%5B%22did%3Aethr%3A%22%5D%2C%22subject_identifiers_supported%22%3A%22did%22%2C%22credential_formats_supported%22%3A%5B%22jwt%22%5D%7D&request=eyJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIjY29udHJvbGxlciIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ1MDUyODQsImV4cCI6MTY0NDUwNTg4NCwicmVzcG9uc2VfdHlwZSI6ImlkX3Rva2VuIiwic2NvcGUiOiJvcGVuaWQiLCJjbGllbnRfaWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2V4YW1wbGUuY29tL3FyQ29kZS9jYWxsYmFja3MiLCJpc3MiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZXNwb25zZV9tb2RlIjoicG9zdCIsInJlc3BvbnNlX2NvbnRleHQiOiJycCIsIm5vbmNlIjoiclN3Sl8tTl9FVU8tWDdIWDNkVkFzS2UyX2pqcnhsSU1tWmFrS2lUakRkWSIsInN0YXRlIjoiU3RhdGUgMjAyMi0wMS0zMSAwMCIsInJlZ2lzdHJhdGlvbiI6eyJkaWRfbWV0aG9kc19zdXBwb3J0ZWQiOlsiZGlkOmV0aHI6Il0sInN1YmplY3RfaWRlbnRpZmllcnNfc3VwcG9ydGVkIjoiZGlkIiwiY3JlZGVudGlhbF9mb3JtYXRzX3N1cHBvcnRlZCI6WyJqd3QiXX19.Sld1kZvV5NNL592MT16ssVVmNif4MhkxUtsRZcHxxUXWXgae4ilbgK1O_pY1ISi-dtQXES0Lp8pzkVj2w47sPA\"\n        // }\n      },\n      bgColor: 'white',\n      fgColor: 'black',\n      level: 'L',\n      size: 128,\n      title: 'title2021120903',\n    }\n  }\n\n  delegateCreateSsiQRCode = () => {\n    let qrCode = createSsiQrCode(this.getSsiQrCodeProps())\n    return qrCode\n    .then(qrCodeResolved => {\n      return qrCodeResolved\n    });\n  }\n```\n\n#### For rendering add to the view\n\n```\n  <View>\n  //...\n  {\n    this.delegateCreateSsiQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.1-unstable.3","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-QTEZ6AoMIy1vf/IXTd08ThRqtyoPPuOb7BgvSamX+DqUN2EnnSqd09wfCmoIXWrd8B451cFJr+CGJAr0DFxA9A==","shasum":"0e4c4012f4edf3f2bd3c00588c3e1d420eed1ace","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.1-unstable.3.tgz","fileCount":23,"unpackedSize":32217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiE9/pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+yw//Q4HEz/Vvfq/5X7KaY0/h766w3MF9rPMKXlV3gl1WTs1ZGiQM\r\n0XD49izlg6xubF7Dta4e05kb/j0wCHK5G/DhD/ZPYPlxJKILFp1b3aK8LYSP\r\nzvsc1eRS7plx4TfzLr64mKhVRvwvjsZWV6AP5Oxp7JBIcNkjz9xHIzPZFZnp\r\nseIchxpj2xSfKempOKr0FZLDjVlUVtJlyLWiyg2JCHqvq2c6x8vGAp+IOBW9\r\nNvxlbOif/xBT2kUZr2tKq+WWSorPI4W3d4ahAvJU8JZVylN0XsPytA/xigqo\r\n8qTCYJEM87VXYUJqFpItjXj5yrgMHitfYfc/cmbVLtMv22QDVirgJbNcXUUJ\r\nO+Oqxtch11WXbyHRo/Guj/v+e5+jTbpuaQuXnYtvs+YAjzB62v4DwWji2AsD\r\n9X2MLlsnF8Qgz3+T2eGdTeKNPB/maZbyEI7edwt8+OsxF0SGdfBd3le3U5xv\r\nd8UaKlcnPOwfHVQ1yASQOEWLrAuvIq3MjdUOqd9ilVk+OKyK3utn5j1J8rg2\r\nLpdFId6yHaT0g1FCd68OZRxjd5DaTXdhzjPZrUswbLuCSCcsQx/oV2i/LFLo\r\npqwRzVQ6vAdvIYl3lcjTCNIbtYh2YklNXHmmB8P/zOobO6/PLCCf66EKMdll\r\nt69Eg26UpAwDSk1KRheBsSLoGvAEXCuDk4Q=\r\n=wfJi\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC76tu4kWDrEA6KGbWC7/jeZk4llRgzhViGG+aLOUL9OQIhAPO2mx7TVuQmhQ7C0Cb/0y7IvM8ymvZlcQjMxXMUQJ8j"}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.1-unstable.3_1645469673641_0.3404934176027663"},"_hasShrinkwrap":false},"0.4.1-unstable.4":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.1-unstable.4","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@sphereon/did-auth-siop":"^0.2.7","@veramo/core":"3.1.1-next.26","cross-fetch":"^3.1.5","react":"^17.0.2","react-qr-code":"^2.0.3","short-uuid":"^4.2.0"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"7d84e5368fbf7aa395dbc6b85fed0bdf6da3034f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an SSI QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only supporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the recipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The possible `accept` value may be:\n\n1. `oidc4vp`\n2. `siop+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2` ( in future )\n\nThe data fields will need to be passed in `SsiQrCodeProps.authenticationRequestOpts.state` : string.\n\n#### Importing the plugin\n\n```\nimport {SsiQrCodeProvider} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  SsiQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```\nplugins: [\n  ...\n  new SsiQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```\nimport { createSsiQrCode } from '../agent';\nimport {QRContent, QRMode, QRType} from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```\n    getSsiQrCodeProps(): SsiQrCodeProps {\n    return {\n      accept: AcceptValue.OIDC4VP,\n      mode: QRMode.DID_AUTH_SIOP_V2,\n      authenticationRequestOpts: {\n        redirectUri: 'https://example.com/qrCode/callbacks',\n        requestBy: {\n          type: SIOP.PassBy.VALUE\n        },\n        signatureType: {\n          hexPrivateKey: \"e96d4bf41709c1bf9276ed784b39d6f6ae47e7e4091f849e5ab001452340acf7\",\n          did: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902\",\n          kid: \"did:ethr:0x93e73FACcc011a8209B35d8c7950670B1a7bd902#controller\",\n        },\n        registration: {\n          didMethodsSupported: ['did:ethr:'],\n          subjectIdentifiersSupported: SubjectIdentifierType.DID,\n          credentialFormatsSupported: [CredentialFormat.JWT],\n          registrationBy: {\n            type: SIOP.PassBy.VALUE,\n          },\n        },\n        state: \"State 2022-01-31 00\"\n      },\n      onGenerate: (content: QRContent) => {\n        // Example output of onGenerate:\n        // {\n        //   \"nonce\": \"gMWABjAANoQ3LfScAF4HPW\",\n        //   \"state\": \"State 2022-01-31 00\",\n        //   \"qrValue\": \"openid://?response_type=id_token&scope=openid&client_id=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&redirect_uri=https%3A%2F%2Fexample.com%2FqrCode%2Fcallbacks&iss=did%3Aethr%3A0x93e73FACcc011a8209B35d8c7950670B1a7bd902&response_mode=post&response_context=rp&nonce=rSwJ_-N_EUO-X7HX3dVAsKe2_jjrxlIMmZakKiTjDdY&state=State%202022-01-31%2000&registration=%7B%22did_methods_supported%22%3A%5B%22did%3Aethr%3A%22%5D%2C%22subject_identifiers_supported%22%3A%22did%22%2C%22credential_formats_supported%22%3A%5B%22jwt%22%5D%7D&request=eyJhbGciOiJFUzI1NksiLCJraWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIjY29udHJvbGxlciIsInR5cCI6IkpXVCJ9.eyJpYXQiOjE2NDQ1MDUyODQsImV4cCI6MTY0NDUwNTg4NCwicmVzcG9uc2VfdHlwZSI6ImlkX3Rva2VuIiwic2NvcGUiOiJvcGVuaWQiLCJjbGllbnRfaWQiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZWRpcmVjdF91cmkiOiJodHRwczovL2V4YW1wbGUuY29tL3FyQ29kZS9jYWxsYmFja3MiLCJpc3MiOiJkaWQ6ZXRocjoweDkzZTczRkFDY2MwMTFhODIwOUIzNWQ4Yzc5NTA2NzBCMWE3YmQ5MDIiLCJyZXNwb25zZV9tb2RlIjoicG9zdCIsInJlc3BvbnNlX2NvbnRleHQiOiJycCIsIm5vbmNlIjoiclN3Sl8tTl9FVU8tWDdIWDNkVkFzS2UyX2pqcnhsSU1tWmFrS2lUakRkWSIsInN0YXRlIjoiU3RhdGUgMjAyMi0wMS0zMSAwMCIsInJlZ2lzdHJhdGlvbiI6eyJkaWRfbWV0aG9kc19zdXBwb3J0ZWQiOlsiZGlkOmV0aHI6Il0sInN1YmplY3RfaWRlbnRpZmllcnNfc3VwcG9ydGVkIjoiZGlkIiwiY3JlZGVudGlhbF9mb3JtYXRzX3N1cHBvcnRlZCI6WyJqd3QiXX19.Sld1kZvV5NNL592MT16ssVVmNif4MhkxUtsRZcHxxUXWXgae4ilbgK1O_pY1ISi-dtQXES0Lp8pzkVj2w47sPA\"\n        // }\n      },\n      bgColor: 'white',\n      fgColor: 'black',\n      level: 'L',\n      size: 128,\n      title: 'title2021120903',\n    }\n  }\n\n  delegateCreateSsiQRCode = () => {\n    let qrCode = createSsiQrCode(this.getSsiQrCodeProps())\n    return qrCode\n    .then(qrCodeResolved => {\n      return qrCodeResolved\n    });\n  }\n```\n\n#### For rendering add to the view\n\n```\n  <View>\n  //...\n  {\n    this.delegateCreateSsiQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.1-unstable.4","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-P5Qoo0+MNQXM5TlxqiUYXnjL0/ZqqK7V7RsTtwI2pfIy1HTQWBLGKZSofpbqN8IMN4I99iFApNeg46jphsM1PA==","shasum":"2f9224a297fd1e07faa4370e6d0e7af92506abfe","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.1-unstable.4.tgz","fileCount":23,"unpackedSize":32217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFRwsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqTBg//SUF0TMz65vr/dz9vEaEKKREvKEuodK4PbGRLMWmQAmMSeX9M\r\nO5pcFoXRQVNu3+C0BJQiF4oqCpq1fdQD4AEVy5bTxOLPdE5NYWjzu6LBaDm3\r\nG3APRWDximTi0KFmoKnzTsOMqk7DU0hSwAGDVHDMIFBrqOg1jur/nwgOR1oz\r\nquvMUcp3qLV+CGOO58uMueQR2QL07FEiyBIsry1YGGQYQYN8SgwQwJhN/2V8\r\n4aoQ0JU/3wbFA8rTy3sHnNogc9hjH+pt/SPkLcYacr8J6I9B4NY4xILqZqg6\r\ng/H7MEebExfXKeKcklIYIvpHUY7o1jogt7+rPLYQ5HG9u7v0hj+IS5IZm9HB\r\n6VMtD2R7S5GKa4CO2JU/XT97/FBH21m5PBqgkzDwGHai+NwS0vSK6sZrF/vm\r\nVivynhiVQ3pPsot0dX/LNcC/zq7RsAmRzGfUaaVQzXIJI9/ZkuIQtzY3S760\r\nkw+WeFEd//BK3ude6Y+znN4FLyEalAnOca4vhq+GsE6jUVdvIfzm/p/0iX7Z\r\nbbvqLu1ehWBfNoKAP0gcfUv+q9pIzHtyfXXtqoKXDpJqhdP43JFnnGZXFYYV\r\nfMHUron55/P9Wk9Tmd8InO0eB8/zYiHgFYkU1lmWdzF0DdiDtwCv3Wm3jk+m\r\n4J3Kx3naINW+w1hKp9VDhe2OtgzF7glnDvc=\r\n=37dG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdRsAzEXlqL5u4PtFxQtiSNB6LsXZuAk89801JcvG2vwIgfrYtljgxU0Xwb9XUcrNrAKddmT3n7GImYrxN9NJ3/lo="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.1-unstable.4_1645550636827_0.25138813431273"},"_hasShrinkwrap":false},"0.4.1-unstable.5":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.1-unstable.5","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f95ef218b2770298adedbb484ad0d91267630777","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent';\nimport { QRContent, QRType } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\n      \"siopv2+oidc4vp\"\n    ]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19 \n```\n\n#### For rendering add to the view\n\n```jsx\n  <View>\n  //...\n  {\n    this.delegateCreateOobQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.1-unstable.5","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-SLhLDh8EalIgfRCiLsrXQN4MrofTFqMCYlVTaiWAbadlcMvCJLyhpLYmxEwWZvig9i8kvPA8AvsMAsd4W56yXw==","shasum":"1daa3c00325517d198f6fc2f65581e33429a751b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.1-unstable.5.tgz","fileCount":23,"unpackedSize":32036,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFjxqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2FRAAlX1SY+CtJzPuYfsAEiLWeRAMMV+5ZMrpt8+3rS8+xq0IaKJY\r\nlBAUSVxHX51U06voQEbyY13OFlCBApc95faQDowQ0LudbNrY5Tn9stcDTj3/\r\nm27Ra0hn5j2U6boIQNcssA1c4grWkUwMF5uFTgXx2k36gDewmvW5jC7Vb3oA\r\nbEfpQ9wjY9VxSPDt6hbrGZeGkfiI2iuUmbp463LS45CmsyLWltQoY7z53PCe\r\nMgoQBk9ttET0a21neNqZ6mxQQ6GyHDox3IMsqt37zR5BTDW3oMtnnWdJYJGq\r\nNl82NWBmn4w8RTx/RnpbYnOC0kP7dQweL1jyAyHfWOziFoatnaEvt85Pj8p5\r\n6tZjsnm6M0oTlHw7/pJ8G/BeLc0I477GAbMfctP5rKtczaSL2GYXQmm1dWxy\r\nRSYRcZD/PSBsefPwTIiolDcx9T1tUDWe+YOwCKcD1OO1pa7juD4APtP0Mvem\r\nubXQFy5SAyopr8OjtLmuLd5KS6VWRI3zqPXcwy3430qGbl8OIfT8vYEy6Rm+\r\nV5/zr7k/tfy1INZJBXCtEgcpqn849cAGmNIicXpNOB28nxhIgnL88QDgT5k6\r\n2LMXr7oRsG+jVPSi5xopnWlsCiZTzhSHLmBTKB+Hqwg03BEurbKlsAFO+ns+\r\n3s8OYEjMn7eXPpHCC93nttPK38sxuPzXyGk=\r\n=gF98\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGmtYMEaLTjVxavcy66VSlj2XCNygTOO2M6AdnW3e+/DAiEA3snb4c10DiyxMdXAc3AmYe/cmohBLdhzMX8HluWSreE="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.1-unstable.5_1645624426356_0.07357380788746792"},"_hasShrinkwrap":false},"0.4.1-next.6":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.1-next.6","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9a32aaac5d6abac161c9b6bedb3defc1c386040a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent';\nimport { QRContent, QRType } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\n      \"siopv2+oidc4vp\"\n    ]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19 \n```\n\n#### For rendering add to the view\n\n```jsx\n  <View>\n  //...\n  {\n    this.delegateCreateOobQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.1-next.6","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-bYigRLxFCT3TLwAOWRc0vA3WY9CZichvGtcubfKlkrxppftcFvCOSDBgNQ2AI6hrM8x83tTBlYRekxM6NOkZCA==","shasum":"d272314987e4f19f8bae93c884c6218a815d9bd3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.1-next.6.tgz","fileCount":23,"unpackedSize":32032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFj12ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpSvhAAhAesutDlQ6uofjmeSSkgf980Sp509K4Lp9lWVAg3j7EUTRi8\r\njLpUqANIT+rFQ6rb9IwVEKALDPr6/1a9uJkHo5vNQkxfTYbP//MCMsiJRxt/\r\noRgCyOsbXFhxUHuc39cVbX1VyXxUqWdY1aWZc3n+xeQPo1+ytb0SNA/UwxuI\r\n8vDIBcPl9v/eoIMmhIjScsAo4dUoKQYqemjG3wJGKvnQYfRvwMm1LFJ64thq\r\nLJfgQuinPn2mTWOrgwahwQhSmUtQptJ45cey3nQobplffKGkzWuDYTcw0F98\r\n+UUiTESZ+Fnj06pcBvwpbm76EJlU8VmeaNaCW73Rxo3lafMlLtw436a+IcXy\r\njmXAAONcD7rKVCjJC9FQfYudf77rzHj6bFg3OaKRd+xuwehESlXMWEH5EwiJ\r\nuwOKWTv7U6pT5tmwxY/XcT4o783hXLTb4/tn8W0Sm0J1NStO66xSIIIvpdgc\r\nxF0yjVptfF9PtnXzkSqpZICKHzem7qrL5sOAlYq9c1SkTuyjaScvRef5i4pC\r\nibc4nGXmYNDHSXW8PSzFQDB6njklXCcI8RDpfj40UZGeUxEp3bJwpybhbcBS\r\noSgQilkDCXEqhO+9x8PMgaGHWSg5teEA5V6QWOcvEjLPyA8RqBPeJXv3Azgt\r\nEIxZXH7JFHXVgrvdpg8g08dAuk7dkeCid9U=\r\n=m3YG\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAZxenm3svs4zYIb/gzY4efqmBVf9cRLe4G+ZNcILaT4AiEAuH8DxmYRJOQTJREgRkPkfmZ/BrMx2sUCjwJEtBeGhzM="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.1-next.6_1645624694775_0.2738634852896338"},"_hasShrinkwrap":false},"0.4.1-next.7":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.4.1-next.7","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"67ee65a82f6667ff9c94494d35f547040dd0a569","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent';\nimport { QRContent, QRType } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\n      \"siopv2+oidc4vp\"\n    ]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19 \n```\n\n#### For rendering add to the view\n\n```jsx\n  <View>\n  //...\n  {\n    this.delegateCreateOobQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.4.1-next.7","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-lXNJXpoKHEvVW+fvQSKtJ9iIj4YERKXGZ2Ojk+n/bHzJAXVgbQIuymbh7d17jpZhZI1O4YrnM7S01gzFphxUVw==","shasum":"8d881c2dc8591c50f180cdab79de66bb9bb9ece1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.4.1-next.7.tgz","fileCount":23,"unpackedSize":32032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFlwuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq3GQ//SynouJ5xzd6wySIaNKUu1296C0vjbX7/pZqW3Mj/8GXKQRvy\r\nxZ+3T8WuzaFQGGIx7pIJKgaV8Ehd4NYri/4sJETCDEc58ekElUPP7J//mZNa\r\nB72GnFT6+KCyKVtuo4aXOGHunnKVLpEwCL9oHaN126XDiUEjCHcDUF4lhpsC\r\nd6cpzhynHj+CXR1gqIdSX15q0kMndRDJF2ScGO0hLgIgMGUUUAf+obMhibmf\r\nfKLokynXh7LNgdGuisc6IU+IYAIOj6BwhNRbHCkZeuvUK7R1aJpQnmVVy1Wa\r\nRY69dRXQS06Pl2NDIFxBkeFhc+2rG0h/R102sLGxBVBK1K4aeu8SLSsTIreJ\r\n2JHna/vRt2JvLhqB5pdsiNLPGMRRTtrIxhxtFrQPix7REEU0pr6GgOd3ulK2\r\n7aDYHlmJNJdgeHxuJCAZr5XyZK3vReaUDfBw72c4F+CYs8SybDtdSQSg71Gy\r\n8/r1TINiAZiU8tMvfjrTrvSbQFNylmnHws7dNWXQayf83KKcCzC1+cWplsrJ\r\nDZWHbuJlNzvElB4oaFmeStN/hbCEYIWYETkNfvGIn09BV+ul48WsAqcce9no\r\niNfQ+Iw4XaTGHyOgegSa9oHsOewxSVzA/heClZTm2SgwzPqM8u+tkxTKL60z\r\ntkn++r0YhYfxTFhqZDAaZ571jOhMG+EaNWE=\r\n=szSH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDhlWf8crCaBhhUMAUvwT3gEi2K47JFjZIr4hnO8HTSsAiB0EhaKXsVQpjML2osx78ooDMtqCMxTJuhZ9NgLQShrYg=="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.4.1-next.7_1645632558065_0.8000347647669197"},"_hasShrinkwrap":false},"0.5.0":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.0","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d99ef3d99ada5126c923be65dde3704fbfe34a48","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.0","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-vdCXloI7ekmt8+aZdPvRAp5O0H+bqdmp/s/wJlfbUwixQetjl91UkOcYh1+wF5LptopcEk5h2+yAdDQ19I9ezg==","shasum":"e7df40c348e55b954ff3f4118f225d9a686f8e79","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.0.tgz","fileCount":23,"unpackedSize":32017,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFl57ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqJ6g/+PBI7a4zqN1I8amW117bDR8yEuEe/mLATO1RA4fBpex1TLTlW\r\njyVbdxCxODD9X7ENTZsIgpfil98UlxjvZMpiU5EWjBmPEte66Y4RvJIPYS9Y\r\nQ98IwI0Z6Z83YPcTX+AcvGpxqI8Qe8pyG1lGO1oi5uW1WgcrkCvwepcGTr1r\r\nMkJwFmyzqMeixhzSPnoukrm8in1BzUyOtLKm9ALGN/gmZpBWYE9lJOmilMma\r\nJnL8ITThEs6yDzheetdqmlB1h8dsX+Uj87zKICcl+3XTRpKxiQAU4kdA1dK4\r\nLlFRsN8ztUyAqe0pGPMUHvoKYxpGDFVoj5jH+Oqa4CyP2Vg4Rg40McAUA1mF\r\n6gwsOCyew7v0pR5pdB+qh29RJmeoPGg//snhH92oJzUk6Sd4iiNf7HO6XEm9\r\novrMCLVPaQ/8p1uu4ZTtqiNA6spQCFpqwoPVsWxSNl66+A+kiX1SpxsvmJPn\r\nmuhXvsugnmTw6oiZviAagwgXfAbuxw4kemAxE/NXesPFqQqXMWV0ePVMLwRK\r\nCWAno3L1Nwzkuk8vabYX2SToSEZj86kser6xizKFMevZR4JjYiEI1F6lqOya\r\nAWqaMT8wEGs50FsTkCHOivEEl7yRhnAW5UD+kLCYqCDwWkLMQ86YDQZjhOBm\r\nqMMjQs3bVh5buN9Z+74XByJlsVcDlP/LLpY=\r\n=DSS+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFwra4G/Nsv13Nx1V8IeJYcvMYnhn646M1snof4JX2y4AiB/WDNVZCZdepfb8nsCiPimsr/xQPNUbLJuwNN8d8LXLg=="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.0_1645633147337_0.49343960950261256"},"_hasShrinkwrap":false},"0.5.1-next.1":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.1-next.1","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"42c1dc57779a04c02504a9120089253f71698c9b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent';\nimport { QRContent, QRType } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\n      \"siopv2+oidc4vp\"\n    ]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19 \n```\n\n#### For rendering add to the view\n\n```jsx\n  <View>\n  //...\n  {\n    this.delegateCreateOobQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.1-next.1","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-UTopmoXaJEU/qy5btsMvkOWxFf0/8rKImJx5zH4agUUBrX/siG86M3MeKINbLM30jXIgQ672ZZQzMnId9flNqQ==","shasum":"ec826e335575782fc7088deccf4b3eec9e31f23f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.1-next.1.tgz","fileCount":23,"unpackedSize":32032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiFnoMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrRew//e2zXV27eWhwpwlO37WvEa9R92tNFrrhPnCAXqLU8r8dADj2/\r\nHI3kBFkDtyXQJBzGS4SAPTrhLs0UUszKUXlqJy5qeA2N0nyZzlXlhnodrGav\r\n1eMD8+3oleG6uJ/454pO0s3N2IlTVJnjMifQcmYZ2mf2W4py6jQ5b80dzNZI\r\nw4lR9gOF+l25F9pvx9aWAz9uVCuXTgISy+vnPoXrh0eM6wlMjJuTo5V4+0nF\r\ncfSuN1iVcVPMBy7R9yZmsCHv+bfh3NnXy4CCl38BLEsXMsOzSGkJ9HoV2Vfs\r\n/fMmWVECuCHD7o/QLXN0wnL+X1/00UJNhieoyi2STQ0IpsL4zPw3/p/PNgvG\r\nnmLNVhIR75Ekn26XEa9bA/Gwmdvq2pjdkG5AFmw4DNktGcloFRL1LuICjRvT\r\nyinoZxuihUbBejh0ihu4yZMQWK2L5fMhYKmN88jm06KoSkxwQmXKc6Q+rt5d\r\n5dNAVf1dwYjAyVOL/5avjl20errOosGhAe1aJQCcvxy2Kr/GWl8JKWcxDaq+\r\nu5YPuUKZpXU+hddFpDU77OIwayKE6KEbFrxxrxLXm+QLiVC7muGbc166JA+f\r\nSHBpd1ZzWuaHyl/MYfp50xXOmJhWQckA0neUbOhzRPVdj+bAdDlbgYCwLK/V\r\nVBbtQy6OtCA1OFWRoNVaoy6Euqz0fPLUnN8=\r\n=KoyM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzVFOO/3HgXauQ5JqPWaAzs/J0HCTkawDtdnBShLbcOQIgL550z0ek9pPl5vJie1R5zcyqtO0LbSSKNwCT2HRBx1Y="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.1-next.1_1645640203899_0.3775419340544446"},"_hasShrinkwrap":false},"0.5.2-next.3":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.3","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3c6f67b95df8e953d7826fa843b90966f28467ff","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent';\nimport { QRContent, QRType } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\n      \"siopv2+oidc4vp\"\n    ]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19 \n```\n\n#### For rendering add to the view\n\n```jsx\n  <View>\n  //...\n  {\n    this.delegateCreateOobQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.3","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-5FrByjTn0fUNvismczEuJRqEzt/w6AWy4E3TnYW60QpKUeuRcKTuzMm2gD0JgwSWagLVok0AW0+Q00ZFzLVepQ==","shasum":"dba538675fbe1a8dfb1fad29390fd5d68627f743","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.3.tgz","fileCount":23,"unpackedSize":32032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGD9hACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5tg//fXsAmjvvzkLEZWX1JgT4DlfzAGKQ6Exxv6cwi/483A3f+ih6\r\nZJ5XVPgNuqDJZtSsRkGagGqga/ikXB5Qux4m9vkCfnSv4CS26ZK/fAqMVtj/\r\ndpqxd/cKz4zMMC6UojDHhur+tioX3lT7MBkhcdJrW9fqi8EAuP4bt9te8tCy\r\nr/qwrSHA7+jJf9335EdVk7KzDRRHzA6lNZOuMqsvlhLs2huY8qmbRiDhjmZb\r\npPdu+/qQHYNRX+J2lZM19Z8Ly/dQwdOrwuDKEd8fAqs9fZXJVm0hVAyam+PG\r\nfSf6WBhsFK4txA5kkj4SoAnXbtyzS6bTPMThZe/4VabaMjIvUNI/kcA5XLcJ\r\nNdOTOolTOq+pxjeYsibR/YkwVEZDXE3zejG14kqREkMuQZ8OmomY160j2LBE\r\na/sVuRukTlJjxOE8aUx24vwnIMMSZ0Xn/Lg+uQ4Tv5gEvUCUvNbG/T/pDBDZ\r\nmxE31WlLrkZnq/6OtjJL1fpCghui91g+EQpz7R2uimcKvR6E7RyC5EOTFvXD\r\nBei7JzaKXW7Zfy2CuCJMLBXDrD8+GGguSNOEx3vNHKRQ2YdK+aA1YnHgXigo\r\nkWoOoJCc0Q5zlCDFR2baWbM3S1/CshHL5HZBcWB7n/fJ5zwxCyxdHaUsVzQG\r\n1teEYv+D19IsgsFw9CTOV2ZT7g83q2+YinA=\r\n=eVpV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDMb61obAdX53UDtJtvC8XGXXdDFWs/arQtCpVsL9DpAQIgMSlZWbj3ygjeW9TnAjRdZtEwBtcSAk+szY5bZVBIJvI="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.3_1645756257571_0.8203951420771372"},"_hasShrinkwrap":false},"0.5.2-next.4":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.4","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"df74ccddcab06a032ca47a033a46bd0268826f72","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode;\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent';\nimport { QRContent, QRType } from \"@sphereon/ssi-sdk-waci-pex-qr-react\";\n\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\n      \"siopv2+oidc4vp\"\n    ]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19 \n```\n\n#### For rendering add to the view\n\n```jsx\n  <View>\n  //...\n  {\n    this.delegateCreateOobQRCode()\n  }\n  </View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.4","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-SNdYLuD2q/zom0nQ3tV/eAL0rit7mk6nYomubGilmiAXxhqk5bHgzhOBj70vOh0akX3Bjb1sCCFCG5+KUWjMQg==","shasum":"6fc8e3ddc42a6df2045ae1ebef9a4e0450672acc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.4.tgz","fileCount":23,"unpackedSize":32032,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGEHwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrvyw/+MfyBY5T7OhTeqT4yUOw3HkcfF8Iz8pIzVjLTksHwouwbl5ki\r\nGjgoYYmUe5QG/9a7snRqo84nF2P9FtQJG1RHE2YZLc46Me8dL4zRZ1ucSNx1\r\nvZRt1UvQVYZl0FXpNu9pDNsHExgvHenN2ojXQ6itTRd6zNETjGCeq65vuJSt\r\n2fJvcagTUu0Nge71gysImAfqzJoIXW0v3rtItAsB7eSTXdOXNbq2Rsr0gF0x\r\nLQ4dOWlCPSoaGjnSsJwcO8YCJLzGRd4R7TJB45oHw8q5MwpKPECxu4RUeUCA\r\nyvjmQtmEuoFrMO0bzUiWL4jcS0rtZUkoO3zC3mjoZgZjK545Wxw6J0+XIoVk\r\nAcnwLjS/5uzZN6DNhfnRUNfkDvheKh5lhFsU1wu2+Q9c2QvYIN74IkNl6bqu\r\n0zxCVOWQnZJQd+NPooe53afgXrP9zITPFjSuYfA8ZgxnsCbCW+508BDXuLrz\r\n9h8YHgGlFad7geGeXfTEegAA5uapErK8ylJjjMrTKI+ysFqIL5tN/DNPsecu\r\n4U0+LOGJl2erufauEy5NmrpAGaKwbn0ez9VjtNZptuFJ8t2Ah+P4+BEEbNhv\r\nCT8gzonGT6PfMmACtY20bfcuJP366kV8v3mjbb9mfdJ+euV6TsbRHT7s2SO1\r\njPzKaMbZAfo96kMMjizGohGtMW5Qc7H+wH4=\r\n=CCiZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDIexQrHNWDURYDHM9BCx9495DyL5qKtD2Ha9dgW3A2mAIgQbV8itAy1zw9re4Km8wIS8qipQi08kRHx77gyYnycRg="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.4_1645756912494_0.9925261251238431"},"_hasShrinkwrap":false},"0.5.2-next.6":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.6","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f1e08f72f2bf5c5e0fc602b9a610f9b01f4a6591","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.6","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-P+ERN7d7mJ4OqAdJU8V2RMO6ZkospHKs5d1vdit4uhv0WsshkPIwRoq6zTkyTOfHOW6NFS/Q4iK4YZ/ZQdkmMA==","shasum":"eecbf49c350a08436575429648a0e30f05ad038f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.6.tgz","fileCount":23,"unpackedSize":32001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGEWnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0Aw/8DRsXCk/kzZ5pl/P9N8QU4O6UtIBhkZC69XsM2yG/8j0vpjXy\r\nVKSz1CpvP9JIqicTw9QxvY6a14m7zG+qMirzNQCCeYhtoQ2jV7lQ8D/38CNQ\r\nyfOlOtr8Rn4sM66TrsU2lGVKdGA8BihvGlUqpCgMid1WSlOuXypT2uUQb7XE\r\ntAnJ/GYF0YMK9VmOgnrD8voY/MLDEq+IyC22s2HzEOB1Mirm9W7GblR9wySt\r\nuZp5yKmhMVw0miVCFdm7JgLo3JRhrUekOHFrICBXRLFZEvJHjnrinFYB8qn2\r\nymu6zD8p6HDk6v/S54aSpvT7jC4dinXRM8zmmDVBhOyVtN623jVoBxCy5VEi\r\n7G1cNtVb+OEWiPSBtIz5mPzcXyh3oZPkPXtE2MyC/S8Ndmnikgi2Sq6VMopS\r\nG5hFyCFoaCTtwIm99cQ+ei8KmysK2pWIAfGTi1BnqeS99nqys9TM5b1hz62S\r\nTKtEimNh+L3jPMT8u7Nmyqy96XEhF7ucK5OEsmUaxGWaU9VMpW68RuzL9Xve\r\nhEbiV20Y5zgskLPyntnOdbznck1lwzC/WVPK8PiTIRAwcyEMGODybo4ma7I0\r\nWXwlauU8fAKU/vsnJfiW8VJ8Qir6UHBjHExwHBdOpEfQ70hFKDez3mZwjFUR\r\nvLkfnM97Epdo/vESse1hCOakViUzuaMNW04=\r\n=tZu/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID9MlVAb/Irkv3M3k//gd5MopjF2pKOOBj6NNtKWCCwwAiEA2GpYHUm0/W0CQZD39JZXOIEtF1YUyVQpL5tC8aSydGU="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.6_1645757862900_0.5302990059514903"},"_hasShrinkwrap":false},"0.5.2-next.7":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.7","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"eebce18bf9cc9d28a8bcdd6886100b7a8921bb2f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.7","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-I+r75fA7vStvAcf+NmdGwPXbAloMIencNJt76aksnayZapRmlPWJHsS7+la9YuXa+TtYLeZSkEyMtiWsZ9P4Vw==","shasum":"dca898809c8069d48b8404515815baa61439a4c9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.7.tgz","fileCount":23,"unpackedSize":32001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGEy5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZdA//Yiel9BilmJRGY2jX7JlW24KQxkI8yRBJmJi/bPAXy2dFWwQi\r\nXFoRfOBzR2Yu3GCacZt39BA9zX9aX1fxgs6Zo0fogDi/53V66YEImtfFApC8\r\nsiLu8LLjJuDh9zD8GSPfK+QUrVP29zF78DdiIcnAJTdHz521msHbxhwMvpoW\r\nFZEJk+bhEWw2WNlr4YTDUw/1b8mJu6jNJm/ED+Ft+s319nwJ5f8SsSq8mCI2\r\nOP8xyQEJHTksXuakf0bXYI3bkr5/9f6b5LbEDPdfgQ3yb1pbqVL3ZkG55q9u\r\nNZ9nbfqCu9BN8gPuHZkqGO5gXPOKc/9sbEbrRaqUz57wKaTWLEoX5ppzYdKA\r\nya/qbLC7lYeOab0QWnnPTBbLEwNv7ebZUfLT4hRBK/LQ5sLmGXF0R/TyG4r8\r\nlsxeLpf4IDe0Ui6HoYmzEfITOHgbLvF/5TN3GnX9SjR2gWPDoQTqdkgQ7PDU\r\nbloHoLFFvmvFDo48tM/JNhwMJLWl4vLT5SrU/Rhhs6imAIfe0Znts/rldjy+\r\n0XHQmqIoPw6EEBudRJx2bVTaoWVFam1O239/oYXpWeh5zsS6HzP2U+AJUWc9\r\nrTa07VvvtEUwEyF5xNM7RM+dnnH1Df47aYTJCIUUhOE041dluuJ4W7GzPaZJ\r\nUgj/Dr08b7iZPPJKawiV6FYm8E1YlWxEgCo=\r\n=QCKQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE79muQ9ZzyIANPblTyEv1KGCPM8V4Hj73+JUsUmmM4pAiEAiNQJ4B591n/R9xf3NFlSSp/8+dCTIFXu+e8U9WTBJO8="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.7_1645759673613_0.588823905630697"},"_hasShrinkwrap":false},"0.5.2-next.8":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.8","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a9f7afc386189ca4851ce967f5abf7db812d1003","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.8","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-qxxTMNXagAVn74UaZNoT7Ekyv+/oaIFCqMTcz2YrCnBEGBYaKMJjoyzHlkmSndnKwTIaMfbbSKm0/9tkZxTXJw==","shasum":"5538a71e776a0ccc66d95a85e0b7766ef22a1fcb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.8.tgz","fileCount":23,"unpackedSize":32001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGE8oACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqlhA//WKvvQSuey5RWwOXAQ2cnd5GXt9eRkKm06L7u0zEgBTeO9WPl\r\n9Ut6NsVi8qsTRRz99uEvNS+o4QEys4GvPkTumRClgTP8G4yVpWvEACiqB11u\r\nX6KY2xy1RJbkBf/QlfO5PBPgmSnkp7pP7tcYg4BnPIib8EoQNXH9lbjaKkkP\r\nvuLffIPwJz1T/TgSAaSaZ5/LG0gK4oYH9QAFI+/gEA5y5YejcUYrCQtkF0Tf\r\ntxZPinbxrCpjG0G5MFHOrJAxXaCh+0J6AvYBqBsgvOKdUhMemBzTfxg/E5st\r\nRAFDjWmDvjaRYf/9mvF9wKPUWEFjKgVUM4TusqaAt70phQ7D2nNikgyyfcZ3\r\nE4piCcfRyRiC2KDyN7SMwptu0JBKvHUGw8plyAOF+nYFWyhrC9xvqcnoPHY4\r\nF9xrxGMZMAka8AR9Z97rDBu8iFzlRWrNdRxPDgBJRtoBde248H/xjpRAabCL\r\n0wjmUHeCYkJBQzqPu7ZkIx/YgjVdPjlY+Geg0vR4NoVII2Ojq62uhMshVyrB\r\nlg3vJQkZgPKAQ5cGITq26PXdMogzbZTaay/g/H8/CweYvZLWUqM5U2rJCEfD\r\nO6qwA79X/xKd2YNsBmWGtJmzwllhJHVeNLcAOobfd0HWTIMpMjputUm8pzHk\r\nFBcvxh5oJB5yTXflQi8w92s41i1P1wv+wDQ=\r\n=GMJL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDfuj2Ky6QbzWnWBRQ2tzHtYtxyqkpb1O/QZz8a1HwuEQIgXtS2Scgau2P6/3rgzKvs3h+0RcMU33OZl6z/nObtxDY="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.8_1645760296525_0.9346437787805622"},"_hasShrinkwrap":false},"0.5.2-next.9":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.9","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9378b451d4907c8d5385f464b27f858547409bb4","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.9","_nodeVersion":"14.19.0","_npmVersion":"lerna/4.0.0/node@v14.19.0+x64 (linux)","dist":{"integrity":"sha512-jBVX4cocwLs/WIK853pxN6gBdwq9wIIZ1WZG0G2cpwBu2aELvjm6w7om8kpX6oPmUokAhCLe3dkbGNlJeLxYEA==","shasum":"fbc848fdba6f67a1986ac791d24a32ad19115ef4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.9.tgz","fileCount":23,"unpackedSize":32001,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiGFqCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrK9A/+OhmcMSflmLVBTWLxm3H44A3QBz7Uz2IZTTE2yqMOmr/Nj8cT\r\nvVwQD5H9vA+V3SYQzLPZ7l511Bl4WUw+cjwpH1KEZ5WeWTVDH5WDiPr9u24v\r\n7Ep4UtqcTHXitF5FITTJtNXDSWBLH7H2+BwxHDqmsWeapyH6n6ebL/9FGt2P\r\n5DC0sP+YRYlsEVg+VFXTM375JrYqtZF/rsxKw1GvQH5gqB9mUxpvpzTz0fC5\r\nFABiUFfAW6tjKpHqq8yvSIp+H27gkQUCSUrC/W7R2LtlWH2flyJL0EAw1bnw\r\nRBiRat+5Vb5iwXxPtLqO/2t6sIsNvegcBR5jY7+OHkYQ0Ev+8Icq6H2dsSMV\r\nfC+gJ6NcFWXe30duBMIznRg1D3vhzXwuFanjnLElMHSB8nhVFUsHxF8FntJ5\r\n8+5+EaNv1yMXzHBt1qyIQgJzYx1rUrUphDuudRmogX7rkz7QiII+9X/DeHjh\r\nRjkZ2+E9EmY2tzHPMcivGKcwGvmNuCUBHWMj/GhQ//KGhC7OkCZqvu1eO0l8\r\nK2m2xgtqpNf+37piaI6Bov8TaoJyl0ECBonOYNYCr0th3Kr91opeAFc4Ypxy\r\n332pGfnS8Z6HbYKkdaD/gqb1b6D+QDnSAv1x16YJBuH/THx0rSh5x+UVdOA1\r\nfzcZk4rSBys9jRCGxOVmxHK2zPmeIKcDULw=\r\n=xcF/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8fSRIX3uv7T2Eoe8GTZIGYdfYbYoebac3xzmFwyQ+NQIgd/QJTu1CNrNaX8S4RRrjOr6SvkyWKCXcHUmBFOJ5vD4="}]},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.9_1645763202208_0.48029080431722804"},"_hasShrinkwrap":false},"0.5.2-next.10":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.10","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.1-next.26","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.1-next.26","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f3c5eea0cf6a020c5885b2c9d6104694ded9d0e5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.10","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-U9eZKF/YjquKg0bPu/KJy8jHFl+t3lkL9K/lvLg9tI4Y2c5tM+1ND+p+SHoDZ0gcxhp6yPv5PsoQPQ+E6Ibk0g==","shasum":"6fd096b01aeaccfa177d023d633761a2faf946fe","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.10.tgz","fileCount":23,"unpackedSize":32002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpP6xTxbmWm2AkApEBejxu6C9193E4SI5ixcUJItH6NQIhAL+C0ei+Pt2qa2ydvKgbFbI5x2S/rJ8o4NzJpnSQU8WC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifPlPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq07g/+KUrs1CSFuC587Ng80YIsq1TXeZT6PpqtWVp1aej9Yt8lJVkd\r\n36sCCPsKdj282EHLhkMoId1sTvcCpIaKWolJqvlduwUsNCMCWffp9woOUqm9\r\nKjZeZxZnRldVoLLVVYlUJlJT8DjeyjXqT9k5APR9MqmjT6nf9tiLSdZvl1P+\r\n0sQAM/i1v8JgFxgh8VOU7gO9Z7FO72m76auqVeMWaoiJfJS+73cf6Xgfl2ae\r\nACN+KOSYDNgWGIZmHSgyerVxThNBel7tf+/HoV5Qcko1A063xcenrrVE0CRR\r\nTP1b9kuDfGPQvjUPqqhL/jS531bcFTj4/4Yh3g7yT9aCPHuq8BxgKL6DRehh\r\n8/MCVKAEgIrJGJDu0bfsSl07pQzkmyvXgVJ1yqFaRU0A0PVV/i+7DkvDjr/0\r\n/rrerpuLicz54UKMUaIbFZnmU0Eak8mT8LELQ1rVVR/vGKT34V8mqr8PfcrL\r\nmbe+JbbJIWjZ73LWpM64nGs3ERsGP6M53xmdt3bldRRj4amRgxO2VrT25UgB\r\n+KW2UU9syf8svBBUMHkGkM46x3t04vsSzcekflmYO3JPZLR3DJGjClixNB9U\r\nRgK6bunwbNFw2jvY1OFw3do16SRfia+C+on1+REFE3JIjoBux4Cb9vAZLLX2\r\nwUWrWJRUwtPY1Wy5fVQ3fPR+Eqwep9Nbzcs=\r\n=BNGM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.10_1652357455519_0.8237318114496186"},"_hasShrinkwrap":false},"0.5.2-unstable.32":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-unstable.32","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"60c4547240d6c95cc94348e0b42c67fa79091e78","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-unstable.32","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-4XGgFmC6W298b+OINCYktRFu5tRPDqwHZYvX7ar1XKH0RVBROg+YbczdzWl5en+V6Qkr0Z+23vM3TtVqsc8Pyw==","shasum":"6749de3153f2bc351f01f070f991c49a2ddd3069","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-unstable.32.tgz","fileCount":23,"unpackedSize":32006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjXhOw8w9CaGDMY7f2oO131FspSQa5nFe7x6YYsnXoggIgNlu7wxg89Um4Q94eHbIXkK2mtxvJ1FKIL4B1+Ondvtw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJifmvoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmohjw/9FdbuqgVxuwVpFitfcYjtjH6xV+lCxCvjm5AA0WMxxnaoCnhZ\r\nf/Rs7kSFnoZ10UwetZguYE8/pdcgqsd+29Yt3GgFFDnEQn06Bd4ea1tBZwR6\r\nyhHVnC+BIXcQ2TSv2ucEZi4BNG2KvT5SyXmje7pALL0ku2P7OtisODEn8Plu\r\ne/iX2vUil4XBkK5Peiqclr3ysedckbv937a7je7YwW4ipaT91kcEvMW4WpLK\r\n6EULZEFKe+6Hz99v8AZqC/fA4Inub7p83l77CocqhTusnINIXw9uPef7IpR5\r\n3yWkSMHE21ppbYTVWDOi2pyxn9fKVgtcFGSrd0nEP2R0+cKrwtuMkeCs9u7l\r\nxmrQqN0SJrXTL7UOeh37ZjThsLdhVF0pZnTxfiWrN65S8VwdUOnh/Y+k81zK\r\nRTvpPdMeF+eHPwgavUUWkdKeFzV8A8mzBaj8S5BDDoxGk9eXIbKop85eKx01\r\nD9E7p3bncXHiBAOkvoUKnifNHT00bLwQ4ipke3BIN9LfpuG5IHGIW1J07Oej\r\nTfYTQhOPQV0IBVtLuedtZF1gq8P0K8MPY1EpBjoTzTs9GmU19puT7yEVVA0B\r\n2JJRuU6bIyvdcFHISBGo/QEuw24T0l02z09HQtdCrsLvME/XsDcmpxyyrDZy\r\nz8efjS8cWThW3xS35lYRsaFtFfc6//eCJe0=\r\n=BQtJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-unstable.32_1652452327923_0.9813265065798118"},"_hasShrinkwrap":false},"0.5.2-unstable.33":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-unstable.33","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d7bc38f3559aff6e394d32ee479fed861d4d789d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-unstable.33","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-X8oV+BWhCpdkQQavazO9VtRmiy1W6MrAjoi+/07X6Zsjx3smyvH6KOQ4S9Hhjil3MYnQ97HiW6rzwKaqI8pgaw==","shasum":"c144d07638c9d31b1301e3307ed4c225355a947c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-unstable.33.tgz","fileCount":23,"unpackedSize":32006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEZAltRqlWmuVYhVNSZl+HLEzK7WO15ZSKoeodyz3tAmAiEA/0tQD1GC6oupfzq8ofYoYS+JH/E8COSgbUSLXh7rf7I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJighnWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgjxAAoiKnyUnFPoa2Oe2MCylKCkDyM/5vvfQUt0An5LfKe4QuUiJ4\r\nYklsY/6MS9sT5oNXcPlvVvYzqrw9kFDduY+mzuuYwJxrav0V/kcrgW6qySRZ\r\nBeBj6VDOKbGO9/wh7WIlWD8tE/bubcryEzZXj1prTLQEipmVh1ZWFxpksjh+\r\nk0lG+gaMYblWVUxriocTPelSh5g8n+jPfj3T7LlTlOwg8nXL5QydStS9le6b\r\n6862PfwIDNSR3ZwPBw/X+YwSPbQHgvEaK/clrBTCbhWkrrMFx5TXtrfqOPk4\r\nFU9ufEOddYezhyZRFIXB/PcLooHOs6P+zsq24l78HtAL6WnpU/OhvpLycELg\r\nddPl+qndf6Ws41WDt3kHgIzuRC9UoQ6gU46kR52smnEk5/6Yy3Vjfaj+/hpz\r\nc2J4rGdYItX2OMdL5o5Fjq+vjn6CDZe1WInYg8u6jSgbQoeKcS3/MDuwH5px\r\naiJqWju24Qr4BgClDvtX35FMaUura3tfLw6Z+CoudpFaxdFihKOyj85GfPvj\r\nEUKVk4to/5gvAKyimmUyH68xvYbHY7Q/fEE3PybCWX7C62tj+IRRYttE28ai\r\ntgPwX3TFtlYlwEtx0uh9WjZuGBqTRhjRFVslvYhhB8+X7cXe6acDVcSkmCDD\r\n9doiCy3LorkOVT15TqC0N/fAH1Rd4gd9YEI=\r\n=qSEQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-unstable.33_1652693462377_0.7408363847266415"},"_hasShrinkwrap":false},"0.5.2-unstable.35":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-unstable.35","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b16ff10bc2c0b7d9ae7237c8a1ecc70b931e7335","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-unstable.35","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-XI/v18LNPRIA6OJxcPO0XMfSdqz5qWezPU+yYnUzXBzOQ/uRmlxOVm9/3NPQkYI5toHeIh+TWdNI9PSkN3Ng4w==","shasum":"4432eef5dc848cb29dcb78b0b8ee33e813937454","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-unstable.35.tgz","fileCount":23,"unpackedSize":32006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSD0xMbh5tfNRNUX06TcMQsXPUgjdEnu3ozLJLZnotBAiBD/IF0zODrvtwJvWZMcW1PlX5Q88ugKkj0RxN00ipmog=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihKD+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpmRA//eHkOeCDAACIkg/7vSp15pxcUsgzRS1qO1HRM/agl7Q2upEuP\r\nKKlRtiK5g9wD2i+OqImMQpWsvKOpZDGahkdh09MgOItuelgxkMJFVaecbfFl\r\n1GVfluMGNmIVuvIVZ5dtKIe2+jXNMut+0EP9IshbU1jZ0lbHvn7oBczbu3Ho\r\ngRL3xNBC9IrAQ6syk4CDVBwuKofNdN+UEi/6Y/YZXprQcKc6MI6WqOanMLdn\r\nPOmi1ePFp7B9hbD952/cZCgUJHTTtZDeIxcJBsAepNV26p6868ubYZAYD0xv\r\nalay39S/c/Xrgfc7hBsTMM2EFTme01PogI63itslbtm0bhDlKHPpkEgGSm4f\r\nlhTFrv5mpfV97izahWbvFBXhgJsI15zBahrzPB4W/X1X46/MkY4/v6BOdtWa\r\n03cmzpIRTlOXuT3ewz9q2FMoIuqX6nTjSQ4Swj1sZa8q2o5oPGAJQCHERwWD\r\nWnvv04KLwwYcbzGFNgk6c9eH/WcLMv7n9ewCw8hKu7Fvd5iiddHy3J2ZK2kB\r\ndjtivJRdLqabhGZjvVvT3O9j9JEspfJbtmBOm3lgk88fCrvJDQy6NpxyI4Wd\r\nm7lHeBkAv8d5HIkAjGIu3oe65hamR109PcrhgzTdbaKzSq4E9ArgZu6WKTlg\r\ny0ZlXlRlQS+3tSlhz5TndAeU8ZbjZRHxbcM=\r\n=zbBc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-unstable.35_1652859134545_0.7438718261758843"},"_hasShrinkwrap":false},"0.5.2-unstable.42":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-unstable.42","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a1ab002d995d816a7aa4c549cb6337af214a01a3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-unstable.42","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-0/7cO7t9OCDn3Os9L9IP2QLSRhzm2AAlDthefPWT9MBiKx465zTBNAQJLsScGgc2XrxWCgxpOhW7pbcnjnHxqA==","shasum":"2eae27fbf9bc83b0f58baf1483aceeece726a519","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-unstable.42.tgz","fileCount":23,"unpackedSize":32006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICSJojUXWtY7E3dPRliG2+gmw13qEDrXrCRD29K4srp4AiAgNbN63Le10X55OwOkZrBxl0jv1veHHFmJJm8FUZQFrw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJihhkSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmob2g/+OSElgOgvdOrsR9OLhaSLWPdBBt2wnJ4+8ylVgDg1w6nsWjj+\r\nDL7dopeomyiYhqceuQjbBX1desYmKQlEuRTqE6x23fxRtJGY6aYzzFq2foc6\r\njR/W2Ft9hg51D+xM+Nc5SnBNBWHU9uIZTYx7vH1X17cL8R2xCVhljrDxIwBZ\r\nbm5Ldm+mjDDNpV78jGU5nsGjW/LJ+Y5YNuAf/DLIwDErAht0Kh2xJi5k67M7\r\n8QD973nCQ0LbseON29dPZsviMzM+akLX8kMBLgKsbT3smSOnovlTkaF8yC6K\r\nUOI1NKeuJXO13vrgvZxVi8ChjPGTZmFlf5WVdd8/0s4VOswMIhUWpY5Zi+3A\r\nSKVI2lcbQUYc2EWlrZrsjcKHGW6G9aP3cE/71JXDr+CIC0shBYieNPOMHgQF\r\nIDTgi06clIajR/54x8Ir/FNrIX57kscqiw0LIpq3OHkwVtfUTWIdt35DVBE/\r\n18S0INkW4+v6kx7hPfW/CQQ/xGVxV0FrzMc5OMQlTdGsdit2H3pVKbdCLkfQ\r\nw+6DZ21AZGap0jtojsjNay5xPw/TGR/07F2LwVNwLAPUoOB97ECUMDqSwe/N\r\n1dLd4OPhonPSc74yaqQ7GFhwSI8+1YBzL5FcaSXjRpDgSM11laIm0Yb/ue8F\r\nZg263UlPkFqwMcGGgVYGO8grRC3oJ4CohEc=\r\n=kaoC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-unstable.42_1652955410109_0.909871908056457"},"_hasShrinkwrap":false},"0.5.2-next.45":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.45","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"08a2fd8ab49674cc073b83ebb58ad43a3d2c7ac1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.45","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-fZsaaGRh6SxG7qkvY2eyK98whbiG4T81AvSkC9O130fblVZGtzjhJ6Gu2vJVjfjzrlUpdSnko0QWyBRoImCYYg==","shasum":"3feca564ce058d96ab76a1f63e79c499cc7117e1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.45.tgz","fileCount":23,"unpackedSize":32002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAhVK+T2S/9d5BaiS5fiFB7x1YdTK0TY7Xl87JQzB5EWAiAUXuniQ99lcklgjsRj+9lV/PsfD+TIHvCi+yoYkiNDxA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJih5ubACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNwQ/+ODjJOYu+L6EFYLWpdgZC8ywcdkOYXF75U7SP+HnIsRCwnBJ3\r\nxJHaAjQGJZ8dSwSJENozob2kg+nh3hiolmvyPlFNlzG6+AcgQETw9B6MxLG2\r\npiHkIeG/wgiWESDIlhAvDwX33Wq2bxFyAWzV9gBMVjG8Go9jhoucWMn1uTnb\r\nlFQjGFJONPSbQLvk+WYdxb9cwenKxHEafYgiTH2CkdNeLYuqWZSUvZbURTd8\r\nmZP5pOw21raoSxL+hFyLwHV1IcEWBy4Ilm35wUk8s8OueBPaSqgu7kApp1FQ\r\ni0exIBP6uAhfkuesCAg0Drrsptl66OqpmtdAvKrD6jJT18Z3o0dUBJUKfaWq\r\nb7kJISQBpI3sk7FiLy6sG/dS7z2GJE02HdDRZAdGa3i8Teop6i/1WdT2lfEG\r\nJ0hQh4nIGYZ7xDHWpdzo+uheT7zk2VrU+isGkxSMeg0lDGAUM/UIViLVBlVS\r\nnDxxO6k071EoPfBWAFBSBQR/L/AaJTVHWIx8FFxv6nTlyA+Wuy5Xy7hnmoW5\r\n/nEz/mHNdwBmPCkk/6SYilOVQjgF0PhQtakiPx32jf66iov+9W8M1CxUVzND\r\nPjpXpB6Y5iHQFFEz6meu32J3GQ1fdCmxrvS0zEihiJKy8r6qutyh3l5wpJE8\r\n2cIuUeNkO06VjinO5h1WDtr/TRalt1vQNC4=\r\n=2sTK\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.45_1653054363605_0.3305135744871863"},"_hasShrinkwrap":false},"0.5.2-next.70":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.70","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"20076153a8958b0541d9548d4c980d5b4c8afffa","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.70","_nodeVersion":"14.19.2","_npmVersion":"lerna/4.0.0/node@v14.19.2+x64 (linux)","dist":{"integrity":"sha512-0ejODNN2jrvEZjR0WDT54oPMzcIYqV6oQZmyqlMR0rdCyy3/NwSEkuHa0p7tv4wCYhwJ6EXPTdexcuux+GtCog==","shasum":"6eddef8d34f5fe698d9d146c728758cdc15c65f3","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.70.tgz","fileCount":23,"unpackedSize":32002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCu+9k7Tg/thOGG3WLzvhiwcmMQJPqncm+NSBBBaCokFQIhAMQQ5+gd56Jm4CyNoyriCPNPvZj+CBR1yBl6Y+JJA5fb"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJilfvqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Lg/9HlNdrUir2mf2F1gpLZjUa6npXLECcwFAkdxDZ/3J3QyqUwSh\r\nEA39BkC0/ylxwyG7w7pyK3uoihUO1nuwuN06Rz18sEnoqLAzhDm8+5eKgwcU\r\nefPqxV3AYGGmS2CFKfP1G1oq2MDQJ0xA19cY1qC0hFXHOEthELlnNeJkbQ01\r\nBvqRaU43Ey21bdfOhFFmCrhznjQJiPafVaudbIl1nS7jw0TAW3ONTb/yEjZG\r\n87UWX41WM+FI8Bgda099tRD2dSeG+szw8s5erRrOqAblunS1H3TFMtP/REvl\r\ngUOOerYOqE1qJxxHlieWyW+wESEiWpOLrUnHomeNiaq9FCCGnI8vF51EQiGs\r\nk6AxzzK/8jX0A8pqMobCCFfPwqQgeLT+amF4z47ZiHCqttOYxVrwYZyXlz5K\r\n5HDUlZPBXjR2uvEG8BYhgfPbOKFZvHZAGHkV5fpa9psWs+8O2VSoYy+EGSOa\r\n9i7xyhvX36DBsPwX1lwIbpH3MPIonuJVk6xaAp8BJ+KulRuc+QJH3PkF+F7h\r\nrPuzb5tqDX5l3UtSgufiNJc82uscfXw/IP5ydDjH0cJ7Z2a5DoFWsmnuSz7B\r\n8klPm+150HuykkpJWgExRjkOUu1zMjslql1wFsxAV44j/MQLR1QK/tcuYlnP\r\nQFI8ODFAmOGBPYJqM7xEcwVT6R5/T5fYbMk=\r\n=E8Mg\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.70_1653996522651_0.11934480248859813"},"_hasShrinkwrap":false},"0.5.2-unstable.73":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-unstable.73","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"fcef61daf8ec509ee3125f65f114a6b3e9e53bb3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-unstable.73","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-Z/BtRkdfKif3PNjl0gWJWFnzR64qBOwDhmkIQhD7hp7/CT1zEWvYUJ0nH9Omxc4QCctCiPnkdKZdaLolXKfLaQ==","shasum":"704068816262c73c6f4c2d465854ebc3eb97e743","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-unstable.73.tgz","fileCount":23,"unpackedSize":32006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFlMvqMleKiJzo8cvWq3Dh26BPS3xhIs2dNR7EmtN9EPAiEA8Bu6y5Jys0N7eiBW5SsDGlbs3jFWdTztFI6ygNgJuzo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiquhuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpJg/+JL54b2mIjGRrto+d19duBB7GxUTGFCy69AK+kNKICHPv0+cW\r\nsN8Wtz0BSn1eOo6rb6zb4bBRKZbaPm8TXeLC1G/+/obzstYVGv9m+YsnNIpR\r\nlh+My3ClUfGKYG7nfeK6K/4vmOux9qa2u0US+ZpnxbvpLJpPPPjTx3hI0OxA\r\ny2pJYEdvVrgJkSPhPEieSaD8f5reRnd+LNPm+dTJQ45Su+Vp02sdmfqyewfZ\r\na6hFSTIUewun2f49y3PKOATRLs2dHalUKrVJBhuG7iT4S44lOPUqOA+at07f\r\nvECdB7fj0+IvtLK2S7GXyIOg62JLHhDp+Og7tyf+H+J8gIi6CJmWG/L5EQoS\r\nkxEVL8s2V4SIE3xirXsPy2W2S/OURltZgWos2maFNKz8iL9jq6cHy9eg2iFP\r\naVgGPK+XbT/aznqv5Uu/3fqirUw5UZJ+OrV2CmFTKq8My0OyQ2/iC2jNKCls\r\nlKrTZuqWbMoIC/SnTyy2jR/ML5NtVlWrPu6nT3Z0eI5ZumjA6OWUoVsttLv8\r\nW3xZufQyglBy/GijkAfEHKImoQm3mvCBE87gVj/m/HxbbDnukBTKxAf+mYGk\r\nLByAl9NzLpRu6z7e5S0aYoYrcnsrfDV95ufRs6DYUpqHbbTizPy2YVj4MBdY\r\n2aY3mE5o5sm4GujcG4DkNkaiTOFn8majh+s=\r\n=9wUq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-unstable.73_1655367790290_0.24690952309491698"},"_hasShrinkwrap":false},"0.5.2-unstable.70":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-unstable.70","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"20076153a8958b0541d9548d4c980d5b4c8afffa","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-unstable.70","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-taBi3JMfkX5wnRILu1M/MxQ5YKaow8c386kfNfNKgqRHOSuJKx2O8zQQ7YsmwB66tnoeOkDjUTIvntytXRF6fg==","shasum":"054f5f9fa4d11c1100050f110aa8cf0705fa4e3c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-unstable.70.tgz","fileCount":23,"unpackedSize":32006,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH5H2t9Vq8riEN0VD9STnJlSRWfRneAZGNFou60hVx5pAiEA0iNd61M2d/D5/mFz3lllu1TfzbU1gSYMuO0FX0DLKgo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiucHNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpLKBAAimMjdjluVr//TA4FLf8/lvoU7MDLeqoPEfyuB0NSUy34Qn8T\r\nzJBm6ZipEA+/kk8coiUCUHJCVUhMCt87uy0ZXR7DTPaQ+VXOdQ09upFMydLG\r\nthsg8FMyds4vviV5syx+MyEvz7vaL1leSoL1u1PEnOX+hO+vHCfmhVvEBY/F\r\n9ppmrg4i1EZnYrRrlPEb3wERI3Ag8lLwjglE10uAoEY5Y+/KeM/5fKgleGNg\r\nL766VcgR8fgoj09hHNJ+EsH3P53XuS/JkG7eV53toczWGv0cy6XQC7JrhHC9\r\nG+glBHGzBRcPoR88NfE4HpmMMxr50ZotZnmwx5N/DPeS01kKphBdwexElz4d\r\nnFyaLiTqdd63ICGPVAihm48L7b6vvZ5lajY8tGcS58dqhLCd7BxFTqHvsX6u\r\nCRSUsO/11TFozYGkA+QpnUAujP39FX8/7Ukj/gxYnRE/Qy9gUb4WzJMkSUxO\r\nw5c9pOptIvO+M9ob+imE4wo61LMD3xNQIMXZz4IuArHgHts+2hi0q92oIpfR\r\nUSy/EnU2GE23YFZPz8PPOMM5+rBXPFjtS+CL4krvsnL6QPNikYJtAAqUC4wr\r\nVey6iCf2b081v3Xq5Y6Tp0+WzQBXnpqMZjXjpH2QGUKSULxb073uzjmtZTjd\r\n0KQDeufvCPotC019qoS8NNwUi+gzIf6SPP4=\r\n=sVUQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-unstable.70_1656340941077_0.24176900882547447"},"_hasShrinkwrap":false},"0.5.2-next.73":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.73","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^17.0.2","react-qr-code":"^2.0.3"},"devDependencies":{"@types/enzyme":"^3.10.9","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^27.0.1","@types/react":"^17.0.21","@types/uuid":"^8.3.1","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^27.0.6","ts-jest":"^27.0.4","typescript":"^4.4.3"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"6e3e7657ccfd52ee13eb8e556fdea5241a160dd9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.73","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-3TbJwjids1PJiwpiryonQUzUvmsbMHqtlCveN9LBXOW3YeCf66wQ9oowZ7qO8qxfNJmRNf/i+ZTGYfjs5o/Rhg==","shasum":"3d594d3a1c1458d3f65aecd905ce3caba1bc4c68","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.73.tgz","fileCount":23,"unpackedSize":32002,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJxpYczwg2bNn96P7Hcg+god3OmQ7hqFkWh7abSltkFAiBZVYnhvdo0c7mnvG9Ywwxm61b7Pa7HnL5yXcScNSYL6w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivYLhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoz3Q/+MDd7gfv/3xiWPtXzt6aBQ1lFrg5DAGhSqWcO2wxcenEBFFPY\r\nnbWIyvrJtvLxsIYgnmcBb7y2NmLIh9gKm7I+gYvsJIQTh47xvf5JkFVtzafy\r\nNtrCrQcSVYq/lgx7XbiVOu10WY7++uZLcEc2Nb8aprSL7LMTibjh85okLan9\r\nil7irMDmtEp9bsVmsbBjs4eeTKvjSCUwo5UZrEcCqzheXS2yWbYEDnUQH0i0\r\nEv1Jh62aKFdARALWfWBY+l3LEr02Sc9l9DjegdO8s3sHMAbK0fSQK8jevooM\r\nAXdnqr4gtRD4VFpsexQrlbmcv7ouIsNVCVLhkJzWLF4ic+A7JCOth0D9R5rT\r\nO7j92NWDk+Lj8g/RcWt/ApBkjuMcYOkqRnPSVK5guDN2sw2Yc0zQ8cEaGcrB\r\nVaDDWqZYqulRF9WdGTtMOATOdNaEpOgjHr3ERyL0+vlzP1NASXjiXaGwfZuj\r\ndkYE1fvuBLRERAc4oTZpT0T3D2CUSw5lCbXcJr8j874WHkh+P7udcuCOLc8v\r\nikqSDQqkLppoADUXcVcrH3XVUEi8XpogQYzSIHXM8fZfUUOUHj15SfAjchcJ\r\nWO28M26VTFTF0DtGmpBW5ZB++ibd9ciw2/PKPn7rxzDLwp6BficJVVb4RO/n\r\nO4HWzj9UYYL9TVNx58XWxMHOaVHqOZDu6EY=\r\n=hjWv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.73_1656586977189_0.03948478919885412"},"_hasShrinkwrap":false},"0.5.2-next.113":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.113","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"ce7be9b3403541cf714c5bdc5cd02633c9aaecb2","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.113","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-Dd1Um4fJX46sefkqckgPR2PDAqDopOd95bVYoV9jYY1/e+R3oC/ondSa1R7GIbiQ1rgTppb3p8hRcg07YdsafQ==","shasum":"ad0ee5e08f08cf907ae5c695dc630d3183dbf685","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.113.tgz","fileCount":23,"unpackedSize":32176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2W5E6XVebSnsuAh27TZQzgZS05Q9HM9DFM3rVSVhX/AIhAJQT5g55mXFBFd7qxpNZkAXqIUA1GhYZd/bbPN+8Fowq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv3SJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSeg/9HvbRGxIPbXEnbPpJFy+T/J235ZQSw5BxqmG8xz0/2rZMsOyX\r\nWK53x69wSIeZegU9U86BjXdVyXlVjZKz9zgNGjICvPIqBYXQKuHEd6LL4Asm\r\n9SiNAsddb8cpgNQ3VNh9Rx5UPWPp3KGOpRqSKzYBPOTdxBbFfsh2W3DsAlC3\r\nikbSRSgliqaXU2AO/GYkn9c41qdk4S/qmZxw/M3dcnWxOEYDiiT2q5+mabBj\r\n0oJHzhJWzkrB5hOmABjXgvHLtxMILV/V9Nh0dcNS9D50s135glz+eUdovAEJ\r\ny3BtNh8tqq+RYiovDoYQEGXWqVPByhVzo7RWWj+DOtf2ZiZGjXGBPEnxLnDs\r\n1ZCgk7Iw0B7dlMVZVPN0OcaNUeURRiYuwfmwzRvp6R5eCcNnYCdBILIU5+eA\r\nosfEAgASf4uY1Dgprzl+KVvC60mfb04wcnmVu9P43xJpkIvX/MHsXANLJK8D\r\n6srSkTZjhtTW0mRTGwoMPi5lfoJ+KgR/kfUYUnuJBYejDQrtYHAeONTjGIzG\r\nReEOPi2EK7MVwoAs0e6KNOV6Ji5Y3HBAJXmW3qOkql6eshvQveCg5zjNJCIP\r\nEaJM8r4GVRQnJIZDJXhNyc7A0OVyBOVSMfv6g+LG0zX8OANZehYirJI+zf0S\r\nMEPWJ3de+8++FWm7MfoHPN9qPEziygLLaJ0=\r\n=gBeB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.113_1656714377245_0.9972526278828477"},"_hasShrinkwrap":false},"0.6.0":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.0","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"36f554af6b5c0fad8a7f860b4babcdf10e4174b2","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.0","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-y1zsbVKiKccmXDWREMfCvEiiqfFTYRglsOBivkvnItWtwmDDsTECqiDXjRCYIh3Nl/wI+z/8ptahDkI6k85j3A==","shasum":"adef4bb71080d9a41af2bd297b8f323f885cc4b6","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.0.tgz","fileCount":23,"unpackedSize":32159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA4tUsW8fdR+gTpGKNdZ7xp241ocx1kWWo9lN+du3XxgAiEAraKm15wkwF9ttx9ciHmNy39uyNCACjgK8MlbnfI+MhM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiv3dRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqZvg/+OkPB29VXDyVc2Eh0IXhSQ5tFSyhOuRFzocLCrI4ttGbG7RIg\r\nIyy0Q/kP8KQPOutBrgnDoWHtVtqT8DOBlmmzPrbZd53rDx+0IXaKFblo40z7\r\nwSTnNZPlMQ2ysSFAO8Y6CAt+0cUR7HU3vuQxYIlZlN0g5wen7chLBdVocCD2\r\nrKlJjeP89g329uGbPFNJDJQceBbxi8yvgD8VwA3+mjbc5KFcr0QPMFrlFsB2\r\n1scbZhCHtGnRVdC8WcUbVCBA2cbwNT6Y2C3/l/ZXUvq3XFkON7F4zVddbXLu\r\nTmiVvf56yC8z/zaRsB+PH2M6fkCepSuCrhr43Hitn3yGLQIXOhqSLZbnjqiZ\r\n64AH6kzkiAsRjRe/kDKnYpUDCAi3AyTnHTn9BwGrQMYFJ8n2TyOvewrPH8Rm\r\npc2Tkm3bjitfMz1QkxTDFYgB6evkGvlvYGOj7Tp2laLyfD7R7DqJQJ0RHqFm\r\ndcVBFtnhA8pxuJDneeLKqJ4pdz8n5Sy/kju0Tm9OmEQWGOOS/dgeRpavnM+Q\r\n5apWjnkNWO/s+D/rCDEWBETwREKTxx8bwv5Dwi+Lxh2rgmZswMZD1KVMeA+Z\r\nHEYmvb/FHLHxz9nAjtempe5htQC3op2bgtB1F3WNLFa+7Nc7/jKbrkqYcMJS\r\nbhuVmPC+F9W+iC4hCDOmA2OX1Xzr5DoiThU=\r\n=Mvw5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.0_1656715089428_0.2328634602219284"},"_hasShrinkwrap":false},"0.5.2-next.116":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.5.2-next.116","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"1cf21f8a17f99d49479db556eb6dc70c30dc8cfa","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.5.2-next.116","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-bHwoPIx3b1cfIbxP1XxHT/ebyPezbTrRKUovF+w2uR/eYdkPx3oc/YDKSvsiCp/pmUJ1CtCQf5DX80FvPEfwWg==","shasum":"a3c050088edbe1851d9666775e3dcb6deed7d661","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.5.2-next.116.tgz","fileCount":23,"unpackedSize":32176,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDpzF4iiauHwd1CxaJWT39enwAcZzBj/m5mvgU1vvJGlAiEA80XMwC8EPcUH7BNjgAnI94ogy732C55VuBBig5ugGS4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixNLXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqO8g//RyTbV6x8u/6X36n7rshvEoHd/rwLiVQ2MpaSPYcZi6oEC/oP\r\n/ULzF5VcAyV1kwCkYF5xBDqdukqxy8NcpZzLxSdiCpZZ3v8jmelKQZMgiuyo\r\nZJnO7sGnJPq038Dp7pM63eLTFUU6AL7MUug0jmwncyMOfyX85mVFLLAQj9KE\r\nM6uH63+VNt53e2CR1ov5U5Oiy0HTq3GRSpaq7JFQG9a28h1W/d0EQe+SKawV\r\nvJE0MnqTpikSSBOb+yLzNwyD6Cu5HYI4j00x92UBff1hvPBcCGJEw9sb27+t\r\nlGUqpHMmzmS9zZzr2ZgoEgrSzKXhvdqs2kv8b3cz3AqOab2ZUFIWGvuJkIy+\r\nn8ySh50Pp747I7ie7nBf9YXqwX6ljtyjccBmgPeK1GRfIDDJNqFH6Ooin/bI\r\nKhVm8xfVbHbAeRmkbOjz/UKl56UcuS/dzAPyuq4hrvVAVTMxqpeshH4BlxLp\r\ncxao4wqEtxEYjQaE4ptRXgA1C0JlO8UGoGlykQLsjtXk6UBRkj9yh57FvmLr\r\nyY3vQnRtjvjwNmNBiB8h6a3BOTgdRtw0K09DeTEXZOgGx1Bbi7Cmkrr44KK0\r\nG4+Usa/VlDc7pa77HR3MD/SyH5VeFbz4Rmm4ihii++i++euknMhPvDqqlt80\r\nxYKiNkFiwiYqytK5g4RMFMhneNfUpgjouyI=\r\n=4Iub\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.5.2-next.116_1657066199141_0.6701176928523149"},"_hasShrinkwrap":false},"0.6.1-next.6":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.6","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d455c9f6b3bfdeda0a399bf183d3b29ec6b02df3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.6","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-r9A6ODDmn9CyW6ZChc/nQs7eBV7/kXPSfmYQkEOSGSzg+qFL8/DiZ8KapHPGSVFROsDcDigMOER2r75YOQ36Rw==","shasum":"677cfe3354f13c3f72b4a8b5a882d883a974c03c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.6.tgz","fileCount":23,"unpackedSize":32174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHkyz96UpZwFRnMg839rDPL2xpu8iiHSOWhq+LOenlZAAiB/iyWENYS/iigSSl0KahmoIRZb6R2/Xnk4V2VZOSTM/w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixNnfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpedA/9G8eTh3Xs4EMghmj58uow1gLSROd1CoO/ctIkPbLbnMsLBEWb\r\nSkaWFaXj/vAhulUuG8L85oLxMJQSEZKzqc2c7WhynpYGAdWBgGmc/E3ukf6x\r\nzYecbOuOXy/WjX2TnjMLwZbAHulH9Hu0nmxLUMaX3AVfmZc76OUvbTJzAwbu\r\nkDS3M5vIrMLVGpFnHBYvyAktJDoJWrLVHuPfPtNEpdh/mfShNDWUjxphpeyA\r\nYCsq3uBTaTrn+aGsCyZ6CjH/Ij0SU9jyR+guVrAnioMQibzJlWaUIHR+F0GY\r\niwewK/aaPH8slBzb0b9tbMvwKNCopJD6vX3bnXPucIbjW7aHpWEp5GWgE9SC\r\nGLBmyjbGPDOe5/c73gllY+ueEpS7HhwpkDLdPqwPWiI70Y7AdYgnRtYxm9T2\r\nn0/8as7gMZ1pGOmwaoQuY/wRdyhO/qWRmxlu2gu9CyXwDr2i74mjw5KNWXo3\r\nQmC3+17u8LFY1zVhfHTsQfLIOq9E1N/inXoAmChUbJHaSIDKztg0gQSb1VAq\r\nEh1m62C7Kj70UV+3bbKMGpsUd4Cbj0seVdDa40AwtGwzAh7aZYYIGEWRQQjO\r\njFAR+4pZy3w8gjDC1M3FxHHFTwKibaMaVbGpnYyRiu4+BUfmCTsvv1CCL9j5\r\nrzbZS0pZ+u2KXzcKh1RlehKxZOjnxE0JPXc=\r\n=mrmN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.6_1657067999110_0.03309331246074376"},"_hasShrinkwrap":false},"0.6.1-next.8":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.8","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"873e8b12f9c20604eaca3f12fd439eaf10a7d68f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.8","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-TdcIfBCLu4zGWtnG/xzySTus/mxaItvHOim8qsiiLqnKXGWJg9eeqsg4/uf7o83xK/TpfACQ/rY92ZSBN8wnIw==","shasum":"bce7ac73f7defe8d2e2b948f1f48f395ba789fa9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.8.tgz","fileCount":23,"unpackedSize":32174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAQeSUd9SyQZyGf6kegM0hQCxWe1J2FfO6Z1U53ZnRrTAiEAlXBBEXV62fg/NET7+e1IyOpUUpw0a2LM4QrUqM1MYGk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixgIeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqoHBAAn8dipPiVwgbJlVEeKSl+bGyn8KH0z7WTpQA7MBp0EdSkKUWa\r\nC4Oq/+TiIHllic2Xi2IxwiuaX+6PUJjTbVAsaI7FRbRwBGkHRAfuG1wZu2La\r\nw8RYUEh27WrbXf+OdcklIqNRg3Mf6S0GAo6ZJbEB+2toMjcs/3qYcuso+kNJ\r\nBqb1utiEKjCylY/RcnfiqCr3df81iCi5ngWSk7PQK3jfMdwi2X+EW67eBHlR\r\neHqlP2SdEGdfz+7tqejJ4A5L7T8hnHl8IBgG1x2vWy3tbX6luT/obHKN/pYh\r\nKyUCk4jTfLp1E499n93+1W+rcP1LdPue3MuhusgnF1yEcy5PQ8XautHD8uh/\r\napTmOfN+8ECX0rm6+VpymrCvQrhgihHCCaugEyxrp+K/Eg9IyHr9VFM6fx6B\r\nC2Ja+hZ66VNPEOYEaNWtmf9Cvob8P+YwyDHGe4eoQ/dAO0yKGVMWb81a4q5l\r\njifahOAcSLauNp/J37VwMwrAexEjp6mgKUewRAbEA02j2lDJJYRfe0LJ072F\r\nSxbyDfdnJge9GimHRHznO0lM/ZgIhFs9OPOQaiY/9vzrsnQzKDW0EiJCklmq\r\nMlGX6wbf5WaIC6BgpTtCztuwNlvBtV0OrNJhRCo4nti/3LiN7OYwD4V+gVfM\r\nPbjqlJ30KV9bsrz3grWk4hHeptQp2sBDjWw=\r\n=Mcsy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.8_1657143838298_0.2205653747525378"},"_hasShrinkwrap":false},"0.6.1-next.9":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.9","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"ca83b932ac3a56e223cb63f8dbdefdc0ae3f0d62","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.9","_nodeVersion":"14.19.3","_npmVersion":"lerna/4.0.0/node@v14.19.3+x64 (linux)","dist":{"integrity":"sha512-Q9R/ACx2aTeSwg8dwd7ctpgESAROT6bg8ZucXT5FVohXb58kxqb6eGQ0Nc6yT+jTCJAvHtrX2xLTBjwCU7bF5w==","shasum":"6b5e2dad1f7b98b78d51e4e692890e76c875896b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.9.tgz","fileCount":23,"unpackedSize":32174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkAqb0p5P72w1JK+EPLHdSHVAFa3LH4/aWtSzx7h+eAQIhAMrBo5C0gVQdkoOuoHANUY4FKEoFBdNf08xxsYnnG9pz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJixgoHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpV1BAAgk+YpwcsT0+5pza4gzwuJdywqsmNeU/akycchmsI3ezjGIsY\r\naCL5S9yiZdPMaPZIVqTlzr92UPxeVh3gTz6pAXkPoq7b7+YxG/5y5FPilt0c\r\ngS8aM5t4n5FDPo3hOEghr1yd/2Up9H7fPuhOlWQA0sg4k+VD9LkmUOehdPnr\r\nBCWm2FIka0dUpOIcR6WSI0tGNdpR9Z4oHdA12S5mTVfAVgOM8QkorgoUHhJg\r\n3rCnDSnfAUGeWVks00nFGrrPQwAnSWbNwcP9mdn3A1tSRpglD0l0NvrZS+O6\r\nSHB9tmMucUrIHZ586QCfYoIdye28X0gSfspmMZKYJkVUargwH5CuI682V54q\r\n2mHInioHfy7pKJAaGAIpTlfNWJnTtUiuj7caS6Ov065Io5GlefZuDToiFnoy\r\nkwFOTvRa3UXWPXDlnnlFmXnEaL7KYKaGubtyj5YC1ZnDYbe2syFcN7WeRNBR\r\njWgAn3cSMxP2TAi5VQmMw/kuKG1co/YnWcAjLJ41B4IacKEso8O50yYPDKza\r\nIxkjR2YEJRhK/OPQ8uFPVJ5gJAO9Lu/nZ6qnnLq08WWiF7m7a/xLDTpa1Jwz\r\nu94gWkjwBxkgnl0rGzicVfFU/WBB3Lbhg0hUj6dIQRF94uM4ulfJxJvLcghv\r\nxWn3q26MHCHmZDrCMRVsYxvH45oeTzps8WM=\r\n=Gs6p\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.9_1657145863264_0.6135126169993663"},"_hasShrinkwrap":false},"0.6.1-unstable.49":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.49","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"251ed60ebd6984d5fe494a764d8cd662dd0eba6d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.49","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-65OCNXJfbv/BbhM9eYx5s6DpyuWCNXvuf5mwIKpgKKV3p8ATVOEhjjYza4+FT7YzMsvautrnvi+I04acHV4uHQ==","shasum":"730627ddd0a70c95ef1bdd301983deb2355dfb5d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.49.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm/3ocV//M/vW90MzoRU5yTyyNAkayXF0kFWNPR2c13wIhAI48+LmJYHshch8aUpGpDjiX5Xx3DVe+Zy+qjcK6YiQH"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizfmVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqhoA/+Ig1HKTaSAkgOV49ZECrxlNO8Y7L315gHZjdFNwuXX79R+r68\r\nn1KGB3yPp7lcDnUy5leQNBE0FK0NeNcSDtFjBaQVQC8c8rv9fZvI7+TmCpC+\r\nPqhEKdzl4rLP+Knh3UnWJCq8/fZd9md9lTYio6Xo2VSneUnpPWp0uydgjNmy\r\nFDKf7Lmix+XHeA4okanrPm2cxVzON/eC9KT49vJkyvvfSjtbng6lmhyGohbY\r\nBC1w3RCr+GB6R3xLw+TUO4IQVLdIbON3j1P6y1NPIcPIbN4Jl0V3QB+oH2gP\r\n8hOH2u92cWjgJUxeE+f5mGT0UJgSrO2yGFI535FfYDa31H5f2pDk++lQy6SH\r\nInE432PgplLG93FdolXI8q/O06szwiBjy6QJfafgbsieDZ6A5kpXYFY5/MI3\r\n3mHaYnk+ZsAFgWzmzLVSadrr/IhD7K3kVk3tITXxP+eGOOLmeZC0lx2rvJjv\r\nqMjptug4LzgV78K/ph6sPNkN1bLg+QqX1LfJ8qfCB3zK8Tx5aTq9lMKdS7pH\r\nu7O1/EO1v1huayBb8/JqPu9ZzGRolqdtYaGc09HvgicSAIgBBatrxFC90XRX\r\n80sj0ZYgyFzRWWQ2Nl/Wu14YVyYginBm6pfnCRKEO7DjuVU6kEvCEw0pPxb8\r\nCabjlfcx5BpHFSFBzePGxL12vO7t8BdQD44=\r\n=IHio\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.49_1657665940835_0.807248135928077"},"_hasShrinkwrap":false},"0.6.1-next.50":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.50","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5ae3140c252b6a3d90194fc3c57c00d2494cbd9c","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.50","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-lnNqq+uhaWppFEDaGPMJJwuWVuE6Jb7XFpGZcfSW3zw0T7Ds8fboa0JY/zRi+a6jSZdWiRYJG3XcMP+395Ckxw==","shasum":"a5994c60e9a7a61990f4b3cd6c418d9c72afc972","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.50.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIACfPMVbIswco4pORwjNYvzPGZu5S6rux3MATYoQn1Z6AiEAuu+y6WaohvWLivhntKGQryezeqaAq0gV2oaHBRaUgVY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizfyaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoCUw/+N6T7V+OdMMwWehdLU5MHxxooW2SMcPMtDRqF3+H6yTpLtrb+\r\nckFmczdlnIoGSvy0zSEZ3TZv3ZFkG4306uz2CMztU0eZBzC6jIznNXbliZiy\r\nYn00OTqPPumMdE7/G2/jInhI/TlVhXJewS+0ZRlLDPPlakYE8rbIwWJW+Crf\r\nx9X/bEPMP/m2Cer+SKSN/mA1HzjlRkAJSb/3KRCDxAYFvIOsUA0dTe1BnGXf\r\nA57mO8Qg9cfVLrx19eTwzQ/peMCRb3h2WaXT/tlM59qf8s1GFnt/tEjtua3E\r\ngmgGsmWGnTTPsP3q8yRfkfa76/1n36JJYMBmsUyZoRslOFkZfcuwAoOMf31q\r\ncMPeGbSudt1zVLbSkmmMsZA9el0ZOZlkGd3Nq4aHgxPk3KAqSnbLNeBRZstW\r\n6aDAJM3G4i4XeGa+cxHTesRNly3k89INI+d9RlrDlejJgj1z05vOyHOwx1om\r\nJ0373LvZla3lYIUqCuw/dnWH4FHyBGOOnVlhJSa0OgiSMKPJ7tYKQ7xSPZcr\r\n9K47OLLPyid6DWZ7h5HHEWmGZkBrtnyNsQbZJfUjq6CzUQYV1BFaplQ+0x8F\r\n7ekAlEW3MR5fWDwIy+Rx9uQvuKGKV5uoFHrX4lw7m0uKg1otXHjywGSvi7xj\r\ntfTamfV1bnjMEnWTJ3hZ74D7hwHDOhYNuIw=\r\n=oo4b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.50_1657666713893_0.36748243430706773"},"_hasShrinkwrap":false},"0.6.1-unstable.63":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.63","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a709ce639056f768745bf9faf7388f348cfa4a62","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.63","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-j9oZWdGAIYYIQFcQlZy69WHf+fyM440jw0FXpNnvMetUyZSCYUyqW/pczVShW3qBOR/dasD57jgLlbybnnStjQ==","shasum":"f6a4849bd81a407b6521cc5555e63d9dc47a694b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.63.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDYyQ0Yz6RkpgiJPbDEzD3g8NbTrHdK3aqSg52unaJW0AIgKwMXi5HngrFnlWaqie0ivsEJCM9Y9Rehbg+r3eFKrHA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizoLTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpx1hAAhN65DMl5jwmpY15NO7fouB31Ts7FDeImSst+krUAMOiz2mFb\r\nWzHt/T+6qb8Ucj1BoNC0w9wAxQmslAhq0axEAShGnRztEftq1aw8FdNJkVD5\r\npeqky4RscWAeklwfhjvz3C7jc5yTSh2brYOPOeQzM36wq+yhg9GLiPPrAZPg\r\nYKC5UC/QKnY2blf+qw07FxQqExtnUni47vULHfCjn7D5XEKwFDX/vbvQqEG9\r\nICqevWW6qjZhJzrmw21Cv+y2vw/tucxEqN/+FZtD8AbKJKP2XKEjfkOjLnyC\r\n9fMnna+302aiZR/n2tuo7swPWteKDZ5dcpbBctiZJkHAGKTIufOCAMlYdBKG\r\nooiTZEDCW8caj38F2BMSGGMQEIyCaO0H2AaONsCQj1qfIBm9KNxfyrhp/SAL\r\nXzWLR/9xK50lRQZOpJRo22QXDRxtWk35z4oz8YRffjen2M7IKIzgRDQBjdxl\r\nOGaXi4jS2x6ozlUrOOgZFz6h66zrJ91CZRHEHdKQYXQW6WvSCRSkAeTe5ofu\r\nnHvbG4To6fKgWBdDbp39dGlJ8sR7jvNE/NwKK71KVwLbWHL5ldLrcTC3KYiR\r\nIZ6QnSTlf4y+X+pnKIFkWG6GuJkwNkxxL9xbUpH8RHDQCxWp9Srd74QQ010Q\r\nLw+1Sv3OKoBKwQNAkwrM8S1LtxuAuE9Qo6w=\r\n=dpqZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.63_1657701074870_0.2181461034814569"},"_hasShrinkwrap":false},"0.6.1-unstable.64":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.64","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"8b69827a11b02c26a1aab59cf8e37ed50c6b59ff","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.64","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-+YjUgEJo7m8Yvvsg3yFkRKH7fezLRckofCK4PxxKMkeeGZ0g5eCfxYnoX0FQvW1ith6YbyXEkAij7NzwIlG0ww==","shasum":"eda8624a5ad14d69feb8428550fe63dd1ac34243","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.64.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8tJy+Gh2NxdpjM3ivwXEKpxlw+wsFj4efmONtOzoZNAiBsYcLuY8zus2fP5hK9jj+IG5NAbsp5TgICFzFZpaD7Xg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizqe3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6phAAi/EwxUVy89pM0qQAwcGZbW9x37vSdRMEQcDXcu/kTd2lIsjv\r\nyHXNuhYZkAqRH4Vk3vGfWhus96mIyqoheutIu5K2tONXxG6qBNssQ19f18Pr\r\nxhUn3s81t7mBQT4yVd5ZxwBlNiWJV4yKMPHvbT+CbPa3f1DYqEZwzc8asLxT\r\nn6WXVC4habTZ18hrqhd1vsIYt7v4VoEfKQgr8fD88f1WEmekATYPf/kquBjM\r\nGy2OrW+Qy4RPGuT3lVAsLCkw1hfwqDPAwdG3WDAFgRo1wJlUAdetWhMF2j/1\r\ncx/jLsgjHoeaqZhsHwBbAkYn60jK9wLSnxbNY5pJ9mmn4vV+2QPwFwojnzLY\r\nniRregeXiDN9UuLSQvDZKUCexVEJY2nr7iSfM9fxY0dAgwbK+FGL8p1LcUbs\r\nrz+cVClcY3YU1WYoIAJ7phWkuVKIRBFS312aPQA0mT4dRECg0XAEMO690B4I\r\nrhn5wrWXTigA0XZhi13z/EwWi9Z/XmjjXJU0nO4XGceOADqEQiCaWG6IwzlO\r\nuSSCaCn5YM5JE4boF5P9H6f5Isr8vrd6XsIfWKZxw77zhy0hsNdqDXj9v4Xp\r\nSFO0di/TnWV157M8ID3p1HzqqfomPXDjamErzOw4tyelRhfOAHWxCugDFfJX\r\n2/rhD5z7jKAq0Wob1+j+zKfNhxogeQ+ZKnk=\r\n=mI4n\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.64_1657710519023_0.7293896555853885"},"_hasShrinkwrap":false},"0.6.1-unstable.65":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.65","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a52501731e5fe58bf890234cfb9c671c3cb08aa4","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.65","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-aYiDb1cMBYXUmcbdr6YiIDTQjRT5PLtSdpwS9DfNOHhT90VYk/1oMpOgMke3Rk3daZXntrN8Mtrk5rVxkxyBmg==","shasum":"a73a1d4157599e4418a64bbb86e7d220918985d5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.65.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDHQgg0xxduWk2HcchCs1PH5R1a1dm50BjWRYUUbtL6fQIgTPegVO9h7yNiq4SAdRH/gijn3Bl+57sttVDvlRVUNEA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizqj2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrgRQ/6A//05IR8GrwHNMuOMXcsHuy6rUqDNpdFgRSvhW/hY8AXn5Yk\r\neuYpTucOWvjk0sqwokxbZjnw+yh37v6vw0zYDJ2X4rfsRr1/uPzxP0ug2q8L\r\nIm6EkELETVmA5gswCpmvKtpYW/9XSoRo/DupuxEeSy9xZNiHdzgNkQ1E9cBJ\r\ndEnlT1ghjCkqKvl/S7vcCU5UmO/6B3aT2uOOnRcsYiCuLfNOuFGQcYC2WJCy\r\nA2zQzgkbwjYsLEo5e94hlA6R0qOulI9brXsMrdCLTQY/TxzOXAjcn+yYPIx9\r\n/dQRw7CkoVYBVQQ7+c7YsLiMix7IKX5QBGF+KUjhCs3bTKVcY0Lrefx1Q8As\r\ndXznNtmj0wvSzqrm60ycxIc17FSdwp5xgnZjX7fE8Mar8sTGUVJ7uImx9wb8\r\n2n1kJU6imjjyfZ7pqcv2nHvYMisoi+UCnUwwH3Wuez01pAigspM0rxw5p7Tv\r\nB9IyPE1J2xTJ/roh4TowcI3GLtxl32zO8ePszx8VsAeYotS/+weX7i2+T/Su\r\nTpvU1saaUQ30fEOFLW9H3xxhvU9ZCI1DLzQ8CKAnQ/1svcOg6DI+TVOjRaFp\r\nHoe8V0y/PMY8q28TW/sD9/verTyD1RSZ5fqCRyYLup777gcI9D1zJLjIYecS\r\nZoBwgPVWT0X2sZVqacUE/vn1BUSPVFhrZno=\r\n=rnD9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.65_1657710837943_0.9766854990992602"},"_hasShrinkwrap":false},"0.6.1-next.66":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.66","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"cff4c2f3e71a6943d384dafc659deb3bd69ab805","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.66","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-0DPuarCa7ab/R29lZCynwPh2LbUEC+BDPhu9gw0u9pbAodPeUGr3FXLZTfJWzbNmWl6TQEBzovXEVA2bSpG5gw==","shasum":"2f14af105c1aab97acc771288c679f169eb67b98","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.66.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1Hq4yn0XmYpdIuofAP4TvWD/cpSZXiShUsKHJ/kKHGwIgUGVm1G1Zbv921cigPXdKHzVmRufvIJVPmeRp12+YJwo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJizq5FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Ig//b6qCsWO3n9jlz+vCUDqTpBEAfFIyPAmLfdzNmPcxgOSXuqMM\r\nJHRwGefXAUdotm2B5HsO7PinaMpAMx3vOoNhHWzi2S6M0imxBhAF/ieAXEEE\r\naJIg16yPnPPyDNS6g3ur6xAD9iwnYUVtdlZ46kE2bSF4SBHl8oinG5uojBYL\r\nML7JDQ4XpQoMYmbWp7s+/Q45cRvdoncAIE2n1hriv/oZk1iBd0clWk2BRrNC\r\n+ianR5I6i4594K3sVW4W0SKXv6dHkzKb2cesliTUjVwPg+NPhqstrlyEhwmy\r\n2nNmpPfYr/PppCFB1iQgMFzIp5ATPsCjfmOMlgihXy7Z78bo0h5MdYwblhy9\r\nXg1KVbD1Tqo4b9zFZYUw5C3umiafYMiHRB/wxzjpKWg2VyMmc6h1AMn6dOLA\r\nr5qtRMXTLTCzom1njcaZ51XL9ALZEEP0tTjzLn8VRtVCwYfe0OvcpbE0Bc0P\r\nLqmdCVK66zcr+CpYS8n8pBH07hFZctFFoQhJKK/FD8nGw2u7U2vM+xnsLZ3B\r\nforOTGNzIs7rxy6fmgM1cUyLdTHp6NuzJwbnimTnqpypeHxgAqXTFYM4uTd9\r\nTqfvMTktIX8E7B3un8L4aPZ1zekpVfwIjfxtnsZJuWhVlKZwS7XfmLCX0S0+\r\nzYx1V34JMmknZ33U6fW4lW+povVC2xj5A1w=\r\n=mE3H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.66_1657712197000_0.42283194874124375"},"_hasShrinkwrap":false},"0.6.1-next.67":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.67","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"386efc71b18195004773fc74eb51b62cd3f5dd76","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.67","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-geSRiPLnw2NAI1uYroQpDQTABPa1DwtvOJpP6CNejidlV+HYn9/rtsVupt2PWHR+Pg36eSeGQDgCVvbbfpHjFg==","shasum":"621521725aeb76ab3e7105503be4143729afcc1e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.67.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGUpKSV9RBEKi6kY/YaDWnUPirUWYgW5pKx2JciTTYaAIhAMrMWxqU6OW0Lcnu0U1XGKm4vXsX+Okcz020hREM3fnE"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi4wFLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZUhAAkgzF3yOEDaW+XziWokQom3JRaNAAJmOvcmeB/DKjj5RiCAuw\r\nk3zdG1Jrl1OlVpcu8I5SVOCtuZPgLFzHpfQt6p805kfXCPtC/mhmFONaKEGV\r\niYP5w4tQe+xLOcS5Xye4hdV1SsXwTF6OKswBB4GDKAvos7Ik9FgHIkmWY3Wp\r\nZzRSHSRfpLyB0AEfOppJLh7GemZWN8jcqBbNEAqaeR50xm0lFqivJzzqNWvV\r\nygfFLI57vQQSeWlUbIGpbWIvoOd2rN77eJ5k34fOmJVYba0HzYUG8N3hfASp\r\n7D2uazdFMOpIEE4sPFPayLE0W4mVjMvRiY09uWP3591m525xWLP4+ETZxius\r\nkeA8JvqwW2aCrGnva1OwqxtOq7jR2hhAi8Y3lg8rNu+z+R55EHDm/JMmokWg\r\n9O5Q2jk99yEaNfUoFYJoAZxPzgKGnvR7uprLfuwkINta5l1RwjYPnfsENgNs\r\nkk571tbZnbRLiclHyT+hXDrUfLSpxlIEZqjI3/+EG80GVq65vwcc2RXfKgfn\r\n+L3bL8EdNuMhuTfkovUl8XjmlljO0h7AcyXboeiAWb2UbREEka6HMuiV7rR1\r\nyC8I7SI7BunPCGhK8Pfqz9bSDPcpwGAb9X+51jI0ghDsL4e5Cyr7FWkXKJFf\r\ntBIuFXqQ07vAXBTKfS8i+FF9QT5ah4zm/ak=\r\n=Rqi5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.67_1659044171356_0.704253218777781"},"_hasShrinkwrap":false},"0.6.1-unstable.74":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.74","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"1462b74119f7a73f43ce3f0d4717e01b60a5ac1a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.74","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-HzQfKnhB8p1cFRzoZnfUBM5N8CTI2Lky0QtKQ1/rLFPHLKUHl62NltU/YliRdZHVSJRA+/2oYNJb9LATbQZnhQ==","shasum":"3bb389e00daa5278a1e49a5dcbb6e3229e313877","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.74.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfF2g7lq/OAuomB9xUPpc7v7y40KGp4xRtnOk4sd7A/gIhAOvsZkUwnRvCucnUmg2MJImLq77pNUqWfuXqme/UhaCt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6X0yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7gBAAkBtigL7cPdVmFFzeXp3NyL/HwnCFQEANOzyyjnolHhw2DMEn\r\n+yDA5lpPyE8s7TfGRsyvOCUAfQsqevGrrm3kuk2KszaTUW71XKiphVfzOhpL\r\n6tzDsC9vXYT2GBSW5jqQ9/hqhCayIp3eGF3Lc2Clf+bZguVompFIulSaF3gl\r\nXWcmKQcAHXZ2qytuyJvIwO23+ys1FcyQsnwGjX20HlSmNWxYrBL202erKSSV\r\nWRner8fjZKxV9iWNoLhEp/EKsMHugeb+8pu7o/bfyz7DbR81rffr7HpZ9By0\r\nezkTGBWxpMdd6BIP4PMdXQXajAK6ATlqpgET/TGYhaDAu1fP/hLsb/vFrCrd\r\nsYe9d/VAW4vAgeFDFH+YRO5GOC5r3nSlu65FHagAukmPQWOoXVz3tlLDNcH7\r\ndrjd3de9T6PDAlvymwqMHKR6JpEQBKGuy34rKNcF8tsi5UDenHPgy/FngEfY\r\nCJCnCKf56UOYxnpCzCGx05hxMApgq34KDzl/VdrxNtCbQRprSWKSQ0qe0tx6\r\nGjame8D2xz1VSGRnFWvjfsqXpGoWzULz2PSTYcnTv3FBZeHSWDnQNroQTjG6\r\nKFdcgF47vcdzzya6QBUFUB3zhihK4TZG+GiTPADpWBoAOA6UqAsbDrcoEwM6\r\nyI8pm49UCzrRB6bqUT0CoK9LpfD8QJPA4Ek=\r\n=3YQ7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.74_1659469106253_0.3295552287431682"},"_hasShrinkwrap":false},"0.6.1-unstable.75":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.75","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a0af1670692eed24d0ae9f5721a68d0340173f19","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.75","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-mWvkS1H3CPYdYHFQhTsYmNF4C5mJbg0LcC94sePXu1cQYo/tpA2MZvdhqqrgBAIJGV00l3NCP+iwkUpf3lqwMg==","shasum":"f5230aa7ea89d2507dde0bfddbb0daa123210a2c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.75.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD67LLzXnocJRSJRx8r672cuaumsDNp9zRQ4nZugKbc5AIgXSyq3eLekI5GXc60uWp6rkXyn9jcyk8l/DvauJVSXa4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6Z31ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaFg//XVmD5t4zUvv3nZ+5UrgL3A2PnpHdhNOYE+Vi/t72PBRN6xi6\r\nNWO5hsUaLvpVWQor5yzJFjEm41x8isGUkTEmUygnHS30FIL566WzVW2RwrMO\r\n6R8bM2eiDOkuPyybA21NyfIQmmUk1EhzIAxhBIs3bjdLtk6MBfu7oD6LPm4F\r\nROGBoCEsslWYt0DOCCyN+zlgcVeMN+a+JQsxjM4Wszt4v5PcG6TujNUzZkj3\r\nkLLqcIHhD2XXXgIf8gQqb5EBUkC4Tc461v+11sjKREA88ThHUhhqgJ7nJvvB\r\n92KaCjuUwFCby0IuL1cGgwjaVH3B7XdHMNkUmDrrXR1lXs7GCkJCWE+LDOhH\r\n7+zs1gizkvXe7QZFvBinQ2OEWnd4ZNE+Cgn2Fi2p8jR7u+hOG2kNhZ9EoXNI\r\npZr3/bDRtz45ahtAhbeJxdilogILviiVTf7cW8DVUxoll6p/YRM5FszITTxo\r\n2oczlzj4qH37otUsuco/WPavAEhosHRy/5I1dcGJY7KM1rZIRkKQfQx3LoUS\r\n0XCme5m30yD2EfadkJg0gvkiE1oJpQsAEL3wN7fN9HzBvrTfHsDs7M+a44fY\r\n4wfDpXlRkropsXBug+jWKhwy/zECJyFP/y7wvDduzAGWuytMd9aOW0/QVjE8\r\n4ufB/IrBUX4oAG1FS81i7WhQ9aF4TGDkgE0=\r\n=thLM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.75_1659477493026_0.5053709324364335"},"_hasShrinkwrap":false},"0.6.1-unstable.76":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.76","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"527741dfdfa81336210fadbe66fbcf475de98cb6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.76","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qiWTyl2MKxDFiHZSmP/V6l9xQd5mBy8pPcMLbHYfX0Vt9xp4DOudcJ3Ao/oS8+MGNvCUpfuvWMsydcBVdfi+Ug==","shasum":"2eac4562b0876b24efedb4ebbdd97e9645c6f090","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.76.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCX46Tx/0oWkErjCI716ZTk30rVA5G8v7BBde771mqOAAIhAPaXW1emAXhxk9Pjdvii87FCko8ebipRySrwXUxypHyg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6aiIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmoh3RAAhRhi3WzjAq3Xh7FnZjb7vL7iNLBS9/BxEASk8I1HHK6+EhxW\r\nm+iq3n6DP0eowQfH1z3okiNybLD0OTLv66nFvbu8iflmUvKlu/8toZATRyoi\r\n6cq1ApvzJcvAG8n+w+RLVP7W3hRbIj0Q3X81ub8UBBtaTxpsRKy+rNDzp9+N\r\n4ncIAq1CLBiepRsY4/FZ2ZPp3ci/uric2WCoHzHgIDe2e9E/WXZIjrhANHNO\r\nx9rfsgUtc4PE920M89ZuBHrjeejQj7l0CrnXuMNv0EoNsh5lGGjkVAV5XEN+\r\nTETegaxBFVLj5pYgGXtf1JkfcPqDtI/PXa9zt2irA1gRu5Y3zMEpI6VvPKvT\r\n3ciQpNcJ1MqqMPGdMfpPdQIuAh6GMVLqbriwKP6aDjLoOT/i/xJ7nevidMh1\r\no8wlhryJT59ayKQ7yNq+JnX/wk01WvXxJbMxgG8Tw9uiLyUicsg++rLwNqoq\r\nW4070CKrj7SDG1sHX9E8SZ3U468pEae7eMZWfgf0R8+EMAv3lp9SdYV+PNqa\r\n2ftzHvecWcxbBvNaE/r1bg9iN3CnfZhZ8JbUYsj8r7/y1IvirKrsj1vhB0Uu\r\ndqm7U0GHh5P+mG7lOlq+kF3jxEQVSk16lYAGpja13+K1PvFGb1GUlLci4zUc\r\npBA42bq5WTjRawZTUjlE71QHn95SUA7Zmmo=\r\n=KD6i\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.76_1659480199979_0.7636024894906235"},"_hasShrinkwrap":false},"0.6.1-unstable.77":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.77","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0ca5117be012752ea88fc437e88378393d7c905a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.77","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-umJIilC8L+kcOYXDYgEmIVFt+6fwnanw3VtppUa3Vyvle9rI8TQ9Nh3dZWMLBH4ivHokKvabfk1CVVH463t3dw==","shasum":"aa6d325c459d7fdcf921a437f3400716b00ff783","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.77.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrtzo9tsLeirJ/viX9G1fQOq5hRWY3pjZr83ri16//fwIgXBpOy2gTKsrPhA+RuEgf8eH67Jj3zkMJPB/TKfCM38Y="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6bSuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhFRAAhLlHYD8anCeAhhKMu8Jcdsika1cd1jqX6VBbJLhqadyX2xZ2\r\noYXxru6crhLZKL1XRl4bAyobZyr/K4vxDuXWNOFlqzH9nK/0Usi9I/Fijgud\r\nGJL1gY9k8R5NucXEaJiTy2Cav0D4rU+L61CHBvnFF+AKkkFSD1VfXliIO9XN\r\n8kJ0/8f8bD8zJkw6l7jeBaSZT0dCeKCPTnrK75a3IT3lKoG6Uo1nvJ+BErYC\r\n3NehFCLPqBS+FWS/ecayrIJJoQe66sJf/okFc26QELiS9s27ythWU3Kjvawh\r\nXaEDREv6uhG30ml51MEtf9icouZUpgXt4qS97nFclvEyAdVkK9FwSA0bAa29\r\nhjVRH/8ms+TslCZqw7qIDEgL2ReqY0XHyUl4WNiuO7U+f2Wyjyz2eZ9ggssB\r\n7HGFT9I9AXlv7e2JTKdxqVgP9tzrd9j2bt8iKrTGlTRk8ZnaUmqPKV3Va9zM\r\nhBnJ3elJoDco+4NxWjaUOVPhSRwo1u8ajYqkDrB2dW/S1Bp49ol3XvHn49ul\r\nVLN1375DtcPhS60DC4lgY1FMT05hQJ7In35VgkBnhz2t0SWM65x3EZHDyeJB\r\nk1HZf1EQISLBiqSDb0IRYkWsiagy5h3eRc8uRTxhGtwQCbDqfQdn5O+gB6Rw\r\neDNVVPnrTtl80TOff0tQ4gdPNv+eQg0jruk=\r\n=c1bG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.77_1659483309765_0.6998733010303886"},"_hasShrinkwrap":false},"0.6.1-unstable.78":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.78","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"689ad12d9dfb15b8471e7b4ea4bd777493ff5bd0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.78","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-fY8d7WJDzyWzwyeAu1gA1L8LdyHeKyNIIZb0QIm3KKy5hXSKqUX/lEU0EoROjsPjqAciO0kwpc5TznMWkXivVQ==","shasum":"85b17d7e1fca745038aa3d628ec982b8c543608b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.78.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCoR0wyO0K87a0boRuTajGJENtqDDVVOkeirsKFszsjggIgJucjQamc02RjYjz5Ag3jT0653hHLFeLN+ZBrlAWsgh8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6bs8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYQw//SoJjdG2DwUNtsCtxfSWIAjJJdJxQbHBKVAGnGPwIy+kSQITf\r\nBX0uuTC2Tw5C6121yU25eGU1rHSDgUTsOUlQNNQi7bqMMkKokkTnIG2HwsCF\r\ntnZmtj1X7K5hZl4MQBjOPOfw6/jDLTZ+ZQERKAVjlM4JNviLPbxTPXaIR3KD\r\nJTB1uWYgw26+LVuSL65TFV6ryHGHe5CwfNIoQ2rQmep10AZcXBiTUyTBlzIt\r\npmhOa++MTpjkYAFchSoo7AkhuDP3MGIiWxffUIyT3YRMO7nfHmygP3xbq721\r\nKsFX5vVzeLYaEn0gNQ4zzpkvanVdgLT0h5VE4NEHz45J6Ig+17lWwtPAzffm\r\nU0S1b6JkshMEIowXgh6D1jGZsdiQEtdXX4KUwTsNIleK+HxxrIgUkPo/DwV8\r\nTNOIfWy40/lVdpvOww3S7N6YXo8C8SYpna3Inizs+8TJy9ITeL6JahvoCptG\r\nOE9Qyegq54IMwnlmC5+BauHA0R43qBVwzEW+h2UM5H4bTHRaBfsracgcGgYJ\r\nGrE4Qm93sKun0O/bqEwD9V09ETXVTsMbYtwybeLGORVP00fmCUdDcYF8lEkw\r\njNcD3hi1GtSlhEtoyas7nBGk8s1+gp/93mdlUDb7/jkxvTbL/su6MYxvZd23\r\n4UiMGLIMXtVTAqeU6Mhi1OkHwVVIb9Ds6j8=\r\n=XOY8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.78_1659484988527_0.9946654947962013"},"_hasShrinkwrap":false},"0.6.1-unstable.79":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.79","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"ed4dca756a3a1575a13a10dd5ca757676a7aa438","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.79","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-87MSuMaI7qfLuVHIGljchHvutqCYZT/1PzblyC6xdlfirZZF+YwG8B+eFrhAVR4vmHnk0rsEyw+J121LfDfM7Q==","shasum":"e361254fe63687446304b9d4fcd2cee8334144df","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.79.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjWQlbjfR2L3moVY0TjYa8IztH8xrrSEYfRB5GVe317QIhAOVYhqP6ye06vT/5SgAOxc/X3b7SrFVNHFRzZEn+VAww"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6cCaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9rw/9HlR6IG8dTur3qknCk2A4wHf/Qdaxu8ZvqQApkXQFP+PqVz23\r\nGsPvKyOZlhv2QRk31LSZg/fu01vkClaUTpV6Ip7xg/mtAzixdXx9L40ZrhrH\r\ni4Y7PUkL/DtJN3dXTdonN2pEGJDFBsQHgkZIT3Gmvm0EZmvY7JArGeDoMGcQ\r\nqkYrHcsCCERib5+Nu+2xGAg12WioYS0t9JTdZJV5gsBVZt2KWhKhP0QzJTw8\r\nwG2+25SdcRdi+gavirpPtEW9w9xTkRzmPRiizGEE0+BQ1/ggX1azDUbDlaSL\r\nI1AwzAxrj73icQIOY290IdvzE/HZDEmPiUEJYfXVTcE6YTA39RUWGTGQgzyl\r\nXAAWpTwsy8wI0wD+Fe33n1lm4/lx17tsvhUp2ns9pQilZ7B5GbG1D9udIW7K\r\nRDvV0NmptwcpSXqA29OVk5Df9+fr2DgdlUbaXApFyyjZJim22nE5dzFafkSI\r\nuqguWSbUBFYzG2KyTVuoKYXrb3DBsWGPMkiW3vuW4+gTNBHNkoWalMlJcQ6g\r\n3v85KqtDaXVRet17hvlmKxvP3nFcPDruRaywF10JCX19K3oazCIjdBcHsJ3h\r\nA7zK/xUxpWLtyPQDkAP936nKH9VZYFSgtVzzZh6Y6Bvio9+Ep3Q9t/k2GCmP\r\nw5trj7r6rH+WkDnVs/QJsDoRq4zpBfiQBak=\r\n=mPGR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.79_1659486362459_0.08334996469199973"},"_hasShrinkwrap":false},"0.6.1-unstable.80":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.80","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"35f316eefab395c1ae2c1a279dc43cd8de6cdbae","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.80","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-B1Cfj5gstlEtnxODQ+S7eJxXx5LfNtMb+Ri7+/Aq3iBgU0vNJNF3p9Rfy64E9+34Z6UnEXksOGAibFCOmwEpeQ==","shasum":"762ada83d8ec3ff9db0db79b1337162b2dc12ced","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.80.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8xOP5ZCr451X6jp4KHWYPMuXtgfm1+mUY0TvkWawXuAiEA5/WqeEOHEh1lekzY58rOnLJwNZOiNWMudQYAtwRNIWE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6igVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+3A/+I0eHMgKqyiPwmcfx6ZQ6ku91F6gEnhZGslHDcfF+3n3mE6Ie\r\nrNF3GcY824WzZLYH/ioXdmYJQm20n0GfauOWn11p9S6Vfr3yB7/vWeuysV7o\r\nVyCFXj7Om3ubxCvIewlTWF6UuIES164RZfJsTXjYZRX64YLGhBlDQqmUBDNr\r\nfHU1S9ucFY24y3FwFCTX4ncXHcexioumLdBgxM722hg6ll6obx4HpsgoyEdE\r\nYoez4xZL6KrFcTpYA8DxmZ6ieACCHvod0BI620yM+29bsKWwRTkyoTbRRX5Q\r\nklVCoRrNTAQHc8EiaascEFtfVcNH8yYDuA/JS4nchvyqf2OIx6v2JaKl6/5I\r\nRuDCm6zQDfeRMSaK0Ns8nhBxEvyBahxE3HlfSW3FQqhsh8ZMuQcjULZd4z0b\r\n/B4WGuIO79tbuqfG4xC0IcR5AOYdRibpt2FUIWEdJFga2oEbpJgUaCNe9dPA\r\n51FaVyjg747XrRYo+Du8KWt95us3cGG9CGm5L1oa77UBhubSkkQNa74jgBKi\r\nnltymxuF0PgctZg59pNdfjaNcq0jZpdaBaK2+q4+oWqYmBRDOJ7AOK9qhmgQ\r\nVMFQjC0+IhS4+ToDkAWcaNQcmOOsErnWmpFljQFVYeKjf/NzzoyC+AUBioqb\r\nG0b/4/Ws7CAIsc1f+mZwNsq3DXMahvSlKaY=\r\n=buGP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.80_1659512853631_0.35984960952865674"},"_hasShrinkwrap":false},"0.6.1-unstable.82":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.82","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0148dea6b2a782c547e3e453bb933b300216ffe0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.82","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-E83pzVEfDaB4o345d/fSiOzo61fkb0fg9hvOg7O6Kn0tb9VN5SUxpxCCO6RU5aReVa98fTHcCt6qTSa8sI2z6Q==","shasum":"e921900a5c42c8640bb6d622fdc3be0bff1be85a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.82.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtu72kmjFs01Jom3yBD7B3VDFZ/JIBSi+mB1qQ9pHHrAIgU6iUSZZIC+am7LMg5YmdA8af21oVbG9OMLCOvizY+cE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6k1jACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpaSQ//U9gNsguJf0h1IEvEmRrZ+PpZcLOzjtKT+DZKuWBhKcRHrz2A\r\n0DrSJmpzJ25VBN04s0k8DRKhCruaB1fgayaIUhVc/QLl65UbUEsxKSXgz+SV\r\nr7GdXGKIW4WLPDAyciFkjzJWTamsOcbTMfEyJ7vytnz5616gZGYLjcwd7to8\r\nzNTSX5INoxfQERPVeum2sUXhWWFCfg1c2PF/VQFELnYfLKDz4rD4NKrTLzfP\r\n1cvH4P7sanEySImLCbRbe/DNxlJKi5yp4pgwWe0k9pAprSvMLtwbQ1wPSKnx\r\ntxpdn4SpUueV3TuT+/oYya1rH5D9rgfaUnaD2zO9SY6pQyGuDs5AniR2eKCO\r\nfijdIMXundQ4IFao+TQmqMVlqslGEND21Cec2bYalMKWnMZvgBNXFU51z3Xj\r\nt2M4F1k7RIzTz807wlKCrfYqWqZDnLU2SZk9pPCGu0C2qq3cKDYD0PvOlMTW\r\nz4WNdMmqwAHvBrP9kMt4aQqb4gRQG8BeVGKrEFHSP7nccVivD63Cdy6IbkAJ\r\nfRIIFBQo8aPmKVGuA7d/rPDoPGzM5J36juXeesg96sJ0Bput7NtSGBme9mLo\r\nsiKNOYL0mgt4cYeSe55t2vpVKpt2Yp/RE2iK47d9wZd3Xe1LD4VT83f9sZe+\r\noBqxk3K0rmMczyn/Sx8cpuaEQGXbjD3YuVQ=\r\n=3/OV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.82_1659522403678_0.6964845085311433"},"_hasShrinkwrap":false},"0.6.1-unstable.83":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.83","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"996ed7bcf5955afedc71fe6bdde1fb32200aba3b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.83","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-BXnYOYfiAbDUmsLXMjy6f6CT1r3VlF6Z9JcHUtpOdHL5aANMyiz5n4jXDFe6daWhgZ53zt7A9K6ZeSQVY0zNiw==","shasum":"65f606eeb85c9b20ac5920066ba0ea356254e685","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.83.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCDcvngRHfwZ1OG8kZnOdGf3th6ZnHDt/4LqV4QW2E9rQIgUFG9qFRBFtbcsx7vbtkXkjtzNnrOH5XHg1WgbJNc57M="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6ntEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrnzQ//Soo0oGSTuTiMHqubW4NAyKfRNcnXnljGP+ks3UHfzKlmzLac\r\n7ke3gVq8aWJlrAHJuBojvjY1c0rfZCzZVhjgvUmZufGaRz8hexcLnpqR5+UF\r\nHycISv1x6Vu10R3lSlegPFgC1vPudLMuhDeRsJ7Ur8ShBykOqfVKtnXnSd4U\r\nHcOVLKUtvl78kBX4xVG6SUiPiUve3yp5z58BC4Z9RIiMaUK9nUaF47NXtVfZ\r\nIfEdvwYf8Tex2GBBQdFqWBjpLIbi6XkfKXt6OmYPec+BRVmrS3IHi/5/B6o2\r\nknlJNVLJetvl2EEUMuu4uC8xFGS8qScpSSr7536ccRJ+g7xT9fZWSBFRqhrj\r\n6fhb5xXqy0lOteMLR8+FBdTEuXfZUz6B7P57ijlrV8Gll/1K1FErpmuaA50P\r\nELMbOPhyhR4Imy8cAg4/rHJsYLHaB34JMiaUl27hCaDUS14IQLr/T7X2j3x1\r\nvgBxDb79VN2TzQ3CfgWCt9bbBIQfaCbC4NkDU5RBuPOxsHtd/2Q7zOtmLwli\r\nd0aGHb6979dsCBJI74zqtGQ/KXf8BZJxIBMyD9hPvPr7+uS3QQZ/lFLKiGr4\r\nJ0MUhP1XrL42KJuVsgQdTaQ+FySN6SEEF8c3OqcdYA/BAUB0J23Py3pDUfOy\r\ncSP/SiabD6YQnYokFkHNJDk12i0SYZU8CFE=\r\n=xa9O\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.83_1659534148609_0.8796360352899695"},"_hasShrinkwrap":false},"0.6.1-unstable.84":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.84","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d4b7207bc5a97e97841c9236b8dad1b6cb6bfafb","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.84","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-R1CoaFbqXL0j76ty/M5+1pUTiZ3agzxwovaoRgqG3i9O73u6EiSnrfO15MCXPQVXbuzFdu/b7d2L0DEtHwFZVQ==","shasum":"f62688c078be7de173ba79d922a0123c4aecf25c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.84.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDTvN3duFLblVmxz9FPCj1/nH3ZwjzgWt85TNF+lFol/AiEAlxZuJDGx36StHP+ZO7AlAxbmBMrsX7g8ooLtGwC8sVs="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6sGaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr0vw/+OpNH9RNryskKOAYbLTLsOKnVsrMErj6ycVUnEfL3uhYG70dV\r\ngSTWITSPH3ZN1vq2enPKAd/oCnjKhAxC7/Yj4RGe1zVTVIIF6S0JApF1gvnd\r\neuGux1dpKuRODxxVTojvNwuEt1bur4Ua5gNrnVDUKxW9Xju/MlYxBEiTeeDV\r\n5ANkXVjpLGs45jYMHNNU3BKRNRi3Kxp1rlMULnIz+gqtyxyRB7uGc2z0vsxs\r\nzRXgSEhNbWCNtUa0hmb2DeLazJX+GS49dNPy9QXcBA/xntxx7FSEVcVPH/Zb\r\n0euGrBHCu7gCZyayxv/9s8ETO0JC7BrVxlZN5dVTpEe/2nvs6m6a0YVfYvn7\r\nK1bPvBzWu+cx2gB1YbTFtyP/GCsGqd3X/PDqbVqfglDmn/Zwi2szweBlFIuR\r\ngaNKgIOdbzJ7ssXSDVYM1JPkopsB/t/fy8l4/0gLGQL64DK1olo9ApF8dEGL\r\n86Bcdi+2XD4+0UFyIiKRXBR89DJ1UmBJqUYRXIOLY/o26zf2zYBZ8LGkcv9d\r\neJ8kw/BPUnc46OZ/xsBpwBUKOlZKvocP9bAo6iQNR/BZUudzQmXX/0hf1rxB\r\n7QvMEHbJ/mWpqN1zR4W5HfZyB+6vs5LH/auJvnBWP9eLxjXHNTPnPiSPZbvG\r\nYxFjMvmQpTvbTqGRfs/l8Ug+UPgWZCNbEYU=\r\n=LPV9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.84_1659552154298_0.455374462374009"},"_hasShrinkwrap":false},"0.6.1-unstable.86":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.86","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"974e8371a30483c7496bde1acc3346bd8f86661f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.86","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-RoYzr0x/dlyo66nTjgW7/cByPEuI+HoWzZPRcIYWUW8+N7S2qT59TfLKVQBt4iUNHZoLz60NOfMnF/zOCbKtJg==","shasum":"2f19d306f82d2fe065f2b9dbb2326641ca59637e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.86.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQxm+k2ZrLrnkLIDVUZNcK5MHlY9QpYywDBW2L+DWtCwIgGITWGyCu3+eei3lWslKZsHspeDAzDhQdwZml06iMXcM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6sQ7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRpw//f/adPC5LVCMdKXcz/VszKXhXhtft8mKU9L09FPe5V5tLlSMC\r\n2mJBGBuksG1+zTBQjoPAt50Y6M7Pz8rqLr342LY1hFCyU0eyTWqL1ieY4+dJ\r\n5EObQvp7XjSAYXHwJ3/kIa4h6D8bDLj8xl82d8zhp/olubHr+6gx2aLI4hlP\r\nMskj7Ubprkc42po1JeSBtVN39CT1fJ60BwBupBImZfPz5k87mydadBm6lTn+\r\nYUwwHRBG2BV7l7kQ3daYGe+inD6t8ooD4amsknwTg3NjnJDjk9zQn8Z8KGFJ\r\nA8xuv4K91UdU3DFu/gInGfULgXJ/bPbf9jHJoW9+wqAE7fMrEbeXcR1YT3FE\r\nlbxmTiHJvIi2VtVEAtFrdmNStAsSkQraqugzQXGxw8HK2vRL3JCpe0QFVdNT\r\nrowpESpmdpPu7BmFpIgz3hU/uajYwSXpomTOyD0LdHjoBSbQe87aTTYBmWAE\r\nCQLSYtRUF9F8lr6pVZ/olPfEsmMPXok0/gfTQAzxLxEUgOcO7CikCD7a+JSO\r\nCbT3bTJH/eDvXAw2gXWiZcV30iu7PLGlBduodvmNGWMoXtsZPKbk3nrb2px8\r\nCyRDJWDgP8tQBhWEKaKPqpLHg2wnF9PXpYe18+GQHu+WPD8AWguXpJN0fvZp\r\nJnt/TA1/hwpMlOexoqoRx9Pj8AwnX7tJ5B4=\r\n=gYNn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.86_1659552826826_0.8858556330446707"},"_hasShrinkwrap":false},"0.6.1-unstable.87":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.87","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"86e6aa3b5d64eee0765b6b0d8a049dd3f2b5d4fc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.87","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-9bLrQmG8cd4zIJilKfq2xCW/mB0ME0/jFqoVsOpsE5GCpZp3BM9ViIvxWYY8o/4zA3g1xcfdJRcX8CiI+ndF5A==","shasum":"aae1794cd5309661546adbd0ce3de9eaf5e3309f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.87.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTiHqe3jWJEirYTf27syNKVeTVICWemEdwJz3rH22q6wIhAID3Pnl4KZnXYCxgRiIJt+HDc2NGA3Ix49N2IEXhzqHz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6tVPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUIg/9Gfc3I3sIiIO9n1RvtckjA6fl6UFwb+WlG79AsTwD6Rl8zQpy\r\ngetLv8iED+fE+SInw7tU3d8+tg5csuwImePeXErehWxMVzgxsCzRGMJRi9Fl\r\n1yfirx9PSK8sLrcJUrMCZEp5CiV3eZE8VAKynsjReIOm0NCqWGT6sWCtkMyX\r\ngSMTGPEoxwYpJHX1XlK+Kz2q9AhJkCng1lgyn67S+IAy9XU8qVxUpFl6HSVp\r\nSviq8QfGuLerDF7BIZK7v8Zu+vFzJIa6TFq385N3V2Pj9q2RrIHMR7N4UXJh\r\nNrnEtG4AlPp0T7OQBBGVyZSHUSSeLJvf3UgK/smuKuU6mZ7cgRZzStn4Ocr3\r\nB+ePBZpivp2Tz0hv1rfo8k9ZAlY9fX2wpW+S//wtudtIc1VRuGkLFsI3aCw0\r\n4aoorLbCsgFRH+abZBhxFrRRZaX+JmR6TiD7EI/Idj+ArQ9ulz6xawfpJdnD\r\n5WltmmCe2J1skDzWXLeNiZtFP7hnipcLoLU2MCLHpMEF51+yxixsAwKGd0cv\r\ntq+7y1m2YPsIGQs0nWYHaOCCfxuq/K2J3s8KzjzD3GJemjXLn3QMl0g/mqvZ\r\ngEw0p7qfQllS9zRjjgoKbmshWrs4IGQu1fe3nXoZyLj+7brRzQZOr/6jQd0/\r\nZ4TvS9yFkd5Updi4NKRNBlAfxiVfIMVXj2U=\r\n=hR0P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.87_1659557199501_0.1723838043451329"},"_hasShrinkwrap":false},"0.6.1-unstable.88":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.88","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5367e3400bab10edefedb6bbe710089e85303e7b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.88","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-VFSJ4RDGLnmlMUzoxjQYyG7ro/Y9UOULE0TKeNOT6QhHTjenGK+yod4WrMoCgut7SDQiiuwAoseLDSEgiskPbA==","shasum":"b627166771d40b90c0e07e8306ba8f8f1e0b56ca","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.88.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzl4mMsBMiuxPO8DaSnauDc9VycoNWFMmnxL03EKXhWwIgUTO1+H/wu+SX9yaFYhV/z1xS+CYx/Ea3xMUgmsX0e+8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6u4LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAVw/+PjrZjfftusDMVyZ22r1n8lwSONLHQwbjMt9wikiGJccWeSLf\r\n3rBkPUobOScS4KhEXFtb7QoWWTa6Ez6MR3SxyVq08U3bZ3Xw8zXDQZad5Ovx\r\nxIOhykSSrAxJV+a07QlaiJVxp2WyYmsdJzUVy3pqNIivLvv+ap8LHZEM83id\r\n9/JsWECQxDEgqu6qzt5gGaQ3fXUhAzSt849kTeKuKlFZho7nzF6i1dzRHjZS\r\n0vmrqb9FHSocZR7is10ISy2Q7qpwm03jOTTsIKwXEenh2vRPPNT7uDIMPoUO\r\nfC6gblrP2hsC0q4H0V6NpDkBojHIzk30w3jOV+yTu4F6Ac0o2m9LuN0Qk00S\r\nNWCdALOXaZiwmMfWghtpAn/B57ap3+CLGqIu5J6RQYV6Aq9ODBRvActA4qoq\r\nvriNyvXgpXP9ImwqedT7BJ90qEB+sOaCEYY8Zf8vxPUGHz3RNkOTjKiTu+GB\r\n9W452up84NH6GomK21SxIFc0SESJE6PQ+y/xcBK56B0Ka5VraUs0VcYR2I9n\r\nSP1B6gaoOhMYG3otKQ9JyaX0Rh1NX8+uSZphQSH2wP3pMT7Mtdrd5UUIr86C\r\nKFb1r0R0fdjRiROyiWlEvz/k7wo50H2rdDtsIS9fCngxzs5PCP0ZGI6pef4k\r\nhDpvutfplpH2OqumQVGEhROhrQT7DR4ZrYM=\r\n=xX2s\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.88_1659563530798_0.7267115421897747"},"_hasShrinkwrap":false},"0.6.1-unstable.89":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.89","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9acad48023206ed51a8e82f414ea5dc7892884a0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.89","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-l3OTDr5y1ghO5RzqM4U4dfa630p0mO/FxEFFjfCk20n2O+WXAGZuKTdcwFeqSrVtnsXXi0Ddn+G+EyqBHOuLFQ==","shasum":"23831fd7902b9e41a3e746766a54cd642d9cba1c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.89.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG3n0CqoJ/DNDwhdyrKDPd54vFPs+r0MOIM9QrZ2gBd+AiEAz3touMW15qgfs0LnFKaveRHNvPi4fezwJiYEdT6EyRQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6u7lACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmom8Q//dxYotGlmw8avW5jttq2Yz9qO5Sm21RmlAg/I4SqWLV7qwztZ\r\nsnG0Nsk0boMvjOw7xvsFXCyxslvqH4ER9kimDufQbCmR1KGqG5nUDsS2wMpe\r\n07B78xcw++fVPU6kHhmnVe3aj83tU36hFA2z+NOoMGY7JYBl/bHmfVIHbOes\r\nsCx6vRox97ElFYAY/+Z9L9Bo93QqYAlxuE2MAQtmBVO0grzZzg0EYNGrlVFd\r\naaClWqgISTwQbpfeZ/flP/e/56e4u9tm/+fSUAGjGisy/KrgHrekp9LHeKPM\r\nU1MnxtkqSj65qFPaYVhhmyGCr/2OWUENcbGVc4qhHMidI1Ekg4MPYAenRV6q\r\nVnrBOCXHzErPV3ViTzQqQrhgt++1dkTmYKjDN2iYndP8wba/Z1631t0A2rCu\r\nV9ZwsN88bf1ZYcQgOLQh7iZ+qr9Ii1ZGiKCD9B4AYEjDqq48mkdqy/PuGRvs\r\ndxc5MOK3z2Gtz8BOCXEEoxKxTgyaD5uv7q8YkHM7wV81Yzu1qYPn41RDvRCK\r\nNswu6jeJsje12KzmMnV6Xp31n824qvm4s+xx3GhDOwmuxHEUkeSw1RDQRVmd\r\ngVedExT4uP0wNwAksnSXCXvvJ+JRBxLCa7035IZN/x1ONX46Bp5HXmcTSCEI\r\nST9uqWmRqjIJ4WChQIe1pz4qOc8d6PMap9w=\r\n=B4U/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.89_1659563748955_0.8907284199104346"},"_hasShrinkwrap":false},"0.6.1-unstable.90":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.90","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"13f402a7a6a0b7820c7961c83460e77920950b23","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.90","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-oh2TIhTh6HcrKnOdFAgp8ygk/s420lZOUVE4d1Be3gRPXKHGV8BOvwrjVJrpLf12KtBuz72+rvQkSQToiPzCnw==","shasum":"727e2b486538e572c096c455f3f7e33ee0b6534f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.90.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC73kQVWknrEU6K4JQX5fEdrR3Hz3+BT85P34T5wEZmVQIhAMKsx6H545WuaQWmxKnYAQafpYlcSw6Uasfaz+inBUAp"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6vIcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpv6w/7BilGSZbKGqBRhsyFFyWWc/uFrTXIAIkPiPHvsIXD9pV3jLSy\r\nSZqFMwAUs+LtBjMvfSYgxZABUdBhPqRM1MhQwsktJ+tZ2OLipfllFdsTr6eY\r\nyU+FEhpyGaPnejohk2LgQM3u0bk6o7Jj9PhTY21gZU6CpqW+LE9r38HbONDd\r\nF/MRTtu1uxppPtCBCp9zef8tf5Hq5xoKtkuXa8XtpvctTeKRINDTUVrxvn6t\r\nfQ1lsqgrcFYWOhvngfMSGmuAyGQDR1WaECJDZQdVx/xvJiQzuRN+yFFpmSiL\r\n4mCVa5FKkVyBCXnHFispgg6iZ8cet0LJlPG2X0X1ku0sPLw4mp74Cmh1Uwhx\r\nT49lcZG2fw1czqIBe+Z0T6syNqmd9UwfmkR+gbYl/tXcrOWwlLSNv+oXPw71\r\nhfQ9P/u6D/CBRuhnoKYwkLZv67pFEyWAXpozUwlTUrLq+SwQaGzpPxdC5M18\r\nf0nLzH9iO8nyTve0WuNYAaOJSlEhVyumjBkMhfZU5e35gc2fKmG/HgzXt217\r\naHbfdch4JqFAxKcV8ik6Ue/MFsLH1+EceqrbXJbwaPvDDsgShv21TjsiTeoy\r\nJNSTPMvhCtBJJ7GAM3Uc4JS1jOTe7h4Dc5AK0cCMDmM89MLJFlzWy23hZGjN\r\nCkgG1Ds2HIdl0kubrpQolvkmIrQZ8BV/qKM=\r\n=5jG9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.90_1659564572520_0.6890390498810601"},"_hasShrinkwrap":false},"0.6.1-unstable.92":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.92","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a0b2849209ca15de97eceb0ebee53c21f20bff80","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.92","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-jgklQ0zPfNcQAnuvaaUIozMi1nTJjKgzuDWJn10VQr6fn1+O68I5OoFz11RPsjAqgDk4Uor5GElZYZVwhtSvRw==","shasum":"f884f52f159d34d2a582bfa3e020c7911e464093","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.92.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWWw5exsWUsdPgJPeNjriXWOLdjXlkoP2uMBfS3rjKXwIgcgOouk/5oBlliawtzXaTeratuxJeBPnQP0SJPmB5LIU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6vX0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpm8g//Vgkg1bRJVqkP7BN/J7XO9+9hrZwRLhCbLeTJ+T3tN/LPvaM+\r\nbM7XMYdpvPFminIQ7XtPq6tB4V33gZ7bZNIHLkScLxUHev9lU6h6AGvPJl96\r\nOTVDpwzCDdtTvZ6JYNHxRhSDttV2lG3TLuF2p2FVtMlmlKK7nMOgC+HkAOnF\r\nwZpAVFF9nkwFJXy6DDDOaXAUKLAUhu7oA+bskRYdQ7Ezzsg6vgX54cbJ/9NL\r\npw1CRxcmg42HF0vy8V/IHqsaJVK8ebYjV4AlA8B/+wADUKWBx0bTGoX5ZihU\r\nF+gnTJDrNFhkqXERmthrxtJtkmRA5VcvY/XScwgxPUbZyfWEwZamsG8CYJn/\r\nV58aLdWGqRKPH0h1EN0RK18LX6IgzlR7hV6oRs1SaCo5y8mLGaJcLuIIuovU\r\nsIJI18Wwfw1FA9OT2B0nUOpriTRBYA5KzPi/SjHMFLf91VXDAuVE/tQleKV2\r\n8UrsDvmk8FX1JlLyfRZg4fbE/EC60Eiw7y434Qb/ftcXpWWoDE5uCLHcWUEd\r\ntU+F4SNG1+fudXt9BkfJ5H3RBQGIvuGBhD7xrgJFBiP6Gl3MnpYRj9l4b+ZO\r\nZSsQkSc9+bkALesm8jSAJQcN5/yoDPB4MHhGBTT6ZygINDF5W7hfmm0p6nKV\r\n1J5Gnu2aplAAmAuDeBcGLqUgeLAGqZfVsyw=\r\n=hu/j\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.92_1659565555974_0.4815088624083059"},"_hasShrinkwrap":false},"0.6.1-unstable.68":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.68","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"347272ddc49d8bb065597a9f5bf789227fa5051c","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.68","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-ZVdGK2opboyr0VUr5lC2MbChjdFjDq8FCmmGKZQ3lXniYaMDVTIQ3dQ5KKnjmlDoXOEAQtFfPzoP45YmIjBhbw==","shasum":"9768b27cc86fbeb0898d303c6b993da7f93d0fc8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.68.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCHxUMGa1RfFTNnrw97kfBeYo9gLQO9/VRO4bu4A8Kw+gIhAPOb9ADq5M37NIyhMbTN0utXTWg9NbMj7yenf7jyQvrm"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6vZmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmohIA/+Od4gbIXwpU1pkKzIvxQkQvpcyrXEnAgmo3sBFRwLgJW7sKRI\r\nTX9fV2UbdrX9Can6Db0radagTjYXUNL2+Hmp0s3jOAeeDwYklxirKPVX9ubE\r\nYrCtoapz8Us/NFV/YMyqWwSVz/VieTjv1KpO/hw78zAAMgkFgqvuvCldeI1q\r\nZyy6XwifnPuGvmyPLPCc3gRInwsA/SiZKYjPqq7uQ/ckBmCXuaC3dTl8UDEv\r\nwyd5M/vFO6E9L00Eg5uj8xrf+dI2S+E/Ur0jfFCyG86YLOPhWuQbVQYnT6su\r\ndXf2Y/PDgMOvlmPQoln/l3qZL1Xk1mmPsMyO9XmohJCDH+FDXB2u/DKJKu/T\r\nL0ISR57acWav7wcIpXlqHNttLTmaZmsBJru2+CA9nZZTM03k6VsYC2lRtZYs\r\nKWsWBpZfXPEejh0G/QUI7D+1epc4hpczia5RC7RBAapZFVVtQkStC4IKPuZb\r\nuigU8Bx6NA7uJ0z0nxB4MSfVZqnvr+/+G85cT9wDtb3ZuCVdn8oiWYBF2ftE\r\nvE7Ro+1TAZLz3jn5IMJH004pQvRNpILxxkqGnWpwFe6FND0m3uU8bygDQnCg\r\nngLbs3S+f7wFLI/LGkVhjQrsuDdy2Ff26yT958UlokQNOYlFHnxxMHS79+BH\r\ng6byFDR0l5bpQYX6YXMnkDFhWwJ350OJnFY=\r\n=mEWP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.68_1659565670685_0.2603429846864245"},"_hasShrinkwrap":false},"0.6.1-unstable.70":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.70","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0d608edd8a515687ecd4dc1cb612cd8a08474429","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.70","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-bxJQMxB5c2F2ahaaLnvErdecFBPosnzqG3FQmdYxuXLx9RqERrAq3wcG92CfBecfyXIrQPj6nDU4XeXXQ0ev8w==","shasum":"b65b73c42fb313dd81addb697f8b9a190161167f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.70.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD21NMFyJjUPia8lBzceEJd0HKllSkt9vPlDnDBNThF3wIgQZykvOjhCZHRgJ8d4Q3wYUhLHFjkrzJgNDztwuEoNtg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi6wcsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2exAAj3qICycn6ebGTr/YM2DTV9y6p4bFVGFDT1m+IoBvZlfWcivy\r\nXEHDWfjQrm7PmIFx3AYfEaSPetcTgmbD0wKtF6UOrduf5Rpglfv68VwrkdEB\r\n0CiFCSSlhRDYaeByZ6IuUHDzANY5RkbBjOKL4aIT5E/ijt3hq/Ue/8YkiIaF\r\n1Vv/ikPR8nDEicuKNpOfLa67d7K4PYyWA3uHYFWqsVACzi1wixhPEP18w0aD\r\nHp3DOuNIt4hQSB2y2wrD0FHYBJ6AflzKFlPaii416EW1f43rhonrnWzh3FeU\r\nGbSamIkSyMyk+QVHI9af/98x2jUXNeR+wGkO82apNnjX73f0nNfx/BybwS+l\r\nw5HaKRLclgERuBzeR2DsTqAhzz+jI69rG7tLwACZEGlQjViCg8DpvbUq51Yx\r\n4Q2t9FsctFyJdSRmd0bFqS9cXOn466RD8oZD6QZktqeJjIyATWWjFcJiyhOu\r\njM7xGvhwDKH3iAlwtdrYcraO7ZGUYz/p6p28ABE6SgqnfjIWj9Z6wuqRALXC\r\nBOeFB2idhHIx+Wy0G9ZDmkmE3mLzSyUAjPJoZ31lI/uR4m79Nvp31yZGpbz+\r\no65nZSCBk3qGZnSwpjZV5YZIbeM2AFc84zL2uM6OH3XxC9b4Qji5YVd6tV79\r\nuH4W0qGTVBwX9lahphz1UJ7g5CXhoJsyqJ0=\r\n=rOO1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.70_1659569964330_0.3137152085609871"},"_hasShrinkwrap":false},"0.6.1-unstable.71":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.71","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"ed779574438feb5fd4c1927ca19c6fe41366e71c","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.71","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-/A9OMBjC6k7O495+JuQmCPW17V9VelWv0VlvoJ+AhF9Mcz/VvL8oyyvb96AjWhcqjUuzxONRYW6wY2EUqL4nuQ==","shasum":"839e6bb19c82b380a676150986db348784f2767c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.71.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDycalTqncLjuhNix7wube3FD+CV/ri3cRldxrqPkDsoAiBlUaaN3230MisPuGiU2aR6xTJXucgDeYSJvvlEDUmgEw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi655yACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGDg/5AErNColvnX3woPWzH1dm4/8rajEkecLVsLaK/xBceWOddH/z\r\n3YUcJt5xW8E1srW12Lt7plXUJobj5aYxqAxh+Awd031aSecUleO1XAStkJaH\r\nN4PMXHHn+3WVbpOb++I36PFOk1VKFO4yGbfKBFU5ileghwWPn+PJgrP181fU\r\nJdjrNZxsBfKJNER0A2aaXRF98eBI26IbAAtCEhq8YX05NegNS5/JIN3BmUCI\r\nXbwEzGR5XkfdAjHLt/eEnh5Ww3rigdoLtlcceXMndfC9CKM4QG+GpDBpET47\r\nDtJTBGWQqF1neFY0/5pfFKvgRiLgjC2lU+Q3Hy6lJIQS9y5ddJkdpNONBn9i\r\nj6DFAitCN7ohPyzo2dTtubBXGcqm+TlxJ6YRyWNOfkGPEk8yRIQynOANQHem\r\nsqRxyr7Uj1qIalrBhPV7KCBtWjbYe9CdB6GWmEuxmD3n+uhA5dlIdLx6osAt\r\nHAI7MLF53QfcchexscJ+FPjvWSiZQ5+pj5dsz9QCpxigBzzFSfjgJ0o79abF\r\nh2IABJzqxjxr7XoqbZXcdLD0FJge21fapHrzlhSZG5rYYaOmqNp44YaI1Mg4\r\nN0VpCtgrzbJpuq64t9c/Qi+2gz41rdxavohMk5oGfbGc1mLZuRR5+3kl7cSu\r\nZigsZoqRfrusltAOQ0WW/lifobZYfOO8gwM=\r\n=VJJw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.71_1659608690221_0.2915262933739209"},"_hasShrinkwrap":false},"0.6.1-unstable.72":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.72","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f1bda5b441d8b27fb883359124dc4f68748c6e81","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.72","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-xj6Q1HrWbhUEiuG+DPoJYa6HKTkw2ym3QrWsfQvkefRtW1nihot2jnWaOUzoqimv+LUiHnZlCm8zj2L3IpglwQ==","shasum":"e674efbafbb732468c4fc05dca0feebcaf91679c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.72.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCI6RFYDQHVa81vBP1AQ++Vsfx+qeD+tnuqvi72kBCVpQIgLAHNko6QerdyYPUPwX1xUkWhaRRJ6f2WNRxvtxV3VOY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi657XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp59w//Rr3Xdb/yLclSo6d2E3wqrIGJ3jewq2x997Mxef+EFqKa17OI\r\nOToJ+a9ZfOafOkXnh0cpJE2O2PrC4YYSzZttzarTZZStMImcZfwy6lspeeaw\r\nQgyen6lSvaFl2AqealgaqP+YshlHDMDjXVKqAwjyt3VkdoVSzwk/I5Ae1vWz\r\neioszNgphW9/DA33LI1mzRnCrC16HMpxAOlam5c59AEtH2OufvN7pAE6BYA7\r\nbn1L8LMZfL5A8k9BX7C+oU1iGb6yrlpc7/Y8kISWQFWyZ6/jFKGw9y33z8bC\r\nkTHKYr4r/hiv/0s+fLAIl+MHUlHJR8vEubW4x+MYLVFTi+xzPxI/O9Sga3m2\r\nxm4flMpjL9hwXF7mo2c0k83Kwrfxh6/kvvabW54jDfSdfMS7ZhZp0tbHdwy2\r\njYh8tpFQW17wIS3y8bAQRNB/F9wTMlTvk5mZWE1BVrOj3KZEp5ihB7OsWxgg\r\nL+ymluR8L9iY8XFa+gP0eEses6YkWxwY7bi92E8z0OGLze2GkJPf1tTlJHnF\r\noOrpMqEUi/VmsHqbvsZ/d0dkwBcROfuEFlWxrE9HQnQAOJv2hey+dJA0XWMm\r\nY+SKWmGJeTEyaDysgz25cruCeRVvgZet8cXjFjGZiRuvEoV6S1eH3Knt/b8d\r\nipdjDunZHT/ChI/VROT3odgsISD0FZb07Tc=\r\n=U/9E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.72_1659608791738_0.6889936451866778"},"_hasShrinkwrap":false},"0.6.1-unstable.73":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-unstable.73","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0b4514625e2771a407dca9a5083d18eeabedf33f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-unstable.73","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-SqYIf1sDHomBp7B3Khu0ioMIn4YHzo/3AS+7X0/wXUxiPCaWNg1q8YaApXP324BQdyA8vOSk168/v4PSGCalig==","shasum":"43cf8ff3c03b543f1f54da18b3871e45c705c291","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-unstable.73.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3MFX1W39us2g2rJv0+T1yXKVGpzNfJrKwTARd2jFigQIhAIC3Z+LDmcjEgwWv5ZMruLMu54J4Pa2ZYzMCfYczR1NB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi659GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqYg//fAikXAY4sJBvJPkJfKnkhv8l/XK3G9uMPrWcWbrF4lYnlmgb\r\n24X6YnWogLCA4YfDvAB+4VoSOVN+mqTzHUsJkHgGp8q5PIdSuunqCypsnss4\r\nbkBKManETI99+RJau0W0BIYPZPIkzH9ueqDEmCEYWtBXtj5//cmM9Dr+T23b\r\nfLH5wjJwJBFD31p6WWENc5WIQb5zIlgAC2nlybNRRM9DkEsFLJypCez/D8rF\r\nZZxSrbVtMkZq3nUgBIJ3k5X2bL+CccvyuWJYPqa14t8N5SRbVIAFhfQki4Bx\r\n5tfTSQKBk8F3yTyVk5pOC8VQ6+ibXGKgbJBr5l0Lox4wjQSTtu1/mE5lC+KP\r\nODjalkWE96gEUC6HCCQCwewXzIkBl7wqroWKVw1knFmYQOZmDBWAgKcWW38c\r\n16i5xwyhHB4p9TVipT7H3dYUDiEDCSW1Cg22zKFxb3A2AdOuviSDfZpo4nWs\r\njyFygSm43a4uqLpmvMMOWetUA1W/Saez7Z8Wg6bk6TZT8XB8EF07eDkGj9Ox\r\nCucXNLnLJb9AGvb7MREHFXSIPsXhGlS9UeuA8q52vNnTPKzGVhymIveojis7\r\npFSxdVkgKW1vOLFrIJBTZdbY8O6vMy6aAsj00dl0bWo0DZ3YjYl7rIUSgFut\r\nNHaeSz1PzjvuGJrgp8HY1+ejWtvGrzND/EE=\r\n=nfk+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-unstable.73_1659608901889_0.05214625934650674"},"_hasShrinkwrap":false},"0.6.1-next.76":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.76","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d3987b64fba3d460639893ff6664fa6e15178458","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.76","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-r1B5UUHbZBRmVUxfYLONJKc0qH9XZF7DdKQorU7swBtntznAn0CYsStDTO9QEjJ4TC2fm+Yv9n3VHnHA0tqhnQ==","shasum":"67af84b3136542d38855b1f5ca59a87a460cbfa7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.76.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHykclK6e5CBziNYlgpzHlacGgym8+4tNZD6isl9Kr7fAiASlVVEviZcLjfRhU6JgqAuTrFk9HLpBBFNyPh/sOiWXw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi67CVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeMg/+P+AMHbmECrbrRS+u7IMDFxMRkP7Rj9dSKD64OA19IZbo8fYS\r\nQJhOWqgI4Z21PCqf2VntwyUvG07dGzQvKsZHdUh44Od4aQzA5ZXm6AJykDwY\r\nyT/rWlMEWjNH6fpbYROXqnSlW/ybOlEBmzHh2ibci33vpIdAgtb5HPRqJojq\r\nTXV9+OWinN1Uo9kpj4w2oy1wrih/hPOmh3va+vcmcqI7MT/UgPj/gxEvdtem\r\n4O7YaNBee9jJ4cT2bb/2KFUqJTtmYtuI0YFru+qzZGoKPF5VjTRDgyKgzOJp\r\n+Blf04bCdQvyvb8LTmJ6YMO0GHh1GlVFa4RMwZaIBBlFjzBf7tO8JRvYB84R\r\nbJnAN0KQl9BTOJwzs3lcmQEPQxotlKQnBmtAyE94Zi+vug8iWIfin+yZ6kJT\r\nu8Mc0GNtnDqVCL3o3V4+T57awcamYZi/h9eQSO8pecFXlPWCV9CYkM+PiyOo\r\nrFmJAk2ITxbbHmuaMVH3l03Ewtg/gEUccFjHX5xldGr7u0LnfnzPqC8FgeWp\r\n2FwejG262uZmv7HlinwXggwbcVEArUKr3bx2XfA3gBcp6Bo69f2P4qsQU17Y\r\nG9VG0vUihUg0cM7S4axOTF8m9PZqHWz0aaUn5ucVjmFYiiTDpwCgiLU3f7bc\r\nH7kez83HDD9ESDrhUrRvFv/P1ncs29StR4c=\r\n=hqur\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.76_1659613332829_0.4982953731040869"},"_hasShrinkwrap":false},"0.6.1-next.78":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.78","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"1583f2e5a7807247270b60a7e551f2fd2f8d8030","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.78","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-24MoRraYpRmqifRiXOS9fpLl0MHKKWX7kfcOcqDlXxjIeLejeXB0HzV+Wn6Yd3+3nIDB3Zy6BBC1XLTk5ezR0g==","shasum":"5975badd5ab8db18a6a0646a6c880c1b59a37bb8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.78.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHHwI5FZdsGxvvwlGN9FWB4igcq24v6euZjCvpA8TG0bAiEA8WtOpMlDF366g/nna/tjbonfuPCYb8x5idQ0eU5GWQo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7UAdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrhbg/9HpJ2enxv/jV4S9ogEk9b0uiu2odU+Bt5+H4jEaOanfb7E2QN\r\n3IZetVAU+3MgMLZM0TuiC/NKy/QhuaFBcOLPbj1LvgbX0SswqIAKLSpqbrOk\r\nnMI7BLnxju4c26uN86zUNLUIzhwtHc1uKtW/slOlN+EuTNqKdUiLEv9kZz7y\r\nEBKYpYkduoB7MkUTEhzdyZXN9ZmdYmg9SVL8FuYrhWTcjE3o7EH+plVnj4NU\r\ntdV5KpSoXibW22ELBA9mpy8pp51bXnyTcdmEJZvRGkKqZ5w8GjfCVbPi36SC\r\nNFbeypAYK+VncBA2aNlRvYRG+6MxRUwdgfiR5Y4XG27h9gMMUIlj2d3qIse0\r\n2nCvxxCaXFpnp4PzY3PJbj8UcXzFJct1P3dbU5eTRjE+KKsxAD8VcBZfMB0M\r\nusdc7wL1/rh39x0mkYTt5XX7cjVATVi4rCUqxeuu5GTc8IMtz+hwB2U1zdqg\r\nQNemiEjR5d/TjtSSggi/VApOlW0RM/My3t7yIg+9aIoNRJEU+xRI2IcS+FTg\r\nHfJGhyxfpv1qHsK06BrtxrmcYvAfPhc55deFZI0YewR8tk1ukAcYjp0cI962\r\nrGJda5zydbnkOee269YB1ybA4ej4mw3QZ+SFrP7CMJKNXSTaKLjA66VgaaBX\r\nwNM8hqdzHm+03VuUB/xz+rO51w4dBLNiXZU=\r\n=TkXl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.78_1659715613190_0.5463627484396971"},"_hasShrinkwrap":false},"0.6.1-next.79":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.6.1-next.79","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"69825d9f539bbad080d96e0f2d1601d04d583bde","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.6.1-next.79","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-4AxbHKZ1MiRURhum66+8YiJGbu5eI9+SGcN9xSuAGrxUnYsV8aq+Y2KqRsd8WRy0EAK19VHuqHYGVlWQJgxBvQ==","shasum":"d23b415d66cc6a6d24b93ee494a18755e449d434","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.6.1-next.79.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzm/7KDaNZkCEAs9lf7ooo+iA2X99ziWnGSFRRO2mkRAIgRxjJ5PEvgbKY3qH2Jr8QVb0fiA4CeTJHw8izKufOtjU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7UGgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGPw//YQ1wNpKkv+C0/gf3opiOiN4WMj3omgWXEIGT1edwfPE9U/Ma\r\nxZtwSIjIeJnSY3EpbdHky+ntuChvEkCMANZccu4Qe/wa5Ldf91dR2rX9ZAkj\r\nzbDtl8zSrtFIH560FnVpBtTTMEG/CrL+RLnUKeV2TBHQTNMwoB+JaBxsTSF1\r\nsOJwt0uJYOCfnxcYOgAG/rWx3FQ314ESpUgnD12WH5luGZ3IE4/Up0TKT4BL\r\nZh0DOxRryAJUf9KPubLKI1YptA/VfeXACGZ1IO39va/ABU9afZiGfbwAcYG3\r\nqUJdJleaPG04rQRI8GunNvyWmCM3t1sEl2ZMM5bsStqeKOAPKafzeSHc3yNR\r\nmdvyxrLIxGrCD4luqj87iAnMXW5Iyc97WyHGquOIQpKiAK/jYWVBiTsSfvOc\r\nKetv1aYqBJTVoVd3coaIceHODk6u6dOI9DJo4RoG3sgOz4UvJJUAP9pq9D5p\r\no1C5cR+mGI7KRcwiC90looBp4xBXE9I5Uz1lW3wdo1aQWe0/MRN7XJR+8tKB\r\naHsiKpSR5Zr62EexyJnX7Cqfm2TbjMP64z2Yl6bdCm9uaTQWme19v4DN5qpp\r\n84Uvr3m0zMVtqzWuqZVJ4pL2Tr6czYevkp+jny1Cu43pIkORXrn3P2O6K0IB\r\nHy5roJf+c2ZZC2/+mg7b+BqBnn8sUM0F+Lk=\r\n=8PaR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.6.1-next.79_1659716000371_0.8070435366618891"},"_hasShrinkwrap":false},"0.7.0":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.0","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"c7b02995ab00955811f9069296fefb492ed64e4d","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-FXmohhsIYGRx+IToA7Y2PuyqI3uhX9FAInx01SIcD0jufp3/lLRyNX/VHoyqmFV8wWa3ZXge+PKgEVHB0N0hqg==","shasum":"0cf87ef0031ab38347b858ad87a6ef00d555952f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.0.tgz","fileCount":23,"unpackedSize":32159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAeOlqa2sBVIeqQIJwWsKCzoD/A28NuQ2PzIXH0uLS54AiARRGT/aFE4DIzWSe+bo2AyQL1CFflcgDwSzufJfGpVWg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7XUNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozdA/9FeQE9U09UrVjXR9SFAxjzmvvltm+prgE0TGpch14Yuk7hdDb\r\nF5izdw0veepfpGoOwh7ERkCBnUyIodsOGDmAo4itfYcJVkIHp1FuFJ76LepY\r\nTAwYtjaSg3hK3TNHBMVM0OYDF9uBm3hw0saT6cc0qOYOyYQO/pmxqhDKA6l4\r\nYkR8Cn7NkwNU3lbhmW3dmV3V+zixjSk9zIHF0pcrBEo6U2MSYAYmJ+T/yZN4\r\nzPAOiAqqx8HU3qOAHStVu+b5nHe2c/oVKmEo+3tPOD6eOWrt2BO+HiTFXRig\r\nzq3brMkLKT/VaLCJBLl1SfvxIGR4KbfyReomqwEbRsXHOnTIn8WOKY9ViQd+\r\ndokklvwXBlbbNfi4wDhNY6dxMwCyiMC9Pnwsvz17nwwbJshz6E3khhit32gY\r\nxaixTYQRjIWEpfDBkNIYYb1LDoUyfMc+h9oYXCxIRWF7K17QeDC8JkJyRktR\r\nB3MH9HX16HlIyWTYadOOjor/xKT3JrSlYfRRcquicF5dnm+5YGvoymVx4gAO\r\nohlW8g1H8En58rbe68LZzphHSZgm376ub1qdUTKcGKztdAGpZq6UX27dkZrE\r\nQJ50qpB4OFuwIef2jWw/9DoHS+CmR/p4K8D/B/4vgoGk09vzv34b8WNwJ3BI\r\nS8KyeOLrTokMolPkmZQuph4mcS+KDrtvsOA=\r\n=SoMt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.0_1659729164827_0.6112862971443751"},"_hasShrinkwrap":false},"0.7.1-unstable.9":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.9","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"760f456453494b824c2d7a95fe2b7c06494f01c8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.9","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-2r3m8CveRsfxaPUF/AlrCR07lUF3mMPmzs8fivZe10o4JFIkuEaYz4y/s67wwQYM7lCds60U82OSfT83XIK4gQ==","shasum":"b9116668870b43ef86bbfcc29c62e33b0836fae4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.9.tgz","fileCount":23,"unpackedSize":32178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7DLOZcP9IyksLkO6KDz0EBEXa75cAuiBUiplMvcJj/wIgZ/dNaU2cWOHTyAgOHRXpDtrIc7aXgkFOxPxr2jLqsa4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7bWCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo0jw/8D6r3YL+MN6j7wEEEjiKHjKcwc9lkIdUfG6gafNVL7UfvwMvI\r\nfBXlYWXi+YAgM8s/mwOBBoC2UAs6JoZKeooiC4fA/b0p3jKNEEzXx29AoYIq\r\n/koNhMOJIozxBhEm9X/61myu7OFbp++OvGciL6KiHajpvjAqtGzef+3gt01T\r\nBTWB2KzxOquPRoFPNLYe6AmU/m1pS4eQTLM+/vkcgllN/ek8or0cjYNgS3PJ\r\n4mZHXnrolDpigOouWymt3MKgfyCotU/hxlhKL6+Z6w10HtEVzt0VjASxLeF0\r\n5F1c3MJ5O/21CBx8wmkpQGMI1Qc32NycZWSiujFEnEDjb9NsiJrJOtYgeDq9\r\neGvZTXT5Sw7TYublV79z6kWCwaGMd2oFtdvZ46YDCZOw6i4MfNsssUzE8rWu\r\ndBaB5kynzVjQefW3v55jUI9EPKWQzsbA472fEQ0Ae1fjTIVxmG/l+WbakM8V\r\n4Uuclpg8Ns3ouhrRhLH/KACFUU/xnqdzPEUo9ujyAZmh6T0B6r30YbJdzYD5\r\nVwckhJTYDxFJ12J1IrJPXWz5art8/SeND53nnh3fmk5LhR7hQ1XzeUDSFDNJ\r\nvXUnxBR5U224tW6X336EDEjsSb/tEBMzXMmGeyEpS08NY8z/J0Ky6mHcbehx\r\nNfOLJhh4LAjUmydyuEpi9o5AaGZoImeNK4k=\r\n=GJeF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.9_1659745665916_0.743850046872965"},"_hasShrinkwrap":false},"0.7.1-unstable.11":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.11","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"c3ec119dd8eff1aa095807a90ee5a4b87c624098","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.11","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-fXP99CANuDRghzcsES6g6oWuW5Vci1pLlBoKi6/qMKNz1WYABzd3dsyUqSrjM9yDqMFlWTicUD/JgnuSBKKveg==","shasum":"1f298d6e0e2ebd638021472a7541038e0f26032a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.11.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG03xF2t8MQr05j8jocjfckC8BmQOx7KjOoF/smy7H4YAiArc6ha7nssawCfd9su3/3x9i45lev5xTjJtzS2f/dqlg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi7lYXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrpPxAAid0MHazkbzLXTK5W9NCkX106zgF6e9ptayw+x3H7DI85Cz68\r\njDQsF+/axcWOZR7yay2osvh0dYzEXAlhhCjy0TErH6UFJn9L6Yo7uaUXBL4o\r\n6bAmX+E6SP4U643oQD43M1dZdma+61qEa56QCRfSCEsyrk1m6az2Yf8YtakQ\r\nJoIW0gj/FP8GgqWTpfHYg7ob2NxzO2sHsM5hG/X3Nm1uy9eRwigXp0xKNv/V\r\ngMNCR4Yx+tsKtBClKLUQBmzLP3vGimOYxHWviaqm+7vhPgumT2xTJAi7SLFZ\r\nMNQe9UYyxyegLdHCSA72UDSmJ7rAx1Ge+7SLHUoX61Tz3OKj504and4qBX+u\r\n/wkbi3lWKnC3lDu+/8T1WJZQGnhWSFtu5PzmN9topeE7ojr/3AczRzLpdasu\r\nx/+PADDdRgTCmYGg+vYM8l9aEwUkEAzbu45zPPbJlFGb2CPMqMNU2th9qtfU\r\nBfq/TMky0GGrzx6q2BN8cmXSgVVrE6WP0Z4qnmXuMzNztLwodGnEIMR8IENY\r\n8e7dIyq93uMxVLkiw+rEhnwoJxT48TV9k0EbOCZGR8m4ghTPEWZbJfxYS5rN\r\nBf+onTgQ20o9hiIhDc/2Mu+xL/pX+VFLqGN2FV9AmngpIfb4MW6zWjAVV0Xj\r\nybQ9rfL39frnxtFosI14wUQ5IFScwdfOrFY=\r\n=/cce\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.11_1659786775493_0.4783989182863435"},"_hasShrinkwrap":false},"0.7.1-unstable.13":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.13","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"c74fb251cc3afc16bcac92731eb0fad114c6bf0d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.13","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-6YrW9yHBmhacrtugnwtjj7CU9+AK42tHm+4byu3UiQ6Eqm3OLwB8K/Bpq/RyS/66Gh0TUayaOwQiTzp1FwOldw==","shasum":"5cc270145f70b861f97a49ea9666cc96a348c3b0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.13.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC0EeFM226egZ9GviyVIRN8tRrTsYoZnLukqp2rMtidbQIhAMLFiN2l3DR6bEP9oDwnLYDqiBlZW0RbWWkGj2OdikRD"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi8FTWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYJQ/+PPiNw61Iy12hgQE4AcrvRc/Ao3wlPXTP/WnztAu1nyTpdj+U\r\nBspFo4X986CuFi/4Fo46Qwz1+TFiNaDguphNBWhh1F85l934cpBjsA4M9r7Z\r\npqpgUEAeqXV0WKNLthsHQ75SXl7h9JYrunYjbg7yBYxHsbwNl2U36RILyj4y\r\nA1hx/S26VdwldiXCIHIQoTzUL6cJUP0qM2Yoa4vWbz6gaWZowAKkscsHGnvJ\r\n162PsujCDe3atKCdd0nur/ZqHoO+9nM6leJ4m6MW1qdZQuRJs1xUMM1zugia\r\nRtJrKtg/y6ElQTjaI27kB7IU5C0OWC3+3c0my2470At7jN5sF6aWWtEEkcED\r\n7izBAK4KAYBJYYJUN+mNXlQhlm1pHzqDiQh9CJVEVtnHsWA3Ae3LF7KXA0XC\r\n+W5US46SEbSwIj8SfUJL88Ub7hwDG1Taqkexq7kvXDPRmclvATZ9yl0ZmFSP\r\nRCnmyLacyA7BinMxkLiohOtFE/vqUY4fKLTP3zpVy0eiYYgYgVHoVdNhhWsd\r\n+fu05lMvqYLkk2KWMFiBe9y0jSBuuZ5VFXxKuziS/l6RR1iMSCxl0uoNp+u1\r\nkwZPdkDJ3rxQKjRy37F8B9tbcoQRjnf2hR/qizIs4u4lJjjiYTfPNi5BOWNH\r\nTebZfJfTKi6maQd3iI60ufYe//PghNsS9pA=\r\n=xYtw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.13_1659917526347_0.7201913880204289"},"_hasShrinkwrap":false},"0.7.1-unstable.15":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.15","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3d615acba0695472d9581a04966057bf0f78206a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.15","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-qn3lEcbgWNcg8TmF0JvpGK+z23cJVdeXWfEYZnQUwo3xLaA9KBU6HyJccSQdQO/j1GJaIHys+QmCy/gvI4vxxA==","shasum":"247ca53d35dfeb964328e55ba0e3088bbc942141","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.15.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgEozzGYncduHK6TJSj2Pl8V5y2VOjUWSkA/bhP4hAowIgYjXfs68xYiaF/+U1KyPrX1gtMTP/llpq/R7YE6XvUlA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi85dSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIYw//dus3QYODRf5Qs9eQGN1Q4Wm8I6J/px6Fbu32tu0tskHcN+rJ\r\n7iSeuv7ccuS+WCDQ+fZEqp5R8HSeH9I3aeOOSfjNGiBsl5SVzsk73JprY04u\r\ndx+DjU22QWJjDKLH7dA8TYT9z8z2tcuZjGxWaYATwA4eyR7DesSmtGYARtY8\r\nBcauLH895/u6lMVOD5qVUx1qSaY1/5QqdSwJKC2C8FMcMomnOcpHdbDGFbQW\r\n8L17NgsvhPCGb7xcqYHXYeQIfyvY+hRs/DzXi53uC+hr1ovooU63I4UMk+Kt\r\n/AHY7zenuSuShXXtnMNwvX0ZTH3Y4ldIwPJ0YLMRA2rX40m213g7Eq40+ZYH\r\nllVBm0w4T9xmnER2TJoJ5rTnn5SuFUnXJZubKVwbLlhQ3LrzW+k0J5913+7K\r\n4n2Irfpa17cpskotY2OXHvs+gi65uVjznihPSRs6wd8YnZBhcAAY4dkD2zId\r\n4LGRNJ+LQldOTbyLyuXu5uCwEXhf0yiKRYEo8RUAvw1tvVn2wu+axZmiKqDD\r\n0m1/0SkzEYDDRXVRes5bqTotOHgjnRuVeFqhMQ9Emw7Epw4aWM4nrZIEgh6q\r\nL/Fuwd1NOqeLB5fVVPB/7y7SvPZ4GXb1T7wRtc5+ZfjzwTqGx/8aKvv2RZUM\r\nm/x7CMVMTH3ESZMy8BnBToxv5adbQUXrikg=\r\n=FAvz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.15_1660131154174_0.12227418019672354"},"_hasShrinkwrap":false},"0.7.1-unstable.16":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.16","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"e2ec3e9bb69c59f9546b3eb874ffafe425268261","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.16","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-EMBfU1hOtPczQ21kViuk5w/jYb69zqj2o1Rlb+YYiwxKZynbS6LIAqCfAJyi63fLRttIkyr8mJMbquupCEqaGg==","shasum":"8442eb00d871527cb41b7a61eda3499e3f3a9f6d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.16.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHvzH8QAgEWZ76VV+0q9ZuLlnSQ7YnSEgb4+ef+ALOgVAiEAlS1tYY1v0s+fp9FiCp0fUQGQ4IZ2Y90HFXV7t8aypac="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi855AACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrUAxAAhQFQxs+2Q75mpn3O/O3ygepAf614R17vwinWE3kPn2VKswRR\r\nEHSdCSuIsc8nbd01DYHDU6mfZD/3hyUmwQXBIyUBv/7q/pZ6wLMl0yStWU50\r\nQ0rmKQNQmIG/Ie1hFo9jUQsCetRpmRQGV3BHHBiBoqeCDmgbOY2KzugaT9ov\r\nPEWbAwygzL9kl8v4r88oLgoNj2/JwzxhNhZ9GkNGvSSu3TL2gMMDoZiUMnQ0\r\nB5NlEd+vdjmXIhj8DQDhpbszqvLxc3zMMqMaLQqwxomwlv+TNca8HYag9741\r\n2mhTISLtKvdKYyiaXhkK3Jxatwp4BQz98K1ZonKvTOfi8yk5DBFhur5ZmGGh\r\nm7EdEkJuGwrMr0ynw/W+CVYu4Ib6k7ZDR0pnjJFNPawYXbYzInNAkV3QJ1bK\r\nd3YDctN97H3L2yAlJNmAbIdIYKKoyrRb3d7B4NDyfpfP2f7elKFhWizOytSv\r\nnSgo/0w6mUG/B/IUaAyS9Tq253k0W9mgRgXf4FC+RbPr+xLwZLlCQsL2+8u+\r\nHU7k5S0Q5uhHJCU6S5hvXkxtG66sxT7NaWjt6zhgb60/tggVR/aD805lDmVw\r\nyOan+uYs4bia1FUACYM3dh7b+zxDcamfTGQ43oGpWVc16QGPLmyqatf0WzQl\r\nvK1Lk8jdAu0SA4dUqHSbEvPo1BxDq8PQgx0=\r\n=O6tl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.16_1660132928540_0.3514933352545675"},"_hasShrinkwrap":false},"0.7.1-unstable.17":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.17","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"904646897b11b117e143a4da57fcafe2e0fd76f9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.17","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-tmz5JVWwAJndbML8TGrn3j2f5izmJaPIZdm+b9zlcyoRyk6r/Wn8L5kRI2lQtPo/DRdwyKquudaQ74vNU8PeSQ==","shasum":"abb361e22b0dbba97127a714f91d1469267ca548","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.17.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2u219YVNUJteuSbsgXC9Ky1vKWDNyNmns/1SPAFYAtAiAYUnoGxYvUep3vWIA5PoShNZhcngQ4rE/UZlZDd3C6MA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi86y3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNTQ//Z57W56MLnzoBl2k0YfgPpx9pacmJdfKt4xoPi3nOxOw7rs7N\r\n+IeKRof1Pvag4T2jke2T/rAUa9Va8JSy43xaxcVdSWnOWryJ0TZQs24sSwzO\r\nPmFbdeLhWvs1o4GBNATPGNwZA4ESTvRb3BucdOX4nutunzB2p7rMaRz0fvEy\r\n4EzrS8m8B+AVZUVnLy4b4kB2YhNh3FNyKdlIemPZAZVe2Q8NlXxI+x4r6z3C\r\nm8mVTAphaOmUaTlSRjsdY9VuVF4WrYRxvYm/cYNaSDO/ruDGZza1ZK+phj3d\r\nkUEoIPto/5YnnLLQF1tpGTs6OLzb/JFFNzFRXw8i/9vg1W2QN03+7nOpKGr4\r\nDFcEw0Ucix8sgzr/DejOJhMqdSMIQgRx2QURpq315/bGjeOd7oGQU327ii8N\r\n2HnV8w2B+vLlH0WFYq/VVWM/c2vAhz67RJF4djS5V3unQoLmbKyiHuEu/b4P\r\nEEEWjZQ3MmnyLM1MWe8M/SIM4AoyjfU4civhu2OoRMAf9zmJWHIcw7OXxmYu\r\nbHj7V8+YLPLAak04loRwvxOpn2Ijm1JiC13WPONh1lEhbgdEg0VKBKUMwsPx\r\n7rIz6ZLi4yjTT3XgWI3+KBAY9p8j7PqKlv4arzn/311a9zgsfqPnsvRANB9x\r\n8iq67SqrleY7hBmtlQHnzIZMwepYiQzpJk4=\r\n=162J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.17_1660136631128_0.3707486876425501"},"_hasShrinkwrap":false},"0.7.1-unstable.18":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.18","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"db658c83320480a98f29310b5289a5cb53030e07","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-U3sJqYOZLKgfpD3F3qCOOfbB+V6VFPzGIlBfKvfokQszij/KGxlEMAmO+NMt0pFMRaju38n2mrpB4B+HpPW6Qg==","shasum":"c11c55254fd35afa639f30da6d25e3ea5c481717","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.18.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEzIS3y4I7cxJN0v3Jc3ebSe0RjAmecPx7FqRGLB1jAuAiBvbyDqK8Ja8TWC5alpaIgBEJMNZo2UrJdCW7clVM+mwg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9Ao8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4uw/+J3dIiJ1WkN17/ZRVOXuvJrALTtX5rqEncT45whKZo+1f9w21\r\ndBfaN37zFK9ZQhdc3UBDMADoPS5QIvwt8rZKqjU6z2ucr8bsCdElW41bMWYr\r\n28BQY5mlb5Fd9CgsbZhM9B304vxHMiOrkZriNO8/z0vZcWaqLn7Nc1Felh/H\r\nRTu+cLujRt6touKK3KziTFw10lgsRU6aWKMwwXQFT53GfaOeY/Rdkz/bQwqM\r\nJuszWdiuQ3hrk9M3+1w2L2oyk/1uOgRXIUPfO8uX6rkcsNbJGwho4ZXZtlJo\r\n1lgB5NV3VNSaqH1pUwMNtKXu8EKZNR3gh5VhZt5ZZowqiiGIp9KsGj2+ReZo\r\njwZcXF2QAe5O25Bw64A9oF62VnQmIXWDK/SByccWOYH0yEencv7BG48797px\r\nfxWsHcWNlWMW244FjQg89yRDEpI/USzqd92Ux70BJnic82q9hplVDqRd2aik\r\n8B+l8Q7x7ixwgLSkgLk2jtLO6cLEFUTDPlmE04DwhxY8JPWuRM7fPR6ldwVg\r\nXyfKQ271M8n1FKHu3gtyDkc3o4ZFezjFnNbO9gE861o9g2eCZXP0hCG5Bv3s\r\n8P6GQoog4cCDUPM7Cn5TyqBUW9kaWRJGMO6SuExv1emx4oV+heYP4xdrd0sU\r\nH2BEdMHBH4vRF3HgPqWFFn5nm/3cIvCe/FM=\r\n=/kbI\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.18_1660160572602_0.01801840686717182"},"_hasShrinkwrap":false},"0.7.1-next.18":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.18","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"26f3edef541a35242769a076a8d630e15bd2e03b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-TRb8hKz0uLV2TDQgpHZHoRifQ2fqwakqsenXW3khkE24m+na+IusiMby+uGZEUNlOnCnAOfLSPUGWUHKpHJEgg==","shasum":"606141f41210448bf0b97777b4aebd67361ebd85","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.18.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2esIatp0OINPHsM+y7CBq9gm9UJ4cCmLF6U8xDTLyfQIhAOil1lnZEATABsgGNUMjUJcMPnj+g7jfYZrU0yGRc55W"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9hFUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7Bg//XUTal7jO3mdQtPHLEo2HGLxW37kl5ytiGXLZmQp6pbr1ciAE\r\niqaYinIGPNTZVE/pBnpl5pvjv/aCupvVkwP/8KI6+4v0V2o999SY3lXzDw78\r\n1rreoQ/78vsyAoAeUO1FWJWomSiQALvuj/B3mqit+ORjFvJDzCNUhjvw90iU\r\nvuPhW3f9j3oTQ5+1XUAx4fegRjpuUGhsfzGZazw1mijy+JQaVwD0+mSnBmtk\r\nb+Xx2POtpIFux2JmX1b+Y4x3Nv0kxZ3FQTVmDemndGiGe9exDYJBvjP/Hdnd\r\n7oBiDgDq6sO+F9cdCDQa1PBOdCR8zSuMyUQNnuBu2eK0L/qjrnjALDEs/NPZ\r\n4QC46bwMNskxVER4FxItLeocGEhU83lzok8Zaau+XVI7QjiGLpuABKz4nssb\r\nEEFrJbSWZBYyXB6mCq1Uj5V5BrL9lgcN8dYsoFsgW3eyw1+xxb8Ff8zRG7iZ\r\nswKCfdtZRyRwwlmCcnRpBJVhMWhGFQ26Eh6LUWXQOOXguoSJ2fkyWV9JqjnC\r\n1cwVo5jvCC6Sewyp5ITzprpAXsGzX0j78OvAgwbhgerY37CA1siNeqseyjJz\r\n5T81AW+BZfeSexRo2jnXP/PdvLfoPtWJXu13PWiMaSv+jysMlWZiFkx77Z2n\r\n8IVgL9nIwpLfE1eqaPoy12xaJOm3QrXEF8o=\r\n=aKrE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.18_1660293460048_0.7664721057284358"},"_hasShrinkwrap":false},"0.7.1-unstable.67":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.67","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"4f3798bc8314b8a08760a15fff94d3f9b050d72f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.67","_nodeVersion":"14.20.0","_npmVersion":"lerna/5.4.1/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-XK5fwIgDL08PZNkHQl7UcIjVYWrktgZ3sOWtVVFUgw7QRTTyXfNA+3mhnbM3mULbxutR8Mq2RzQRP5w0L1jhGw==","shasum":"eaebaa1746f2a6e158279ce679e2b05d40cc2f2b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.67.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh2fFP02lIg90QkXeRRvxuYYqsM98Kg5HpdIOtqjvDsgIhAMi2Y6FLmCY7daK3xPfQ9YgPcSh9VbFeBFURYf9FnC9z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9oUkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkAw//XgdAhzzoQimiftYD2CbJ2esoDPcTjZHgd7vLCUW6bhofB2I6\r\nXoON9NhDzR2wcOJfqAOa8JbES7jmeFGINw3V9pLTkTzBoR0OyuMBprijWFmz\r\n4axNcxZAudvI+SzTj4ppSVhJMzWjnLp9NXX+2FRjlKl4JFmxvjUq9u3+LDCO\r\nhgmqLkcZ8bWCseA0hvhjD00kzP6lP3TdNZIVsJDyA4w1PEAq38wA6FSHhiSX\r\nLpkbuLQgPAoR56tBJHNhD8yk0jXnGe2dqRHmXQ5eEUPw4qFxRR2SKb79EWFc\r\n8GU3YlVnr/2QGG/YetrtxO2Sje0R7T8v5sRteg/G1PuYwxT/Z0TKoGQF3rwO\r\nDdBB1iDKDQMpv/3PXUJXS5xu1Cbc6KwDOdf+QuXW27ZVgL9+x+8qKNOBuVrP\r\nfQ0qndY/08OJK9QePX3V60aVvnphdm3HW0GtYup6UbjrD44bhxcwJnLH0FPi\r\n63EHVlc5C7oKMFxBL2IwaYhghPrnEgUCJUekkYJzboG+n9pN819CMwPij2Md\r\nRomn/FC42huYE48llLS9kNYHUIQpdLu4i70aRROXN892LRj3WJQXcKzp28py\r\niXAQ1YruLZl7bsMAdeAQX1yBXaa58M6+91fowE0N3ZcS6GTOwnS9KzpgvHx5\r\n0IMshv1ifmZ+t30WrwXGuIuVJg64d4h1UjA=\r\n=dMbE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.67_1660323108161_0.1678324438151504"},"_hasShrinkwrap":false},"0.7.1-unstable.39":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.39","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"dee730b73e2c451da459e244190a87a6442a83bc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.39","_nodeVersion":"14.20.0","_npmVersion":"lerna/5.4.1/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-aRMMX6tuvD1N8V9FgtFK6AyInb5W8nEr3njKDSFXKFOtHo71SFYISnLLvSLMv1OqC3zArPJhGHmsRr6GoF6aeA==","shasum":"0d5e913131c126cade5cff894591349215564dbc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.39.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQDsZYfccHeE+QaZq3nGB5+DbbR3vKhxg+kCoa/I06UNAgIfbK7R4fLA10ifNApxfnaR35R91kRA3qSb8NMXiR61Sg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9ovwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrChQ//fvyHP9emgJnnUKL02EDGmWt6XysswHgltCbPo+5SlSVUMOMq\r\nIHnU4oHOvn0FPRTnXJPWF8vsvf4dcRrqGG/cnbzZYhwOy470MC0GbKeIfhdN\r\nMFtOmIyaDwm6RXQDx6/HNlrD9tPCagHzX7gyTyRwyyo+gy/qx7hD+Op3UgUt\r\nJInmYpOhRiDCb/zOizULGEybHsk9+xaVpaOsu3F5vukKN+UGTA+QJDIZ2fdg\r\nNNJlCiaGk+/a7xCABtPWBKqnld0ajqxe9/9VO/AWN+SZ9e3iEhuPfLhML0XN\r\nrQqfeb+6G6q741eur/gOEasK1/v3BHQCSmnbpRrEUCfrGS8xx/jCMZ0ng6vL\r\nmwhT52+JaUNXYVknjnmsDYlsHU+iD14vs/lZwtai29R1JMXc/j5odKcRkT2g\r\nRqK6eBVyUM6f3Kry5HgTUevHzSBD1jJLggc/M4kEcHv3OvnZFNOs/CZOkkQj\r\nJqo4qcURYy3Zkgc5HRiOkyNGOnoecm//ppLIZGMWa80Dx00E/sRI8qQp/uXo\r\nuAC+jz8ZSSijanSIv2GUk5B/Hbj7wOD2gtPBYeLSXsz19GN0+z/ozJ8txYzK\r\nxkhXvKcZiXLQtnkB3uuV/Rt3xMEo11n0sIifq0MNOcYyfaxVoE0qrDykVcqC\r\nnu7MG2pw2NknMa0FOO1tn3liclVRZbmk79E=\r\n=/r4d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.39_1660324847974_0.3327374937593317"},"_hasShrinkwrap":false},"0.7.1-next.38":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.38","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"e6783a19e978e7a14225987522ada3e88bd61c40","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.38","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-srvKRHKA6SM4tFEu7Y2BbmbCoymiJrpqNylG+9itKYJSG/9ofgONY/dyvWnLpxSzw8keRtQIjoQiRRNEUoTfxw==","shasum":"b0e75f8bc59b9a9424fd54adf804f375894c44e1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.38.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH2+5lLLkNC9eCUDMvKHGv+13iXD9d+ZKmQ8cKJUNWYAAiBDJQj+RAaCp3aLXO5etQ5W7USFImyjUBawyq4kRL4WnA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi9ox/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq7EQ//St1QIXomKxFOs1+FWpvgg8SwD+OKU2M3nfgmExeBpuVreavm\r\nQfAwWf99m5+b6uBuLocVnsUB6RD5bO/Vy8kP/bLoXKynHZvzRoFpOXhY5clX\r\npVMp3KzoXZJMMX5POduqq/M5QTJiF+UIx4JkdxJs6+n4jowmAhApvP96/AOM\r\nqXQHOI9m19jXnQ8LKurbOPwNQpfcwI29laNMqcDkIOn8k/T6nJ2RddtaVYRY\r\n4WbqdoA1u3YXMdecQAqBlo6eD3Lem2CRd9VNCKnKi8kOpGnvg1ZNA3p8UjNL\r\nwf3WfndBePIsC1/avONZnYZu3fImBZYkzyw5R31vucVteLajq3i7HvmI3T5O\r\nnuIgAxjhzKjg3M2TYiaFbqTizRrROu8zWh68MLMQT3PAVL8RkvaGLw3MjNW8\r\ncTEXFhdVZeMx9inWuDKO4ySPyljGe06RbvMzQCnwrn1QMLUs5iO1PFPLq7mO\r\nPkMP7agGNgOb5Ui22UoQHc+36iuMV3slfqDztrU11yatEjNZU8GZ+lD5o32I\r\nb+/wGFC7ZAnNTPHQ+Bi/2/VYjkXqdZURtBKphfM31QnBIuBA9/2uXR+icDQ/\r\ndHRUV8ylTC6BEM4RqrVkJDNi4CqcRTl+u0Hl6NnBkDJZHLVdWzth1XfhUrU/\r\neH1jE8ozMZ97gFST04qKWejlbUcKBOVi52E=\r\n=YUFv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.38_1660324991737_0.33988827748815686"},"_hasShrinkwrap":false},"0.7.1-unstable.40":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.40","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0b9a628b4e313eaaf767154f862cd88c58b31073","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.40","_nodeVersion":"14.20.0","_npmVersion":"lerna/5.4.1/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-w918Yay+mWFOwaSUfuWUJBOnUkpsRNZSjUHwrM38EpHt7Hf3Zi3eKREOVekROKsfqesqM+EOk2RWiTrWpO9Kdg==","shasum":"4177eae78843862c88b56e86268af8d1314082f7","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.40.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGFIVrRrpU6X6S0lPCd1cQhuGH1J8/ohli3ZtDY9rdAWAiEAqCW82MYKzoQmSPtUtju8LzT47UZWbrW8+9Ib1VoduqY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+mu2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmprQhAAm3KF59getSNphxhvz8NF866CVuLPPTSaeTDpeKY0MpFYS+CH\r\np58XwJNjBUFUHJA6OKf+StqMwlKZJPjiGKv7UwRjLIYhTcn5d6vI1HJA8iDP\r\nLEw6uEpLeSYTCA28UzkMFz8VZZkKeeVNzh7wOw+V3HBuQpoTBXpFawz24AV7\r\nSikGksbbf6avCWxY753IaCL/44D2ZSWhSlgM3odkhnyYBNg/qwVgBJ+g9kIs\r\nE1h9qzS0uaWJ8Zn2qWu5Ewoa+Xm08gTeuZxcVcxr6t5uSzoeOAw7rR1qgCqL\r\nIXu16CmB2rldlih8dfc10dH7MRyBgyqPT8YfGd0nGN4OB5vSdU4OFM41zj2i\r\nV9ItDO2hANqquq/r+zs9fcZo7yTuOFRZFcRf1b9Z3cQzz4v1ntNRcO8bC6JT\r\nLq/KJuxwUi8D2VlCPiporUNRqjgaY495yRV4vpJt0TG8ybNCnfnwyUcUh8tY\r\nrYAw49sQ6bK0hMAfAmNHuSzJa9O6p7J/q7yb/iOlfw6pw5Sliyn1kqImqrjL\r\n0BYuczOpR+mJ3K/WcPcKUd+P8/z5FoR6gLxUai6zncKPx5SlO0uJxy66ArR1\r\nMxYN2qrvxxcKGtkMWhydJS+mv+H2frF3ipZbrcXthDA+YCqrn8vZ0lIZEnv+\r\n2qBYXd1UzoJ8fO6IX/9rBTBmakQFeY9Jb7U=\r\n=TkPx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.40_1660578742424_0.759893204118699"},"_hasShrinkwrap":false},"0.7.1-next.39":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.39","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"2aa71696258eff9e8dd07217a6ed7b8c8198a63f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.39","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-gF/NVAjpUMnQVdvkdvn8Lk7nXApzvXc0IG7+0rkh7mSGlUR0LbpgNxlgWw/QuQto3B9GzrQIYbPB25GfrTamxg==","shasum":"0eb7ff4ac4765d974fb7de096081fa69fe012059","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.39.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHFrSDmN4kkrJipPb73l3FKkTT3dACg+zLdzm+Dg1PMeAiBSLPHIkV4JJLOZdBse9fMxxeAPlkhF+MdeR8RWgaWXyA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi+m3DACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6Rg/9Ezgziy6CBdu/qJY6xH7BZuAu3+FFlUI6eIsU/5wsZU5vpy0q\r\nlsFX5bOnqQ1XsKQa8N5mn+YiiFYoBd/hr/EaGzceWMav0wfrPxImZz86wFKI\r\npI1BmGwFAr5W5WDWdPp2hLdL1BEJ1zDHNVT019LT7gFpd/uvTdoybFXhFE79\r\nb6Y/juhNl3++4EMg23OOz0TcUpX7xmxxLU7GHSA+hpSqZLzfNwbCKP/IUNfA\r\nhZYndKLtynhIJ/PM8GxU5EHL6H7aKDvMFTiCkRIyUV26923n7v04JmHACZLs\r\nP2NKbKNqd3rLtqH8lMsd4B1wa9cCVJVo9UqGDERmOcGbWXbJuPufM0VIb5vr\r\nYzIa8E/fFQnn3RwB6MOlb1U9T887JI/BKDoDp78Zh+fJlPPzGzciHh6+POLk\r\n4+ahz1p5zmpQpkZROAL5fE8ezMqpMNj1QAStruZZ1XUGak5m5FQK678Uq19z\r\nuu55PiHKnQWENvVF/s5IcBRggwUSatxsFTx1mHdFkXwoACPqMJlrCyCaD5FS\r\nPWvMg5urqGoGJiT3xvUWrSUKPIO6BndkCaPdrT5ZU/mpVgeRRgGUuoWxnk3u\r\n4KfMJ6XO0dpO/GRfYqn02oHQuwe08/DxTl66zX4nhezSeaAaTJ1sSuBhqLZz\r\n8nyztoogkglwDVouEzyAMpDAhVyvfgRwIcY=\r\n=l6gi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.39_1660579266960_0.05260360143932208"},"_hasShrinkwrap":false},"0.7.1-next.40":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.40","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b9a4b4320113c013f37e7a6d7304e461fa69e12f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.40","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-Futkg51Yfyrd2Ez3tiB592WOojtIF9QLb7K0Vgm8XQl3WVXQw9NPNPPg+47yw3RKWnsQqQEa4qHHn/dyOGnuhQ==","shasum":"f3d9517fd5e2257cea410359f376ad9984026704","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.40.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPc1E6H5/WeGIHNwSdBYBvElqne7SL68biMYLaJlvB7AIgCtEknTSRvAa7xcf4pzuPycXOL3Ik+z5Qbl9Hzj4c8T0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJi/Y/MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1Ew//VldF5u1QDLzGzRraUCpHRDT/CXh5wzuZnys7ZGlfYWB6C4yw\r\nBAyVgHsAB2kmTm4toQdGnmGBAIa/U52WGInnTuRWbVsRyVhscmVrrb9ycZwy\r\nzk9MV/kTmYo/gaBPOpiuZZeFbHfAYBYzUoKyhNM/PLHWexXRex4wSTXgkFgg\r\nc1WH8iEsmE7gZmxvbTXuK34uHVeqEEksjQHklYnh2MvtRiIXd7JZNttnGDsE\r\nRl+MwUAvGISr1MhBLn3XSr0AaP6X8Xb5MF4ChMNSxmk9BqSXAmY87iuNSGCX\r\nHupV4QCZLWY8OGgiIu9w3dgr+Qt7w/x7TuT7z+o7QZU6tXqlNZ7/F7HnxfUA\r\nCbKIk2OV1bGUGzcZFe5V3b1gcyhwJZbge+d1Vb95psLzg9q3xACTFQiZnOfQ\r\nawdI1CKJS8HoFlU5mJj06UYkcPcwmyeDJY4D4b2VB9x9JBNrfok1XJqzrOdL\r\noNDFcoyeokzBi5abtv4GE9whit6KOtgV5Z3avJTddwPqEBs+Ju0t1v/XPglR\r\nqXmZRvD4nYwHpdt8AIlrW6FP9vNb8rp/rXscLBsIDp0AGZDr5Er+uRxosiFQ\r\nrsGaMLM6qtUKhqwQw4wKSjjnbIQX2hzOvDVWDjFrx16h/1TKgbYSHYHhuknA\r\n2oxUS5IgXg+MKQ5bLwE/UJZNKq6Y+ZY7XV8=\r\n=X502\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.40_1660784588043_0.8416219236902369"},"_hasShrinkwrap":false},"0.7.1-next.43":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.43","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"6389a80e4d589b359af61cd1759cb0c38c5047e9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.43","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-rKkTs1zv/stw/N69K8r7HVr9Lln7MVrJB+M4+0668jn+N5FJ8zC34rwhfepYdReQRwGP00mWeHASmkBiN2Lypg==","shasum":"618e1ca1a165b9e4738352aee4d88d4fae40a4ba","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.43.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD7PQxdCo5YRfhCda6Rad2nzkUB/oBD7ur7E9P2MZXNKAIgQphz3OhnzyHXNw6UqSb8mDlwa2epFaUxFZZOEMib1jc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjAXk4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/mhAAl91LHxBPZmstK0Ac0pQd9/XB12pbMqJMpTaeji/3lgZrrExs\r\nV41h4gokk3MuSi+ZPnNwx2BdLhmlfylZ1rOJMKIN514pdVnLFvqTBoXDUREP\r\n+1SpPEU1+fYYeYhHOKAOU2cRWqgUVu3pxFFuIIHOhFvRsvz5lUrDXdzTG5Rl\r\nYRgI7YPr+icWJrcXH8Y3/l5PjztNKr+OUft8iGim9SoTva8hvVKv1EMYaX0t\r\nXZNrqcm3yNpb2Zsv4t0DPVs7j1aHAA+lBRUqn1YbNA9Ibtl+36cbTqYuiadn\r\nQFV0Fk9QGppPupufb+BEvQ/B8XeiL1uf09Br6sSHSktGL2jQSu5/kV7rTW4J\r\n+XrUBtL5s/hZJbsiorhBQsnk5/viKq3N8C2D9UXfpYnaZ1N1IRYv4s6cBhqD\r\n4WA0GLUGh/OSifrZea20ZmlcjieXjomussYE9A9P3P88k1kQueagwzLi/Gvp\r\nhiO/yVLjPFWNC94X23GBI1fp3AcvkNNNBAJD3oFPao/lofG2klYOrPyLqNiJ\r\nryrgEIgdXx/G9kphrVqQUnopG4LA2tyQi3YCNOuRFYFhGlJXGbAeMOCIvWId\r\n1ZmXD0JbxNWMMOFSG7Ct6vzxPdTeg2aFcKjd9I54XvFyq6jzA2E38j0XSP/1\r\nUcrnhbz5x35OjS6+YEhkJVkEg+DeGispDME=\r\n=gwDJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.43_1661040952289_0.9986037617294758"},"_hasShrinkwrap":false},"0.7.1-unstable.43":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.43","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"6389a80e4d589b359af61cd1759cb0c38c5047e9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.43","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-JHa/tPW+5vxC8cosjhQnYRIhhNJPyeDlSRdZHHRwN+a3SbUFESheQY4RQB49q0DkMToY7AoMKyug798zzHjlQQ==","shasum":"3133d766da55e4680b08a0138c1abedcd4a38fee","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.43.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAiwBb+W1u90yCsB1TdUHfe6rmjkyj/u63veYvzyt3PwIgBzBwrZ6JFFyQLjeeZbIFgHGkofC/r/U8B/6CwD49gm0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjA72ZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpJxw//Qb/ETW5pU0MmCrw4MHglG4pxSu3q2MBMqYVwTHNFhXn4fkG7\r\nIY+Bttsj4vYWFNL7n+9OaNoqblcKsjBElnQqrMABYmMLgwLdiqqvYxe3vQJT\r\nClczpamj9olew2YnrG61S6VzLzwVskxXNLN/lS1DSydQjCZJPY8bHdgfjLjf\r\nYFLBD0+rNHHrmOi4x8dA8IZ+WB+eKZ/Ju/ot9ngtg7v2r1QfZ7OxcyQKntdc\r\nFkMVg0ofVnxokPm6AlgFu4ZOt/j30maTXBzWCMPTPrc4JYBkccd8Jh6gLuOt\r\nxcpOd7lK7mrNqRYGGIVfCV/2yXTMyDCiunkAVYmR5ncJw4Jh8kI4HFmDkrmx\r\nfdFV/5ZzQsuIFr3FVAcK6afHWAKj06glGHHYiRCIF49A0DdjNhnudAFdgagO\r\nBlIRpmZwXFLBfldP1XOg0Odu8s86KcS4pNbssTppYCkLbRM211xI48YHjqBl\r\ncq17OLFNSEPFf2EwIJbduKUjyoH6WiZXvqXPQS+nY+ZitdFjAU3BauYcV6K+\r\n1Bc4vi1w6eF3dnzqmQOC21cbF3ZAjfp84xdg0FccO1ORn6dPRi+dBk8VvTPb\r\nnMWSoSMESU/xSjZE59rlGoCh5oHTTNx+OBmdN1R6f4wJNTOcCDyPHL3WeWxy\r\nPM0fsx/W43Rb27Ya3PCvZDyZErNZUjdIZVg=\r\n=xo20\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.43_1661189528870_0.37122898443150487"},"_hasShrinkwrap":false},"0.7.1-unstable.44":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.44","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"8c1bcf68b3592c1e26e5c4ffcc7725da5b42d736","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.44","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-7N2OcHbjDymqurXAoaSm6pwaUu3lgPalgqc2iylkEB2ZOC3qm6kHYEwMiAzlhukU3NtYorXiw3oyR6TX/Cs0rQ==","shasum":"2134157ae7a8c3f1512655c6b7ffe09332e6dd81","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.44.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGEnLSmFf93+RdPyYz8HJGqglMRKtpbCqtmWnkyVE77+AiEA5EIagTn37Gr1vX06qedXLLN2CpURMAUTmjV1wbhBQoM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBPSaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqP7Q//aAayx2r77ig7iSXNZeP2qCaPTUIoYAeEt2gKF7meei1reHN7\r\nLGS6hRABnqUqV/WuwWJMwtUpSy3rYMYpTh8GuwXEVG8OT1i2so+QKRVBrxyd\r\nO0WT6CZOvpBV/imZolsC3Rv0XLZP277Y8vEGRlJiZoDAn8um23UKLcKWLP33\r\nyL5yYKZSQ34t43kIWkSLdkwAUyU/jKYFGlX0ARmxjScfcYT3TyuPdsVt7hGq\r\nS73RJhD276oDyDg8jlKP2ocmHU1Jfl9VxVjwNz68Nm9/BliiB/5Kz8u9vyZE\r\naQconDT0LVZjSHzBmJoDk0ckcjwjmbyZ8lgjw8jxy5LOC6Es1tTRxY9YrwaY\r\nMihnhQDb9O05rbY18l8Scg0fINznjM4mAYwYYXYpjwbvOx3/Ql/fUJa4kiE3\r\noZ0AXjB/BoBGkGkD62daoXWOcWyf6ZJ+wZTA+FgxneYdv/S6ysB2P/lNrjCI\r\nr/JSsiecVwF30S4lZEcTh9wSl/AVJR+qAk4AO6fmGS1eF/IdY0zkAvqvz4NL\r\nBo8wDUvo8gNS+olCH7yBc2Jl680rjPxt4pnSz/zl+3osr68ARO7Io+3hs8rm\r\nGjnl5jKyLSnSAjcFnqVcTBW5Oi8Q4qhjc5aaLD9Sznn/IDo2PKLF/U91EnOA\r\noeU4cIBan/7szON7QkdAjrYNTdyE5BUoWsE=\r\n=wVs0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.44_1661269145459_0.7833147853663092"},"_hasShrinkwrap":false},"0.7.1-unstable.45":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-unstable.45","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"080808c185ae370102187781106cacaa422e7c87","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-unstable.45","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-poDpFsfV/jzjuJjnb41JB5nNqPFMBSZweEbrSH66CbFelPdfPhhuVPYfyW1XYVo9dQwkGabx01RZ8xlpPY3fsg==","shasum":"c74d98627b70a2a8f19de8516d85deefd9001e70","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-unstable.45.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA8jaigHs6cffB66PuxIlP98heW55G/XT+Sps1jt/wOwAiEA9urGhp1Jt/AaELJwRLhEUVtN7musji5+a/0RzRkXd9Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjBQdOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq74w//aznUSDQSCjBOP2GyoVm+e+7yOo6x+OMtz618dYnGepqdbZBg\r\nWpbRujO0ewzORVzWjl8b5bskPP6dELKgrJw1Q6EeS6j0BgjXA8gwzfK1Fx9i\r\nQaWcpyczf72turdNYR+SOcKH0hLkKwneGxNkKpIjlIrQKUI9Fs9ac2FX6M83\r\nLxTOq4c8S79P+8c0dWn8AZdYPfTqY/41Tscm8YFxKVKdV/L2iKc/TI/RVNTn\r\n3aLj4FeN42/UAsR+pAz5+VsiXKPM9VN0jOa0IryVeD+qRneEAtR8r9/PphfR\r\nEZvvPsmvdvQndemQmSrCYC3lV/MRTaJmu40l87ZYnOMZRDcMLnA0ja78ONoz\r\nOzAkyCt/1ZIDwWS+M46IVu08jS/YolO3FMzruy5pUzXFLFoT0oWhWLjc5o5e\r\ndJSsmOY8jEafKXoZLEF1SiAZgEsNVXMP8KCELFwpFtaz1D8OtgrdV7tk8pyK\r\nrAEh2Nxpk0y/3Q36pwcgP6EJVU/b8umKRQlqrDGpG8k9KLgi1AcW8MpCdolZ\r\n2fTK6EkspuuuvwFRpHj8/ujgUM+zPFwD24iRSU8n07PJhRgBSZ/xIowuUI21\r\nFDghHPWkiJ9GDwP+i19y5cjr3rV1zTh7SwYcJBS02Rqce+kQ8uGGIWWDAW0q\r\nbBMfqzpCZxvgDdcbtaTsFhZ955Blf1Eefys=\r\n=LJU2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-unstable.45_1661273934042_0.637054333885815"},"_hasShrinkwrap":false},"0.7.1-next.54":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.54","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a9ccba1270296fb1e8e74e1be73f0d2a49ae6969","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.54","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-KdB476VvJzCmeDaT7j+vz/d8sj27ueGW7ePaHsbjvNK+ty06xo6fHXXHuR6d2ekYIf+Z3iCzZU0GaMg1qUtquQ==","shasum":"e470d2795e79b335b0b4c3f3ea4053b843afb9ba","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.54.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAoSJazXVPXBPds/n7UVGMcm4qOrFJxHo4tfY7vZjbZyAiB01jHs2KlCMsjSDphZHbvkoCaELiu9ARoXvE/bQSfc5g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjB2N+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrumg//TKukrzow6BVz/yqK4vatxggpOn/CDEhcDjNYGTwqXlRTayOe\r\njbJMJStdFD4yScCqlu/whwLixgSX3IgBBNUlmcDph36t8e6hYaQgIoZa1Sig\r\nnFahDrDhQ4w4lNhGOHjQMC2wJOjxzERex1ZNDv2IQr8OzCLEy8Eg1q7MxesJ\r\nIxLMKcg/1EKaMZUcF+Mo255jLreTxQPF2UMs2ILMe/qyO0ldameupHIAqcjC\r\nMnt7Pv7G0Jxqbse337u2HSzEBqlEkGZ+/LINUSXzjLFHnilm7Uo1KOXVMKGM\r\nJfGB7OmWUGgzAO+DfDNceknftC2NpbwIyI1K/nmBeF857YqOCwZMFhTbcp7y\r\n21p8Eeeg9KCR9cfl68RXnbezBNvlcJEg3p50jZxRLXlNXE5CQ464XOUjryBj\r\nQjrx6YI6i8Pi1UTnYWV+jEo/3YOc0VaZljKgrwxL1aiZqU1cKxkkEnPX4j+w\r\nDS2QEJc1KzS5cJagpgkKpNwYeNrXirNd2nr/koGuprLmXS78hXO0oO8wTyzw\r\nRFC6oG8Lns1udSkFJZvEoAmm19I7wj2g/wbfDXCRhQYF8Zuq+1tdUbbV8QgZ\r\nFOwJo6WrueL7i7F+LKUmexR9CVNZUpcPlob5JcB077rgePL/+otOnfqklyES\r\nEqssXhHuuUTbuM5RnWSmFbZSvd87lk5YosM=\r\n=l4YQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.54_1661428606608_0.3137813804465641"},"_hasShrinkwrap":false},"0.7.1-next.66":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.66","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b4151a9cde3e5e5dcabb32367e7a6b6ab99cb6cd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.66","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-sAm3oUEAZMB3KEfeTfddTE+uGZGQ8ggOdDS7vLqlaeSRIg5wRY55vEtBXHk74G7s2ADriwOG8Qbt/naYoPvU9g==","shasum":"2d3cabca9d94a567adea11907c67db586726d9dd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.66.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSTl78+47eyg4GSRgoo2z5BuqhdnJUsGwbuMImCDeflAiAgYh+9WiaGRmCFU47s4jNcryZYl4M+4fEZZ3MtO3DD+A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEoXVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmogBw/8CDLL4ozDs3iYRs37f1cfPhH7KT+5lGQAFdZRkZTxRghdbvY2\r\nNjw+LQKiprnILWVsbC5f4cu8c8CIY3PHl+5SpwXJLtbk9uWtzavun3fLSSCo\r\nj7TzKpQktgm76+dDBZ04PfZZlxRMl6Gj/dmLV3KXBZpn60OfOmqD0vNi9Dgl\r\nKOp72xtmqjISSPKEi/BiaJV/a6kibcX0apKL09NYv2zHiliLQ+vGgYxosu9Z\r\nD3snj4s2oe9KeNNHRZjIpHOai/GfTcQHbWA74lKmh4cLrfz0JkkBu3Ev07gq\r\nnzGVxinKfGZcGk3OQut+OUd2cLfQdbp/J6IZi+TAfreJ+g/+SHaiVg0s8sV1\r\nckIALeI0dUQqCiXAiKTybXwRx/h4VKsznmuyuV6ceaXcJaStkN8KxYwkjaJ2\r\nqMeFT1ciNNMUPR3/7S+gZfHuHPSy+szKnXwiRtHO67leAS/gsR/f4hvaVicf\r\nsQZhkn1Km42jkGVEpcP72rr+g2M4A7N4tWgQ1p1EjjAj+UmBLabmpQpE05lx\r\niMitGtW2rTy/6TzN0aFmCwKaxTJhwyKAQlexUeb/Cdjlp+vk2D8EjdtHcyrO\r\nXIuMu5mG3A8WuaueAQLg0xKXOF7hZq6uSTfYpZVqMASoFJQ2vYmV/Ju4P3Wp\r\nSsnTEEzujWJmRO9JBFtgy1EaeGB/PFs08eQ=\r\n=9IRy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.66_1662158293287_0.10020193005427869"},"_hasShrinkwrap":false},"0.7.1-next.68":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.7.1-next.68","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"00c9747efd89f125fc77330af0fc6ca6accdab74","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.7.1-next.68","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-f830GN9mdOJQFamRLFzBpt0xyJ3vAxE6tBziPH8VMrouG6qbz2+qVscn+/h5rO856Gltd/XtZB7QUhh3FgDrSQ==","shasum":"8a9a00af82ef779ea1a687f5ba2eec0640fd34fa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.7.1-next.68.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAqv9kGQdVMeSfNHqXKjpuXQXF33wpTp15/ZYN/CjmeqAiEAuiaZm9Qt4aDjNpyfK37E04p22Ht5gkuyaAQQ6AFDIxY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpdXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryOA/8Ce4iEbyAW+x0KZREh1oI2fAZpolwjYiovbQ4WnJ2psOiTqtH\r\nyRR0AG+a63LbQKyKR8rkUVX/jODoPnmzSOLbw3wmguXfODvB/yHHReTKeapE\r\n/EqfNl0NMHUsCsjRpxVzIcrUShTl0GL8wA/YZ40SEXXFRFObZPCO1dOqPVKh\r\n8e+FQJD4olaKwOqOPVeFOAd9ypdIRCEtGjqrzMe0R6O6xWZhQLv7OM2nTQ5x\r\nC0pXMQmAvmLCVuU/unseAOJE+4KpAchvb1VExIxWNjbZGGAqQmbOMYCv9l6s\r\nzoMOyM2BzD450OIHNhAXg3HPKTd11aegmvqNvDjWgjN647WRg/NpRnHOnBqL\r\nnuVug+IJ3+ZwN2LrbtBC6sTPOFfXmP/b6iR0lzDnZSB4aZXeyBm6hNAHjuTC\r\nfPV9qHWhJkuwsKKYhr94dQ1NQQvUVqe26LLAvzTjzqyrAlalIy4C2h3YxDIP\r\nyMvyIO+thDc4Un+KMZYjOJH8fdKbYxlDfXD2D0PJyDa7hcg3eiwxXkHaMOVx\r\n3Uv0Kg9jbFsDzEzFpRd1FtJnNq0uinN7LXOubtoYWlJWTWQYBqFc5Zmie+On\r\nGj9fFlWqUQknusfPUHo6AaEhsaJ+3/n/3zEVrcN3LRFn7Htjvfs7Kb2S4lha\r\nX8Ab7RS0lG1gn7+SUSDgZqlZxbMwArUo9VI=\r\n=drwW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.7.1-next.68_1662162774917_0.37818523982894137"},"_hasShrinkwrap":false},"0.8.0":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.0","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"1032feb5588568edfbca0110f3ff9e6c38894135","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.0","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-ltEwSQk64XOaWqa1QBYbALVx/WWNhyZqxIe+V+u3NYMdkcl3D2sl90YRy6FDGgfHcOmVqxHblM904b1r/I2Smg==","shasum":"910800eb4a05c5711fe0f57d3c84d5ed6c7ed8be","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.0.tgz","fileCount":23,"unpackedSize":32159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJB1czTCpZNLdclMcB9QM+TZ3IatRyQObn/c5sGu8wGwIhAL28PTVRG1fNg+Uj/lSFkH4CHlzHEOVIVWCg8OudVDpw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEpsoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqBlA//TeU0PnoESAcqoMSLCowf3kn6JYZcFPIYofp96UcWrd+puQAp\r\n8Pzx66A4Og/3BqiKfeOEo1sHCDtfYZxmxFDzUPyofC7E19AdC3Eky5rbJ2pz\r\nCMWx5w2mLSaTxWxCn3pcZkAGX0t9tEogNXcrCiBPa8fJ9K2a6qHP6DjHQsjb\r\ngyNAGOgQNK/1VF0dXvvFjx7QK/Biu5lqr/WlqalnvoangSJ4vFRG+Ael4Z81\r\nGbkkepinsyR0dt2SR9Br/rKP9H59yH25NSmy8QKcOFWHPnuO48KyJJj5nWq/\r\n7xiihIzMLY+usF6v5xQburL590FHb1LfZr87gL0C9ooSUcuOJ7P42p5uevVI\r\nJcUxodTy7yGgMWrrM+X6S0NZSCayfwOJYHxHyTJKFQXqPZVdBkzsRCH3BY/j\r\nJ2szZ+ggLNiQd20uql2DDTSXJbMIAdMPlwl8K0L75Ex7BZYcn2QFf/9HtiLm\r\nJ/AdlRRJiIVmCeUToaq5MUlAoZIPVMTQwBhU9zlHC5LodWroXbptBypG4w5P\r\nq0m5y5kkJ17igDk3yVOe4Wy+ncjUzOWuPt9IrEGTjeznld/Svter9uLhnObW\r\nTSJQ2Dqlx4ZKb5M/A7QnchXSUuA13EoVHZ8T3Kbqkze5Jf8EkdooieUTkGKN\r\nv7btyQ/eBu6sSi7o41U53EPD5P1kD4Up/mI=\r\n=V7kG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.0_1662163751772_0.8060380378110727"},"_hasShrinkwrap":false},"0.8.1-next.2":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.2","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0b28de3de21afd0a224d3d174103e072162231ed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.2","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-KYtSvhy89T9Ix0f6FKrUbaSD7i7/3FHGIswtX088OUo1orFmy8NSnXNpA4QkKRuqeQ1jhpA4zBVAuG6+EbU8yg==","shasum":"99d68f368913945504193105043d679578a0349d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.2.tgz","fileCount":23,"unpackedSize":32174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAsC4Hu68OlU7ll9xymaVkeW2r5mbpGORqbdmGPKE6pIAiEAo551Fo9tFPy/VhdECT/VyVP6Y8Blu0efquTrbttTJwQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEqZUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpnTw//SPXlGwGbBFEYALHyWRsFOxoFLO8htOjTeQ+tmWHJHsx22/Lo\r\nSKUOYxNx0U+z5W9xrNSbgw7iXrSy0Ss/MTSgvaVVgmZfwZpZclfoPlqX6FCM\r\nhw2epTQ3/4rMq86UUjD1p+5XFiKoFMJgegN+aTKTIiHZUNafwphO8akTu+hB\r\nC1Y/ykMZjaq3KnZjUSFMrhOK8g06YHavv7jDf32J8j/EJqDjq+LnmwjZPach\r\nwOZlLLDAcTpd0kJS/q6VwUksBRYgSh66bhni2RhCnVJxzng1do3Ii+m/5BaK\r\nhYC/hsQt87uN6UkVOQQtZSIuGv4j5A91Z8FENTvX6765Q27/oTWO81XQKDJY\r\nltTgH2DTbRufA+zci1WfnTKVjMVnsWo5BsR9enMI32tWOu4PRIU9po8Chy6O\r\nGbj0N5HZRFKszhFyvKWa39OCYZnQIpP8vMWSj/RD+6HPhHzdhpW038Ii+dYo\r\n/yjU9ujNEAzif7QO/3Ae9xyYWXpMdhMiqzMNIVkPnL6ArzFdMDboxqTiUDDr\r\n8pCwDT3hz4TCxI7hlPygg/B6GTLqAeDL0yrj9KkZlNafAORF3XcXSHokm7TR\r\nehy251giqr9LIUO34tJbt3q+cgo98bP8w2wSnkZGowJcuOsr9F2CN1HP69pM\r\nCTKO+sWcFKOdNPvViV1clnWjBQCGZLiQ0Bk=\r\n=rlZl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.2_1662166612620_0.8135099282804183"},"_hasShrinkwrap":false},"0.8.1-next.3":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.3","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0c75aaa73635bb037c226183071e10a184dfe549","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.3","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-zQMZewZNaH7wVP7bjyorZOlFQZjPv9VH+v92bQEKYoxsnbJFJ6h52+ouq4QbPl3OdXQL/YCUtFso2xGxDtCMww==","shasum":"f9534ba07d42172f835c7cd1385634bdf018061e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.3.tgz","fileCount":23,"unpackedSize":32174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAaHNJsrSWnZwSZWPBwSTpk0aeqbD+KY+Dvfsw/tJwXuAiAwlPx81m9TYOEnUUMWxLROO1AJOB1/XuTTv92mBGJXwA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjEqlbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPUw//RKd5oDMv/SgfKh8Js6BXwxUOoCbgowyiNWHJUUFWw+68jfvO\r\nRz1XwSIkxUi1TtNxinYnccmTUU0krmCf7xDTwvN2ewPyPbu96aa2nT+Z82I5\r\ng/m336cPSJxdgbTw6mZKGmvq7t0OTO6Rh/GXutTi8yw68iO702OIA9H0kFyR\r\nkc42eo87QXU97uSurccpSibuqyaAshiMtgsf/jJXzLRTks7OmA/ChuQT1eKr\r\nUJPciDfPy+qwtiNN0vusvA4mBowqmfXfxQj0A5rlECTAFlNpfPU5j1GRoDki\r\nHEgZS3Ctkn+zkoL8xd901cH1i9P0lGiAhf3YZlzoF7Bd6ygYqu3X4YYQdD9p\r\nyee+Uu+X61dYs5By/nC+6/vKFmErweyLO9dwG6mXwne40W2Vc8h+oSPt1p+W\r\nJ7mmfc1AP9wV9dfWyoKg6E1Z+8YN8/h3B8417WVGN6PDp7VxIZjZyo2esHV6\r\nB4mgFygGgD94SgYIXvAs+HhQBHq7A35hd4I2GAIFHMXyFES7g1Uf+sBmcrYM\r\niRbhz3QO5u5Gkxegz1X/t76jwzWDljiDga61E7H62/Q5g2cw5XfE/Kggr+IK\r\nzpi/QYODCFULUbT/TAXZThy/GFu+i8rKFk7SQdHtySJucZSBuSSOPKvMPP71\r\nlfmYZqazcFhPsxQvykX41ClrYtrlbdTJPxg=\r\n=Oriv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.3_1662167387590_0.5598344888499354"},"_hasShrinkwrap":false},"0.8.1-unstable.4":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.4","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"e8c9e783b4a8b61a176213a8e465cf18db2f63d6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.4","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-d8RsVlYBwH8HhERUmFG5rAbzX9UCsvKUUsO8IKe+GyvRAM4ydr7K/MMeASkTca8PRCE+bPsh7s7LQjEqbwvs8w==","shasum":"e861aa1d53abd6b363dfb3184c0e16dd610acb26","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.4.tgz","fileCount":23,"unpackedSize":32178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjEiHeMPkho5TRwpUde9vo1KxopmfQILAn1BcoD8pSFQIhAJQLET0ftQVW1yoWrXmwMCatOY3IAqZfx4grGiLdXPJw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIumzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzSw//Z8TUkf58L7qOVS7XgHV3Le78LaEweklk9PGgBhkGxzp9FWCy\r\neQYPGoAepGcKB2T81CvQLRMTm6tUMLkiZV7oRubhAnazjQlIUIaMEjmmM3ZZ\r\nJbS/v/+FL+bpExDLmoxjx3qR5UvwIftN+0GfMv05C6OBzwBsWMLN7UWPswYY\r\nfyyurTZYa4uUXI6ri0gMbsFgMAJr3DEfOJYAm02Uju+C0bDE2Sa+WKvAzeh7\r\nOpr0LB8UfjBMJetkkCzzXzB3q82n2hONDcq59wJz4kirdwnFcpvT+gGMK3od\r\n4eBslJxszbFljjnuUYaV6cdWlRvJgDUjuhEHNqUDfF5BVS6jLm70QkMNbA9b\r\nR5xYdBvw9tD1iFizU3Ewf3WKLwxWyzKugLletdokH+7Fn0dvrTJCMycf1XEe\r\njiDbZGVVwMatW9cvSbc0JRQWrM/iyDD0Lnq1LmRPtHMk2yyofU7pe3YhPrWm\r\njtUMo0NA07W8eor/w5Avg0ED9gosgO0i7f8TiMSvKwavm6k51WaU3o3eE+sG\r\n4codBIe3V2NYgd2lUQhpiNwXzKWdIOqLI1c26GFyGxdE10z6MKWDXBW2K/mE\r\nY16O9jXkat7CF60DZ1X9Dh19TtvWdO1/repYphzELRgl7dLZoRMtMY4hlOaY\r\nx53eDhWeL/QudEzhMy+ayJKeEA0OgRfpzLk=\r\n=j/i8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.4_1663232434911_0.6403792120067806"},"_hasShrinkwrap":false},"0.8.1-unstable.5":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.5","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"ed329f67a9fa92473dbbb1e42b23e7a7452f8686","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.5","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-aR18tDqgFf0cyxAcF5ytADpbdOLNr0EDf/d89/XpUalXogR4jTOES/dSNZEPqVNzlgH0bQzyq62uqGYenoEB3A==","shasum":"44a25f161f5b46f0f6366ca2d12bb9e16e5db51c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.5.tgz","fileCount":23,"unpackedSize":32178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUOnlPevLdC4zpNqYLLs2KP7HDo1XDbbVpvSzPJ0zdjAiEAsJdu3OzvsEkyW1OrUUlNuUcu7nbp6RIwZh4xzZVbwWI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIu2nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrqiA//ToTDg/SWqIw5fRlGUHvBGNcGePZjL8lb4JmIUddZ0T+UwOn9\r\n2TX4pAtS+XIbZcQeiouHg3FkTSdT/rUEktWiMp6DvHMMh1BCkdLhiVz0QgD6\r\nzcaqeq2kwW8gOjDU1rrZ/agbZ8o7lN4EB4G4ZA3swf1T0h3VUbydQi/yl2We\r\npTo0DxKmM7+XnJRYpWVJbwujZbrd+PeBt4BDROidISy3054zX2oVTA91pqg4\r\nb/wz0wFSxXlq9v34ew6W82QjixGth9CQn9K9yyhGIlaCjRM22ygyJcdNXQd9\r\niiLXln/EDkdpy2loLdl7X2Nt7HdK6NhBeHwOlTD7qvjCfCWSg4mW9yLeTWYE\r\nqduyHjtmWvGIxrhyMsjW8kFfeAzlgXAwOacwLQEi23RcSV1adnRwOhNbBOVq\r\nTS0FVo+8SzzuccgsDk1wXnosPkF7X776Nc0tqrN3jF0nOEH9i85E70/rkmyC\r\nkGKMOy/CjXfk4MpVdThNyE5ENFvf4yqMLNsCofRMYk6hTqeoA6GFNP493HZt\r\nJnK5Av8NVOAfbkIM7xtFWr1+WYPIajQbZZDDio3ln74WIXqz3ClbxuCPnBcd\r\nxs8ouOW3mczGxNWvN4I5b9m026QVjZ1JA8V3e3Vjlsx5fw+tN2fCLXVPgNw0\r\nsQkAmLaW1Ab/+WHYkocdFdFVhkNXttMx9Gc=\r\n=Y8UD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.5_1663233446940_0.09872965985117932"},"_hasShrinkwrap":false},"0.8.1-next.6":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.6","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"27069f85062685aa678ccb7846cefb84b253990f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.6","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-XPS+xyOpD9bpkZlRa5Jce/897xUxPR0BpQzn/hl8T+A+Qg3Q+Jun/o0/7ryEonllcj4m3jYtkGo8pUWAOoMrxQ==","shasum":"9a22e04942e158be1132ccd8f52716f503047b7a","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.6.tgz","fileCount":23,"unpackedSize":32174,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBguxpY9rBzKbord9fx4FRFw0IPnhQUc2pqLFlAEAKUvAiEApw/UPxKMVPqDBG9NYTUkYqE2CJlMJ8H8HSyHclyvBG4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjIvEMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmovaw/+K3cr2hchm14PMar40UIeijhkbUdq67fgN668qYx2bOVQaPZg\r\nEOnG3S1gM0LICDJKyqiOmJShzfLBYjfpsozO9H1bWgEazdijvfiGbQ9Rjwq8\r\nQhds1vx/KkOtd41XB878J5Haf1AuIBuQDNnsHtRwzgGEjc8EmtP6D7II2CZE\r\nl7bS26IOTw+BXdkXjYUvzoMoQyUg7TvjYCiWjGhffMU0xUnRoE3tluQB6j1N\r\ni8mtRxnqAjpPurlJjNp8b5APHu2SkPnPOrSRSUsUo9Ru3eLJJ5dUaxl5gwmN\r\nwgUwF6O84wa5N0gkl7Wf2uS1wTLMSnhjC7CjLiCbeC5RPPlzsTam8A8TwSwH\r\nQ8tBDnJ8UYgkF9MKqf38XdfVVrJvBHHe7s5rl9BTh+wx4IqhvU8vtsQMf3W/\r\nzEQY2clqcduIO9gInVhd+1u6VAcpC0iczAfIM6FTwApQSZoOmYChkL5AIEDN\r\nDaQ92jKKv/JDQEM7TLYMQklAsqU9k7473bX/GbvE5o999AC9J3dB1RPcObl4\r\nuU7mRgIKz/ZO4PbOgAvWSp9rBwB5UBOhmlkgMut2B+N4Se/Fhm16caTr49md\r\n9iRzAtJpvXqZH8DoanEvgGSo0zUrYJY4XJ9gYhH/Xy31/LPZ3WaapHC76A9H\r\nY3O33L0sPtQa0VluE5FYacA6PMf9wvXDSB4=\r\n=UV6X\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.6_1663234316822_0.053111485393854796"},"_hasShrinkwrap":false},"0.8.1-unstable.9":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.9","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"af7f5324bc1718f724e3258c3f218eb85e4199cd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.9","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-FOsG2x4HcB4eWBNsMUR8Yv+sqI8q1CIkOnug1n8vtvlCTaJmDeWmmS2T96Dz9xRC6cUuYOgRD1jQHPei+NX3zw==","shasum":"1df6933e62e60a6c00b86cf968ebb79356c7070d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.9.tgz","fileCount":23,"unpackedSize":32178,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDytRlo6gYnIpCrQTDyZYCtEoMpvmQwYY6Gb0TGkpiQKwIhAN7opr6buuMX/lGw4hNjTFsZu+asCD27VvBN19lG4zFu"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjJl7NACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeAQ//X2fiWnAkdnue4Rp5cdPUHubHiNm6Bj+PigHSECyzBOSHBeUG\r\nlS2cx7357BXpLdr9P50+FgNGrrvBoQU+NwPiH8qIzLh5wyV093GdaVlqNMlo\r\npyOPOB8aafAGIzFOyJa0+GD+hszSRdwdfFBYjny+INFCxNCpsw6iTFSLHBow\r\n/5Bq2MTB0E/F3qTm0noRC0KfZX3yRWataUW54K7XSTa8aCaoaVT9IVT5zTMv\r\nRf+T3VkXBTj0Z7D1I2Iz4sJvDiznuMl0EFhTTryvizvoc8xG+dH0djy5usKq\r\nB/4FmFpR3Tn6nvBocHWpe0Zry1fhEs/wByEpo8aqnwPD8nudyHEBmQpNdG7W\r\najbWTtPI1mMz6KwN3t9ABI18d32W7OTmNMNHq1iNiWKj8qVMSOs+kmIH4L6O\r\nCwwsy++JC8uHHBRDPqJ2mQ5Cm4PF7htgkrWaiLljZ0EgccezIZgSNX7gwsQ2\r\nUXwLuIwNbax0wWbctXXv8kYQRwZCv4uSzkDCATi5An+fgmgy6JIa8ZJnafsN\r\nl8iKH+HyyaaW3Mlqp6zRpQEWAVqEVeKPXcd9o4jOpA/je3iOsRFxcJpyJa+a\r\nIEAB18pCqiW5YPFS6QFYK7qivRUCaoSaOuRSm69DGkkOPVnXwT6uk6PKG+Ti\r\n7C+MeKn1Fudn1N86aCnu7nowK9HMQNVgzis=\r\n=7m5u\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.9_1663459021594_0.6419821129985481"},"_hasShrinkwrap":false},"0.8.1-unstable.11":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.11","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"e5fd396f0430a594fd72f590136d281355f61408","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.11","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-8TgE9P7y3RX79eOv+ea+KNdNuRH2CGijDaeeizyBvVIJ2d9cr0tTP2MwK7rh521MLrTuX1e5K3jzhWDwgGb2xg==","shasum":"b99ebe74e2ad130ddd3f2ee62723f4b8924c6781","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.11.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjZgU3ptkbFTAhtcbd41QDsla6+yLlUjhec5Akhv2XmQIhAPTYfXx2QDbzSjbiyVJ7W+Go6d/CT5Jrdgt2G1jD4YUC"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKHZdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyDw/+Pzk2s5tsw4JEB6r69EJRCX1I/FaoBIR8xuRechgbLgMh9xr/\r\n/G8XZ6M/EkDJ5ylnsLDHk05CD+p9B8xE/b8ap6jU5emkJTzmWFHN2q3wN27O\r\nySchHsODZkFbSJrkFGB/cesyy+U8EpgaUvnbPlqJGldg+9GBZFIR9VVz+e1X\r\nCEmk5bZwIoK3a9o14JEfG2jmj/0YWrOsc76O6WixUXjATWr1i4Vl/m7JwnCS\r\nyfaN7O6LWSER3Dtm6afaYOGVPaOqgk9F2NIx/Y6fSIbMSeW7D8o4LuD3ACjB\r\ngjXzFJU3dhwBNjDy8E/M98UaLMcTS5a5R3iMVSu6h7kbAIaqQ0dRd9hjdtBM\r\n8oP2LWdz4ToPlgcBx9WYSd3udOK3A/FLcFaiX8Lvljm820njfqdvUtV99wtB\r\nTe690b3b1uWU6kd5SsqNkizuSw6zfjW8SuokV+/7m4LZT2BDIKrH4qKwr6Eg\r\nAni0j14iabxj1Ag3atcTvl714r3KLMCa0AxSBgyumMXojyjF1HBKKJzHExEp\r\niz8WrzTvFi8ncU7XsWqE8p16LORLOkK5iNj4L/kGBh2nPPomZrbL3BaCkMCB\r\nt7bxENY9dotlytAsSd7Dil4e9ZiUjLEyvB1n7rqYUnIGYvn9rnYuZBoqpBzR\r\nGC3+1+apE2tUlUsVcoBcbZvJXgjkpg/VmqE=\r\n=yXzM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.11_1663596125322_0.5922598515460349"},"_hasShrinkwrap":false},"0.8.1-next.12":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.12","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"84fb570f29ecd7a4fbd6477fd22284f47e814ab8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.12","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-pfGE+yUwSRrPa5kQPiugjlHOMfWmr6UUuW5NZL166zc88ix757FQwlF7xGdlOSbnBnkUz9KPfbCRfKO1HTl5Hg==","shasum":"53aac85bcd9b4acd5807746c2184879dfa46bf4d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.12.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFOTmAKPBiQYH5g8UdRLSI8N/uB2KJwOV6sQZ67aRk9iAiBArX8FiYORrbSmKY/1p+Yg7JgWzG5UkyZSAeO/6OrPbA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjKIaiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfjRAAhgskn8DTss6F8NKVa46IvScS1FKlU7eH9dSh09G7aNvbL6sy\r\nlADU2Ia27fHQuz8yFxa+1+aHZHPbXnyDK8VewUBfXXaLiXmoS0au7myhNaBX\r\ny8jBM4ZxDIaz4xuNw8d7wg5t22/d2hV/5YhM6kdIho2Ut9iXv9gEygzPNI0O\r\nFqF02hWVOnSr9mhdY8WPnOraCzPCsrIiCxjoHw+kyzHpodDj1P9bwQSd9yYe\r\nZWiEyhXtIKCWClvoMtlENxAi6zdtK4NVC2TNRXJksQBqKZBkQ1zrg4TWDqwg\r\nHSEMeNBn3Hgzq20MZtmhV0jGn3qVPR1TGHWND0wnkyDmmUzJY2Y4Mv1OLXcJ\r\n9wKfBm6iJ6YrxMemVIvknnN7lyl+5D7TSN+rWVf6Vnoyd1t+HgBuJ0r6EJ7v\r\nTt3zxz1IlB4lOE+GHzaVnb7fLVIagwScV55POObSrMseUk0Vr5Tfo8mhZW/Z\r\nLOF40Gj7bPv4mIGeZnWR+PB2+c0TsyqwQLIyE042q9IXSJ/c0/0DGLYV1QzM\r\nVbWO0yIkHQliySYlDXSUAQiHsPs/7UiXTVtg6z1aQ3Iq3JX1ChDAhLRlRW5p\r\nwVHIB56VSeobcatWJ9k3JaKvR1MfFfXP1vmP89kzGcEjy7M6hYA9QEBBJtlB\r\ni/jAsi+IOP4Qgzu/aU2ZkaO+D35KAetHb7c=\r\n=YMQn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.12_1663600290198_0.6381198773643759"},"_hasShrinkwrap":false},"0.8.1-next.18":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.18","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"71e09b8e8cfa8237d8e3d0a6b0be0ed4f3beff48","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.18","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-yuXOGw7xl+16nhXOgrQ4BNJbHAjVgciDQzRNp47SqRor+3wiEFP6lQ0SxeJZIDSYMj3NLFjjLkOqiHG8os5HUA==","shasum":"3bf820f0c63988c87ae15b9f4211f71edd138b0e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.18.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgGDF3+p2fu+O/EPM9OcdChE6O2M2W5kgxzjrJZMHf+QIhANSxIddifeOWAwYMctyhDykD3EQxnRuSGjt46NPov5dx"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLHtaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriNA/+IxoW+TELJBpxVEwOgbUUEYhQYau5P2mrtpyvRYCFrMrrDsZy\r\nvpm3I5LBoUYO8bpVTAhxINDKcui8RHHZHpN+1ZRsqFuArdho0yHSomDXiM2T\r\nUOWmo7iitvHl8lFSk6MgxYitZTHcYfQ2pEXS6EFOzoo8lZDwXYoRs1SvQoph\r\nLj6KC1B+Y/BI78k4RvOKl5G9zddSEbc/fiBtADkZFdJjOyGzL5XUtXwslNXV\r\nxQzYEQcOF2FmI5LpqHxV5pGxm4YIQbfZ1Bkt/qyTKrfsXX0ICETG2FzBQ3CH\r\naQXPD44PxE2sz6tyRYcU5T1w2kGFtK9Ib3nCOxE5sTnio9LWnmJZile6hXJs\r\nqYln6eegmBnuN4S0WVBOjx345w3FbsZZBDLodKKrc4zqyBgqRD3uwzwDBFqv\r\nP1Tb9f9W8RXKgxoBAQ5ltIKnTvWoEz6TLyXHJdS+GCaEYv517p6jAM2Vk4au\r\nxaqYqGWyM96dfJLzHNn6wW95iWIBoZ8kiZpWeah9AboCrh1z2Kv4NFnoL+q+\r\nUfh2YGEjNWpqDebLdxmIsgjqCb1yMpcI6GTr5fjKk2+WWlLwS9mWqXHyl7QG\r\n4q7oSMhcUUmrtMeTbqpYSwB5H6TEtYhkJF0KXH5c6TaWhIDN0MtQ4PHLJjF9\r\n54Wms0IMtuYrLjg1z9xARkCs5O/U1yx0Bvw=\r\n=HkzM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.18_1663859545912_0.3209358326704208"},"_hasShrinkwrap":false},"0.8.1-unstable.24":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.24","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5e407accd822ccb099677876df192e850b17ccd1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.24","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-N6lmdjteCYvXfk9oJ5ZGXWPlgWqQpl3YPG+IkVv8ILOPUQt6CvxEPy+WhEYSx/5T9sqCmacMMWnBGF+6Y+M3yQ==","shasum":"e8a85eb63c2fa2c59abbb261f9f1f93df1c447df","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.24.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDOA7xqZrHq/4UqZAb14Arti+bkUYdAUGyL+qLMm/M/cwIhAI5oA4dsDNoT/vA2+enMCRiLqxagEr9lgq53Y+YicMgK"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjNgjlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpz0A/+MbxiITtDI94b525z5jv0/sZ2zmy3sM8qNJ5TOSl3wu4rUGAL\r\ndfGCPZTGroJGWpT055L38yb6yT0SnwXsscmBDl97uP2tVeQLLfKcZXnn3EJZ\r\n6DroqDzkQch3W5MBjCM5f3hw33QZmp6EgeL9yTvK2NjDU9CYIVPt3HtLUK2F\r\nXbO16Yey5LmQZ318Ahb0lLyWVZR9EBvSOucTL7Ti4z2+fyzj05zlGr2pJJXd\r\nzXBoPsdX8RO3edzwTCdLP65AIOMdBrEDIdd8mEW4nEi/2svOFqgfoAHlPCOc\r\nd3FzpnwfbaWg7pVxcTRCJW7VtnTCyhLcit7lcyCgjLRb8TitvHHWFUifOeph\r\n5qkqRkwAfspmvJM550CveuKJfqvn6tdsoqWPjoJfzfpNxMtSgt6Je7wkLX9r\r\nVmAw33V3enqJDthETPPvRVAURvz3BcWI6WBfgTkLl+jBcuUBvNdjkuWHIL+R\r\niWkc2S+pvcOiUHIM12nXgCNDWagMPTtM0l35uZK8mnG7d1hrTFZN0UIyKqZ7\r\ntMprCsmtEW/ugXpLux8Yi8wcmSobA6D0zHobu4nOPCweQvXrRHte+N5zjwf4\r\n0uSOwubxwj2rfUjuXCRgBCwAm2wMqDbihS6u4WMzrN1/rVxv4ZikH61z+8sj\r\nkzrNmQjS4Tcc73yR180hHAnCnANPH1fenIc=\r\n=vmBB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.24_1664485605010_0.7172264710339393"},"_hasShrinkwrap":false},"0.8.1-unstable.25":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.25","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"8c8420a269feeb27374aa810986b4400d2a6c6d6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.25","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-PqpdwVNckGPk2zBt5o171zcsBFl+GkFWMR33f/+2mgpWjHiByxHiISfRfzCXDtpJvG5ovouTjA+9PrnOP2qA0Q==","shasum":"75c8b2233c57f215b7aa75c5dda5c1e74a9525cc","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.25.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDexcmyaPShQ9iGX4lLa0vJcciJYZBox1i890Vg4R4uRQIhANlPebEChOEvMuj5fOfAVihB7D6d+7DawunEu6pshy+V"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJUIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpRuw/+P1A8MGX5g55Lmovt0B2d9/a8Bj0gVyX6IzdCIFAH9MWEbXq/\r\nMrpClfAg7Pen8mALKFAGVOCkhL8T9y3gQ10651aNO7FjopHNBxe5Um9L1en+\r\nihGA20h1whKZSeFf9qtg9iRVNfCB+uxomH53E8XJeijxLOzDwer+g948Lijn\r\ncfwL1efvFe/oufVDtAWuVbkRT1iQii4EHXpkKHAmdxfXDzt1RrYiDvYzSPuy\r\nyugg7Japb2BbdbER9jscxKo2VoRiBIabqBjn79QnJhsr34+tHwcqRSI2u8xF\r\n5yVBPCBH68UjaK4gsWR2rNTy3vdTM+scR3upDJzEhx4t5SPxzyZE+jfpFkWe\r\nzQUih5SAnIK1S766DDYUPKJqEaElmmkgCvJxT09GX6e7rIVe2hZidskqN7TQ\r\nbmRTaLJ5w1C5xkbfkAKC9fx5nWJacbV99iiMXyIhuX3efyuGBO6Aw9F3cLxW\r\nEgM33ctdmWdcqzDS2UjWbswrVWJ0HFRvfPqunoVH6M1EXGlHnXt1563JcEA2\r\nS38SMXW5oVQBrXQsZ8tyVbIpw5oVahJbw5Gc/Ab7hlMtOl7Ee2uz0pQvmgZx\r\ncL72VEF0Xv/oPos9IN6cMDkSaJRBFv2S5B+5gUwZD/IxmqgWGn05Y8XxfuIX\r\n70M/VpXxs8Z+3vIeYgt6+0Z6QZXuvll2MXA=\r\n=3uJA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.25_1664914696102_0.5009333127595603"},"_hasShrinkwrap":false},"0.8.1-next.26":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.26","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"4dc8dea175ff9eb8526ce6f1abb4b72ffbb58128","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.26","_nodeVersion":"14.20.0","_npmVersion":"lerna/4.0.0/node@v14.20.0+x64 (linux)","dist":{"integrity":"sha512-sZxSgGu1nouX9+RdMwNRGhIpH6dtuAGWcsiW2UCRqQHq6EQ8CE+IEwtJSXyCWZxxb78DyP3Duijg13W8Jb0rwQ==","shasum":"a1ee03100ae7232b9bddf53fb5be8c29dc24936d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.26.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCND6KsrDt/mdfS+nrtDS597Qt7EsGPJzu4s3Fj7GLizgIhAKQtxKPMMCGrNDdQcOINxacEajopAarlx5OUGXGxKYtB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjPJx9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq89w/9EiVMNHGafQ5D1QF3yJBixghp/16LLj0986L1Z3HIrwVe54VU\r\nMoTecu9jnst4Yjh0UEvKdsFfcihxlM+WVF5I7n6127jJKTFQqhnZA3J37sfE\r\nR3Sn6kjF6ZZe12WezceZwAbLYGVbACMIZ57QrsH2SfXXmUz4tTt9bC4sbt31\r\ntzCskL4gqFvD1dVilaQSOBlU3byI15PaLaI4+4SWo4d4DuPIpzhJPS0o/2jO\r\nttm7/Cxje7UR4sSeUK9sQfehyEXvrNH0pkyCnLBBkkU5yVYWXgoH6LQbgfkR\r\nZTwbsrC+62KlD2z1OupB+RCgvWZhXnjEj87GE1lodFEL41rTdcer1KFupgL+\r\n1TNzj8fLi8Feg71dCdDZsm+5PO7r/RN+ii9Bzi1qtj3txzbADt5tE7OMqbAS\r\nEAIIP9iIlgA/cpckO74g85zHqwjJuozVjBR2BK2C10PtKMvtv7JDd8h5CDI9\r\njxuepYnTzKEA9xYtpCgqHdKM2j6YQJsygn51moh0iY2pbIp1DkecWutW9jT1\r\n99NH6kt4o0DeMRsVUr5+zLFzQOH41vXAddav/6YmooIWAKzoeHt9UJgbpcRa\r\nFfBg2l0FM2ZUT0JMlY3Ng5IntORha8VoAy9XPHeVka68f6Wh40PMveUx1mxz\r\ncXHmG1wP7aFbmxQiHzpQjdeqeQ02onWB6wY=\r\n=lyQB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.26_1664916605461_0.1393816602154958"},"_hasShrinkwrap":false},"0.8.1-unstable.27":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.27","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b3caacb4d7850e5ac9ff2cc6b17b203871d2af12","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.27","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-raSj6DE3v9X3rqOrYVTgHKC6AC2aXoi2cEf3p4f67BYVr0X3VnKuxKVDw2g3iUQlH/M7LEpBM/v5M3ZM/avIpQ==","shasum":"fed258ee7c12041a6e973239d82cf277d05fea05","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.27.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIED9/3JVuLPupWms6cuA4yXkQ6qQYJn+Ckwrd2L3GnoQAiB2yvqv1TWDbi0J2qJRpp0v+rrVz02oBRvqJwLm/ycHCg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRpwRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmplzg//aaerxiEwHklgefXiF3ZS1EizQFV1/00GimiHDmhBVp02GRfc\r\nt5EIzQSO15ksoLquVNf+Yk1ZVu3p9TIlDTDEcCOtvfgnpsxLUitj9aEkGn34\r\nIu1/VA/+NvHUBcNaNOw2q/+dTdUxfCLA9G0cAEz0lzuotFs8xKXDm1ygkHYs\r\nDJdmdTzKNku2sfYT299fjXIAJVjgA8IH63jH0iPPQad17uLMibZMkXb8WzXV\r\nKd5YtCNO5pliKsfeLQEb1BIL05sz/8yIwly02TGm70NgBzD0JJtgZyMSbs9L\r\n9ugX/ikksnCE95qRr3E0mNFih9DVRtiF4OQkMwUhruNqLoxxKg0Sv4UrxgfZ\r\nxdVhPtinlijw/mC1i8gOfUKlWHzbu3GlJZ7zWoT227yQZWvgSFSOf+0vUsHl\r\nwXUwZUEcnQO+6bXrmt5hF7fuZlnZniLJJEhlo1PwubmT14lU/a4NWilUt8V8\r\nrUWn/UZUONh6me0B8wxJ78cxyKZtt5nb1cW2UEpqlcRT6bjJl+a1JMq3dK0d\r\nK2FnOghq8B6/ex1UPmp7j5SMJSNpATkPPj2bKuFi3c1hJpEX3X0jbkOs8wCu\r\nb0X8uaQ8RjzZIzHQTIEKXrxLIA4RG5C9ZYK2Rv9NDb/Y9CPPu3rgaj0+j786\r\nmqhON+8lUBeekxneJmiBraVAxbIN6f1ZXFo=\r\n=1jK+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.27_1665571856879_0.550395264949773"},"_hasShrinkwrap":false},"0.8.1-unstable.29":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.29","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f5e1817d3a1e1abcf902b9a9760c76e5ccb990bc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.29","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-MjEyLDFbzXpz94WVebbojHfEW4DaRD+zWTuvAZIA128k4QjwHQ8zZMWB3IHx1J+07elXo6yIMWlN7AvXpeIDMA==","shasum":"396ace2c3bece0e428365d607b1e93fe069b79e5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.29.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuS4pa3pVLC6pUEjDHvzV9Q9gMRTPU0UuvkT2gnnUaYAiEAwm345PI1Kn6uS+hhFuwCjcDCCGZWvdviD/wXbwc3nv0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7o6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqtug/9GGKTTWHpHswtsZw+xxnr4PAZu0m6Q2mK+PETHIebMUtgWONr\r\n+Wrop2FvnXXKc9t8CnE2NWwwKj5ZZ+dJjrW+gAJxdjdnDsU3Orej0q439m5w\r\nADXdPsijMY9gogeD5d2VZ8MsH7pteBv0sZfCeZaCqDlBJJqVU/4cHvqFqm+T\r\nDgo6RTvdDq8t4QdfJaD7D5S4VkU6JrEYEcOo//RAQ4uZG5F/8roIPRBMlcjA\r\nqyQmCCBRSjrH7nPaUZ7QLi7PAQRBqF7/U0CLuDErqx3Q5CrTZ2PBcNV7Z2Mt\r\nwFoBL5oV+YtQ65WUxaq2LUqZdok5rZBFFDVZJd4EqQyrC/8P839EhQwlOep9\r\n0Kh0tgRa/0/J0Soyh8R6249+L72F6AGsKq14gQnCwufAWiiWGssryK5qPo4a\r\n/OvBXj3k+XzsftWbRjyalaEmSIVWMosS7gQ9ZVEAyiZpQnkY1fVfHrczPCVI\r\nC+WWI857U2Hf9myF0mJNSxhdoFZCuky/ooAbQ1GdwZNaWz0G6FVjqEulY6KB\r\nX1R1LOeH397sAJlZbJ4VdUMHRlnPE49wa0NUuM9i2hUWtofK3BTOyh/pkULB\r\n5Hj5B7B9CWWUSI8HZyU2Nr0AQtHvf/L4Y9CBX1pN9hA2DYgVUQsCOhZdiVuQ\r\ngzZKnL3ZAEMIIdefClEQ/9mCCfvyEzqKsOY=\r\n=wBko\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.29_1665645114555_0.2984593896060941"},"_hasShrinkwrap":false},"0.8.1-unstable.28":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.28","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3f6cc47892b065522be088d72bcf4d0c5042d17d","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.28","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-Mqz1F8JB8QQI55Fw4ku2Iu57NcDmVZg+ZFiGe/Kco/AdP/PVQrgV2zPwzHcH2ncpa32rigfnV2vW52RGxtrp5g==","shasum":"4479ada6e13b8afffd2be2c854361ac7315e990f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.28.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDOfqMFjYeJQ+JPn93ArV7fa9wVuH8paSKdkFUlb7Y3UgIgL6cPPHYiXn3VmRmlsqWFrBUYA0nxLKg5kW94j7IdR54="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7qKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8Ew/9G7ecLS7ccHa3mlVp89uOpI+xZvzCHSK9B15gKdBxAUPrGfRx\r\nZN3abINaPZtoePuP2i9sJ+K50qpkUpNa5CXZmwxqmVh/b2G9sQOWU/PHxFrZ\r\naNjV5jPtnJXOvq/2uIN5mys/09yzzsKH2hGxk7pDHxT6yoJ7Eml7Gl/GNxaK\r\nYrj08oI4d665oIvbrxe9wK027Tcs0xPvCzQj1TpWgd8msYXLQ7lHkWRXcj6/\r\nuaZk5bIIz48+UQKN2FNPuYY95D3QRmYfTagbnUVzfSuL0hcVOVo1589z0RCM\r\nAFQBtacSO7hSQOaFo/o7fkf0BqqAK2lO94virTzlJO3GJdANitkZkX6uUT7i\r\nZ/EJhmOhx5XjKiyNHS2GpAdfxtUZcLmuhEbzvGZi3keQ7nnLuWZary+k/45f\r\nDFqVf6V7zFtLwvVreOd3hzWTIzMw1WmNNwFC/syn1PndHbuPe+T3E1se++b4\r\nNwBXgVLk9GITMM7ESNRMfM2LzqNSGrgTd5UORi9wUCHsnYKQMdlWgZfTXYAq\r\nUsjjjTAaC7Vr4CCj7nhANUwV3jDsR14OXjGUIYXK9gbX5BRrpbGSqZQPcrtT\r\n1yOtSF0hhbygOe7yPuAqxbyPo9vQkfhZOZy/89DO9iwBO/4LrG1qrzDXyNkn\r\n6L1pxOwXGevOSN65ltPX9r7JOnKWFRk/8RY=\r\n=FnZ/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.28_1665645194725_0.8643956131310448"},"_hasShrinkwrap":false},"0.8.1-unstable.30":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.30","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"54625bc582f8c51b1823f097fadb6a4f6947e974","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.30","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-ODXPLioBEHrC5SJKBxHTrsAgqzIPEaJDpWnr/kPQY34m4pVCBBt+CPjKxxc8PCiS0K4d0iVRNRW1X+yn4lx5Dw==","shasum":"54a2514751127f71992347907448bff41db86fef","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.30.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEa86cCiB2xELqXvz1KBp2KmFxUD64EXKoSDt+iBhrVQAiEA6kz1uRnivws+v0YgPz6VhcnE+mJTZunFVUWJQ0xS33w="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR7uVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOThAAgVjes/l+KCVyEIxZYzNrG8c5NLy4vPPHP9Flkvbfyv+SyqYk\r\nqPafH+moTi0jvHZGBlb4+9BJ2vafAXs3hyxp5uXrdQ3KC8mjlWtVFpiTpKdz\r\n//2RhAkZFyt6r69vDkYnmtntfKHnqAfeAYIzVYtO+/EtZ8H7KXksrNlXelSC\r\nmUgOg3SGGQZ8FnGfApuBGvyKOR7weZnQEmph0MA+nGC4CcWJdV2NOU00KaOO\r\no2Y0z0tIppggc3oBeHbTygF72wwOlPojMbdHjaAXtzQrLRPU9snr2AZJVoYv\r\n+0mvNNzsmCfI9GWYqetOuklxX5aLO8OHq/CAi+ah9c4bv+UDCRz7D45IGA0T\r\nSzBgwbEO+zcQf09xWismff+uCkyCsaLaknaEoSR55z56j4ojAF2u6DmtLcuJ\r\nsA3mGs062mHghrUVUpRVKGL8ObzhRua8NtR0juBce2NO5/DSqXAfg/duDeZr\r\nJNXJpHrobXFG9azd9rjRGVedCSr81xEjmXGYtqojZZyXPPxImfTFWgntss/e\r\n5vKsLzre/eCCk/ceP48Uy0QgFWbWN4YV7/nzvEniPtQMuwAeqdJXxZthFZV/\r\nAvJScB6QlCqeJXP8J2o712oSGlihl0TMlbHQYB7S2BlrDQmvmHQV3A6nKCv2\r\ny3oElYhu2ylip5m+2Fm7Egn7gtl0pk2+vB4=\r\n=foQc\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.30_1665645461056_0.5023105659469842"},"_hasShrinkwrap":false},"0.8.1-next.31":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.31","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"fe90ad0ac1fc1f401075310cae842a1e2136a361","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.31","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-CGc/4RMmUNY2Ez3OPmWyG7OEoYncUXinCbDBKjwybOq7KlZF4ZqI33bDYBi+/1bDMdc1yAkHl2rD4UMbzYvgLA==","shasum":"c437be884b19a22301e559c5c5ad003137b4c5a9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.31.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEf5n7MF2IXfY5MUZ890SMVBrhJNl/lLjoMJoP9MtZ5PAiEAnFiT3UbDBzSPMAiuCZYC/FJTD8C3qPurJnsF4FuZZlo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR8OCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqElQ//VQXHtJwgB7osqeWohwLciTnzSuBtR+pazmxSkeGBJFQe0wnh\r\nul0D8MYRivRZODse0fZSjW0i+x6L1hzQaatOihqMpEOtu3O+kbrm3oJN7Avg\r\nA/oKRJce3HzgNQ2vmfDcjtXiQRd5G20BX9izxmwYz05Pm/WJg87vTCJIHfuo\r\nRG2v7B0+0CwaVv9G5I7JlMOkRGT6cfKZEFCC0SFRCNAQIbugj70FrafG5Lz3\r\nNS6idZkXZ0vziv5ckLVatdvmGXo1vIy+g+7cRQW/5y3aUWVnf2JjkwaqeiyY\r\nOq3nZdwzbh4oDJmjcWNRBUF0+vUNNORi4EEvcrZytFmJx18v+iEVrD4MFlVM\r\naHcCYHD34DC3AiHpWjVNcjqq8IHE4CWAwJDwKJxm6VOlcFLPWY1bACm48Qoc\r\ndLt6XlnuFc/HhcoJscI74MONG7zlAyb+TBjwG7vF/KvIOIxaRmyDLxaW2ujz\r\na4yjNecC2o88F/OG4eXMr1dAYRz8UJfp+b/CXv5aLx9VCUWQrj0Di8kweoCC\r\numvnUfN8pS6QVF46PyUiZHSB3SBuev+2jBbccGxNsSNFWw/94WBfyATAF5fI\r\n+4wHW5OpY/ZDnRrqGw8pmlWkGPpqgZEk7SE0aCqMSN1GcgIfhJKZZPYlrpzl\r\nFRE3KDOB6LrKNX6H7/N4gTRJmn4k8eCcAR4=\r\n=sO9g\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.31_1665647489835_0.4274321133643919"},"_hasShrinkwrap":false},"0.8.1-next.42":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.42","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5ee80bf59c72b012736e5a1f5bd1cf57e7264150","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.42","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-XWFXKZi9Z+nTDquH/0lvNEPBImu3AhITWsshxPXso8N6i0jNB2DWlv7yGgvJbV1GY5DmpeeQzze2JGw8vz69Xg==","shasum":"682d8c5a4f35a16eb34a99d158840e9d2eb12d75","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.42.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBySMUxILCdmR6oDbIpzenhsYnwBnz6+39/XqCpbDCoSAiEAvHq4/6yyRgi+bErZiIAPBBzaHrPVjQt3lNv0p4p61jU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTonrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrsRAAlvssIcH2l5Pb3YTQjpsS6HVtFqGt/pPmZZ8QVVV3tcOXkySB\r\nE1lTXe7U16SndleudKEjLD4lx+lwLC31zw3Fz2ZeOkH284a+BBnbrLI1hebH\r\n768PIb+185qpVC3eL2yrm2qr9gMpP6tWQUFSwYY0fBcS9gWqCe1Rqp82mvKE\r\nA/wLRc9byS5At1ceY+5Cxm95HPQZ27+1mn2riFlq8gtlASGsoNng06UTnF1z\r\nl8Oc7YgHvZ52Bl7fFpRPtHGzXerfQDvAaW9J4Brj/WwO/ux4HMagJhv/7LfE\r\nHVKEfgnc4UML6iAhizZHD9aDA2mg1/vpCau+A2plVD2hq0ddcUSqMKFHR3f+\r\niIhkr9mUagFQjI43/xALfu5SRwIE02WZYpfnt5MVb02n/RA5pOG0fVJBSWFN\r\nrjTaQoQnZooW0Sc1sPj3mHsoG3hGB98tKNRyKDaF2mg6OWjCD0ersp0SHkE/\r\njvlfkZaqJgKc1wxZHmwW74e1DDkIiAkyUxKkVQcJ206IfW15Jzf6QvEN78Gw\r\n/M29QX9kHu4C7/ljAGB01OwWRUPnLukKuh4G/KtW4ARpkaSdM85PlnhvJcpL\r\nEIMbdjHA1E08K/W5w3/X27+A0HmR3olqiYXyVCesQF9CcUtWT6CBDluk5vVi\r\n1yw1l78l9H0LDT7pmvnDN3p1oIn4a4iKEZc=\r\n=LmSv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.42_1666091499696_0.830442821615963"},"_hasShrinkwrap":false},"0.8.1-next.50":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.50","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9c2d649295ab8802118f6216b882de6f86ea06dd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.50","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-y9Q5U1Z126EaUkHNQ2B30yLJQ1IOOT53Ku7x+aIJ/58N1st1VsmDfZJ5K1ETapi41HsCvp29FoBt2o66+6vMIQ==","shasum":"cec80ce9afe1d031205041ac6b7725361a0cb929","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.50.tgz","fileCount":23,"unpackedSize":32175,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDW4ngO/H+gl71Ql/zzflvo5PA9oaQ08HyPfOrcxhoLbQIhAOI9UVc4gNf8lgqr9j57X9Pl1NMB7K6c2qm1C/cMGJT3"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjToo9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpGgg/8Diao4FH4BgQVzycsXNCRLR8pw/+C/6hyHRw8+tXOUJhfqhhv\r\n+4/lvSQn2mv33hEtOtHf9N6bnHucGt+beHX8+7GAZgW46twUJnbYH9Jx140v\r\nXShxMLcS9HNoMS0Ni5VhQf/+6EUVkZcjBIRaDF5q/likbX1UBOuhcC7csWRf\r\nnopjc/IPKCqYETr55oVF1BkGu+7LTOPgCozftWUzuwMvNGSWBhAlY3XdFYc9\r\nw3JRKcBB9HLeVxDyS2b71wSUcXNr+pJv6JY5ulbpbMj3FFkXIzL7Zest/l13\r\nXx2QiX+MF2V9xX3I3kQz0TY0XpFxWjRL2JlbdlJAdP0NDMwdwT6Hye1hDAF4\r\nfIHp+6MIzREjqva9d0KTHgL+3yY3ReHKqIfURdM4vqQmnYQYi8YBPIRS/Li+\r\n1MsVvhyJzPlYrnRtzQZxDG9ScY3bdYMjVuyTJT7pr/0Sj4+7YE972VCpK03G\r\nrYtpvJrsM1BKQQrE8nQ/9CCQW3LoUokvJ4DVWWIiUoS/2xtZJIComJjAkcdv\r\nzZK7FZLjJydqBVhpxcuDhTl0qyi2jMCtFmkoCe9HWNEsWNP96DbvXFVM7pLY\r\ndXBO9HYtyN1bkHltVxH/D6MzvvKNViJpQILYBWqeFKD0phfkfnBmyKbb/Dln\r\n+WvoybfPFs7snotZpb4fhBXtHPxOFF2JPgc=\r\n=DZey\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.50_1666091581282_0.7937008622809971"},"_hasShrinkwrap":false},"0.8.1-unstable.50":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.50","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9c2d649295ab8802118f6216b882de6f86ea06dd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.50","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-vQeortIwwH1HLFvWBpR7YFKJI4T0LZo08kFGUQCIcSzoZC4aKhblqKt9KPi69K2Bar6Eif+i9Q5D7avyng7Jcw==","shasum":"de6d588c0d5711267cfed402cb56b02d46702ddf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.50.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDj1by8rI12XryvXq5z5Rup06hpqgWl6H5YHF1LuuejaAiB37vXtm+D8Nxb3iOg2pb+fGykiGlxBq9rsPIbLwBY4oQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWILuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo+cQ/9F+nXANBeQGatqqpCtaFtVgqUTIastBItrBL4Qc7jUn1lL4z1\r\nGrepYRlB7pnO8bdrt4aos+QhlI/hVlEdoWaaihwEBh/Qcp0NOrAu/QoIjRta\r\n3yUIJDSQdLt0xCGus09OYDLgjWHgYid4Spdc/rhz9I5Pg/vrg0SyNeeDnmfk\r\nvJLN163Z4tpB4v8FToNIuQizv1B9iemb9pTou2zmWiYt3bEyN/bHiGObyOwq\r\nRpkBhyNN4VXr7izR4PYKwjx0sYkT25Tc3YaBp8kx4JEN83oVsmv6Kt1XX0Pe\r\nsXFwpWfGtJyAy/va1EuwFgcD30+HM3gsa3KDO30Xx3AiCsfCXOwFNbQWDBiE\r\nwqcariidhyEP1x1+IRFZ2FHTeK57Hx9NrpFklfjjGi6jhhazfRM99fMgQYX3\r\nPObI8olBE74ifW0QczhEwvNZ8j9veBJCodiQg8EKaVe54hscGyE4rmSCz+Ek\r\nNh8utnDdBU8/xNz9jZICj+Uo1dijnDrCkIQmGSFB43V9nPq3JEwsyGY00UKb\r\nQMBzy9bFmySsBBEu8xBP/34LS+cuiqPhrc8GejL/q2yUTnjr7uuzt/SshOoc\r\n/wyyqufNc+WxSAFwT1rW90HA34Um+p2DEt1DcDdql6Y0VH7LuZ2ACnGVQnWD\r\nnv0d1KY1JKD8mPQYWqIPtqBt0RvsiEy7G2I=\r\n=c4B4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.50_1666745070188_0.12326695173257973"},"_hasShrinkwrap":false},"0.8.1-unstable.53":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.53","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"3.1.2-next.84","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"3.1.2-next.84","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.7.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"25b005d39c3f06c1fe3db9def63cb6642e774f75","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.53","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-NIGPohV/1b+52sUGUDd3ycIyvk9oGw448BYLGT9Z1NC7u4dhE49AIWymeRl0T3pkw1XANNGEWiOMveNh0K2fiQ==","shasum":"c41bb72d9e0820fcf5227a6b47bbd6ec78fba74f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.53.tgz","fileCount":23,"unpackedSize":32179,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIByzFSs4Hscx9nFvgqlWpSYMX5X3v1uFAquaO8bX+vetAiBl29s1ULhrl+feOlBUTy+9BLVBeI38LyJegORfJ3bVUA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWb9eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrs0hAAn9yCCl/pGj35+64jkGEmfDrcwZQjUnucEaTh2D0Ec+gzO3bP\r\nLQn1iFGp5zUeSioDeEiK0LdlXGYwQtkpp2irRS/Po2s22uIHCj5szLZ5rC5r\r\n3iLTXSAEY6iUiApcOCnrjDn1b8xDT7IGwyaYTmTpHkgj3dRm8sUC8AMk9MwQ\r\n2y35kenOYqQQyJTFzkKA3f+hyPKUOOsGwmotbMEsls5OxvHyyygXiy707xZq\r\nuvEtVXdoqTgev28ncI9ldtEO3dD2xufpVCNT+TBTaxT91U4iVee/1OtV8FFO\r\n9y9CAIkUU1tq51jXcBs4zRvdu8qJFihPzoNud4AH2ckDM0wnxwTlbOw01/E9\r\niGclIXrzum015s3grpt53KlOs7E8vVXmf5cTtMtXS4W/BYhnePZ0FiYA1Cui\r\n5FvX6M1XfqjZhUY+Uy471wHGQWBGXx5nC/aLft3bVxFp9Z8aPEnhanboYP8s\r\ndvXmo9wz4w9RmpIZ4ddwFmGM3WnBsXmkO1lEl2B/8ni5tNcP3msXIti8uxwe\r\n3gbLZzDhMwuhQ9k3o3o/MUwSZvqGfHmYCeBsAKwOP1c8/9rcoZgv5bbGcaZM\r\nNam1mIFadc4vCMg4Uqdithpi2HnD9takP+E7VDylje4FQCLZ6gQh+eeMahZU\r\nvz5p/nPK5r6OcNpyK7Ljaslt9So9UuWEynY=\r\n=mpvX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.53_1666826078741_0.29659888820797864"},"_hasShrinkwrap":false},"0.8.1-unstable.54":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.54","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"652c6d88fc4778f6ae276d938d1d7866a9816271","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.54","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-c7ast22Md+wb0G/yocvsaePEf76LLtKnuIQsWsQWR/AW1aBlMnb75bIfvhWTt4AHHuuGePSvMx3dD0L2PdOahg==","shasum":"ea30339ff10a70a7f6cd8533b46fc8ce07569a43","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.54.tgz","fileCount":23,"unpackedSize":32234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDQvYjMo/YnXvp7tjIyjeSDtxe25QMudtCEvtG1ybsESAiEAvMwY1IkCLRiNvARSY1HvqeECnr2nd2pkW1hDhPSslnc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcBeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoASw/+OyOGot2PwmAkjpXVZGfJgnjwBlfGpHnGMHnU8HedqP2S6bD0\r\n5UijOxfSR6rFAAbntJanROYTSE0zf5wYtNXH6gksnhRkfWlaj9fVy1v9t5IL\r\nJYSjsq7LBCp0rFvLSwcg/PWXVPfEwy0p9G394bYWW6KQmDxAIxX9oWOQOsIh\r\nlUf9/sJmHvtbJJ8Dxm6JhTY72ZvoHBKxhVugZYy3eaYxPx+R1XrpBKnK1e8g\r\nO0KudoLhw/400LIYo1KUQjwPccrDbWvy7L1Y2NbDTAvj/a5Rd67MQnbdCu9C\r\nSH0Ly1ibm/Psa8W1CTp63kaTYbNgpV3Ydn8qxzsnhLrHqQL46UNf/vkFIn8/\r\nvttCOG1b/ostwjSPE7fVuDEnu8KeYdtOlsbcfJsL1kgy3Uwq6KI4RtR34mcj\r\n0wI9wNvjYc0Vlcz3HRlCAkDIzUFBtRUlukbdsc36xm4NRo2jx8G55tu/bFaH\r\nBDAvl9SLo+tZedmG3zBY+DEzBLRbQLefYA0L0MyvZ29DlXJdDFfZ11Ci/1q1\r\nTdX6vWxBlH+12MGKmMLXrbiQW4G5e+iyF73gTRilIFz0XWScH8DjGr17z9FH\r\nkaVLmHMshgqEeC/A4yfLDiZqLD9b+A+EPfGy/D9/lPfh+AZdU6aO9SX3OBci\r\nqwnC+Hin7gwCGlR5L4iIJF0nKs3nSLM2TAc=\r\n=mtuZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.54_1666826333855_0.6015192160936045"},"_hasShrinkwrap":false},"0.8.1-next.55":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.55","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"67d3bbcc2680bba9ff7fd474ebe4f234f6a1a4d6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.55","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-1exEHGZXM5CES00au5394g1tzaOH+bKtEkaWtC5oQyCV+d/e7p6kHxN39daMzh6XmPvXmabf7Kd3iX5VbrYAow==","shasum":"d5a19dbbec6f630bcc590e9fc2216302bc2074c6","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.55.tgz","fileCount":23,"unpackedSize":32230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAlL5JZYtu9D9h6/mbRyZu0v37JlFb2j0v4Ry+sgZv5qAiAKenVuIx7Sp+FybCKr0ihTskOEQMbrjeKQsrRmZKlMVg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWcNAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGFw//SNSRs6vQ3p9ktlCBCdsR3KkKu8yWBpQdNp2mJjXutnV2t27A\r\nJmSYOvpCnr90oMaEqe7VQgwwWbbbsz017qswbs9KU0FSw+F3+Vhe7c6Ju8Ic\r\nLbsOBJ4TyhJ5YBjkFcjrv34hM8f8bKW/rBUiKhgc0mtKrWGRIhHVOmmMbtie\r\nYwl533HiHSJ+qhZZO3uXy4FmVwV9AwypnTdjlFQOiIYDGql2e1npVusxkWZe\r\n+8af76FK82u+LzndvGi7sN7FOIngu/086xxyg8L8YlgTrx3HuNzeXmOn1PI2\r\n9lzSQdu1+oC1EuzbNfx5+Y+t7jG1ynOPRuO0d6TZIVLm2DM1qrLbBSoMuU2J\r\nJhU4Mm3+a6FjkH51Sn7ATEBECRYQzABocw6HZpbFfbxaWAdqXvCPczjROu9o\r\nCymVtiIqUcUohp1cZv49SdlWhKKZGuELRKGDqTtW94EiSayzGfiYXeCRVFR+\r\nR/4WhsULCM7TjMQJvNx2Mu1GXFaXZQzhikYOxtjF2WYOh2S2EKei9ZC869Y/\r\nJxiSotYSaplJXOzaB9LEQzzak8ajwQ62wtphqPHSgkW3cO70phSCCNMZdRau\r\n0b72iZZPY0Pc7DMtiIU+cqlueE77J8kK4nBSnDvDANbss3aLSDkZpbOsqo9e\r\nIb5jcSqMctkVNOGufDCM50CFiVWA9pwSVgA=\r\n=ccg6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.55_1666827072479_0.9999894147005344"},"_hasShrinkwrap":false},"0.8.1-unstable.55":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.55","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9a710eda8c2eeedeb58ab41fd64172b59317f29f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.55","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-AV4A9AZWDf0Pc12EPrUG0cpWlZq50tqj5sDl/2ULilBhPwTuLoPk65MPKEZnjDZnaFQ7ZVmXlYrsUqIDLTNSCQ==","shasum":"2a63df27b945324efe7b655d33d15adb9d59bde0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.55.tgz","fileCount":23,"unpackedSize":32234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIbknwdB0uWBcaNgoGbvgDoAsbyeovReDxp/u39GCOPAiBmaaMs1nPDXlnCJW9/5xLodbZaMACNkU0eVV70JxycOw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWurnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpujQ//UZdyIO6FihQMLi1DmTe0mJXxxuLimKj1tsHu0G2SOun3VCqT\r\ngLP3OR3vgNyM/cJmbPfrKHChNjoAhaUT8sdWGTcGtpxAJKHbRl/D1ILhu2JO\r\n3KvjdsN/7/aW325jOrCmAYL+qlTRvIrY+vfcF0Dlui7uvBgswznjxx5cmjw7\r\nJb3ZF1GCt5zZIkfUQ6Dfo5baPvRSZXHApA9sxqA5gSYWjnTobTj0HJw0d0pN\r\n+OXCWLGjrEe2D+8Iy+QFrJsu/3/9LZpXiQAWQZIduQTlKJT+aZR3L/aMG32e\r\nGdrrIhvm4gEMfwbN3G9FaUqQWbwSSJ0ogD/H//0MrGAO4nNXM36aDxQio5uC\r\njArSNLpbTx9e4cRmPRP1ppnIEXKNt985QzoAqOtmFuD0l0DVk3q1bcQlYPeY\r\nAv7So3ZFnTH3SkgcMYpSTf0eDjzdWFJgnwVMzeMcnOEjIHFHoyzw0PdRxHzX\r\nW1Ykn1JKgKYLKbEV6+ZKOdFMvv4TM27s/e0tqfuIS71Zib/cwKaZLQSI/UrC\r\nJj1Wp1jddQDGLPrXME5aF+B+dXc3gxgItu+Xn7OXvLCY8qMFWTt0N8rbm93T\r\nR0Tls+HGs9vFgbljei/6SkJbAiltE7pd3eahei0GKxytucAfd2IQvMpwxFoQ\r\nvQ6KhtQXHB2Liok+k/o3g0qDzHu0wlsjUHQ=\r\n=Ytkh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.55_1666902759191_0.8794711955268439"},"_hasShrinkwrap":false},"0.8.1-next.57":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.57","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"12b0e939c1ac9e6d5fd7a1509e24da4cf25d4cdd","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.57","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-4tLGxkoV4WYQQ99DE5cfAx7UvbM81Cbs4J0icj1gUHm1/hfZnAL1lnvRx33jGBVfe3oykirVfBBD2LJkxNr1ug==","shasum":"ae3bd9bc4f3d321b01afcb525c07710ab1b92e71","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.57.tgz","fileCount":23,"unpackedSize":32230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAKg34SzPilE++v2orxwbCxJhGN/cQSE4nTXaxcA/+b5AiEA2QGf7tWAnMOpfcp8xZimcJko6QrWt2kGx+Go2R5HftQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWuwVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqF7w//aU+eeyukE/wNlzlLNYd4iDKLD+6mL/BTFzYB5qDOfKN+2Lcv\r\nRLPk+2yFfdWi9AtDihzyJW39rxb30EHrs3X2CfRIVPyo/7PDneOSLXTx6QnU\r\nwpeEIXu8z9f0ml3F02KZsrvrkCsRUOW14jML5wQHWRo1c7ofAESPA0DJDEGv\r\noxuVzGXJ7HFDXWl7LmpFxFw282vJPH35fjHFEQP08TOLDJ7H1b8rQHCeEH/2\r\nfXV6Bwno8w+lWNimoHum5iPCjlpyAPAXFnwFXmywFzJs1FIZcIcBaJJVojx/\r\n+v+vL2faOgk+n1O48ANtrz3JBQ4rG2HqZCzcyRNT23nXGPMaAbqHVXaVApi2\r\nHI8GyAPXf7NJlWc5D+7hyIWHbEALeHuAD2phvOoCQ80HmM18emyoZrquRE/e\r\nVTc1E/7Wx2RipMBVENkRDL3wTmJv6iR7CYwVNb0k3hvOkK6yjLtutu8ezsQU\r\nGnAs/LbP3iQDlVO4UUaZgrNObLdwu3ycFtUyoYzT1kuIcDDMJchx30RnZ7ZX\r\n7rxcIqob/IUo8lU6rryBhhmmWR4A7TNNlkAwlOirewEDw8Sj65gW8swNMCt/\r\nNACrntP8hlvZfvdU1BGWewZhdYAnIMKCLJBlsRTx4guRasL7tUNmWtDQ7kzF\r\n7QrulmSoOLN491h0ettz8MlBBZygUsxYdes=\r\n=Da5R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.57_1666903061333_0.7478885222656524"},"_hasShrinkwrap":false},"0.8.1-unstable.61":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.61","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5254adfc5ab0d368bca2a55bafa4498ee270dbd8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.61","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-Hi5gOad2R46eZa8KZxopP5tl6ieRr/wcwgSfbq3lgg1Ac6wvpTm0QCI62igWwfHMaIq1kxn6HRcky8V5ScSBig==","shasum":"a6db0091085417f06337fa30b1c1aa2aa2206779","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.61.tgz","fileCount":23,"unpackedSize":32234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5uLpmFddtonu9EAe5jzu4jD1hqP0nSJKD9/+W9Oc1RAiEAjyWX84+I9BzcU8+jx2vHD3uc4SfJ1Wbipsi6FS5VQak="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWu19ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSPA//WAVPSPdsPxSlL18IeHT55+8E/ylPdU/8QAXPQzdJToNAkDcb\r\nbuIr51ZJbtVoASKzmjMUALfMX9CIeR5qAcG0aDkvuW7/f+CaqWrQJUAqc++S\r\nvaHoI+Lgibw1fY2XBCBuRu1ui7302Ly+BktfBPnbvMZ4zYyExsi41aKukUxZ\r\nKNF4N//pKZiW/k5yclnZbjSZMC5LrMVvyN65OPzCvCfgM7zklGhiDBDkF6ii\r\ni2CXn8D95dkKPbHYH0no5EbsX7QdI4ZexNnJdJWhysP5Q2s1BHwb/Vonaev5\r\nlBupJ4mxRdzcF+TkJvOa8Hj/t6hl6mF4XBaI+FC/79ZQCTMCquf7cIPEFKiO\r\ny8UY4hPwPIF6h2MShnXCMaqhkfJewQBfgkAhvbo+MwALYNSmk4Cx06OoymTc\r\nRgaeL2orG9y2StQrU5ViYs5laQcgMdxxaetY6dkiNyrFCtkO5S9abhHb7PSK\r\nc20Pf6+OsqO3RPU85eE7msiKz3y2+sDN5kIrNFrtE85cYoWt9xHJbsYVjITf\r\n7IZrmZvHWR8aF2grN1x7b7oIHJUWMbuIVefGiQUx0LKqOv+FxsxCxAFI025d\r\nIOXHie3js/DlWF9odXrb7CKrCkKW0QAojS14imcC1GyUOxO8mRFbXSMFlJQJ\r\ncIp4iO5x0ce7ECMKEVliYUIR1iy0/hWiu5g=\r\n=mh2G\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.61_1666903421258_0.20983203494960345"},"_hasShrinkwrap":false},"0.8.1-unstable.63":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.63","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"469843faa86f08a88f7fd253381c904fd1aae282","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.63","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-tYX8Cr9uA1nyI8vPWRg6G7VTEV6O4yKOZpKImcF9GgUFZRSyvW82rYo1o4rON2S3OjLjE2SRXZfQDLt3drI4eQ==","shasum":"c45cd70bdb7ace4b50a421cb875481ee485e28c5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.63.tgz","fileCount":23,"unpackedSize":32234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZW30mhMEvfEXW6OQkEE2k3STD4G9333EjjTvF9QnKJgIhAM7eLk5NTup4KodzB89d7LvVNpxQymULVH8S8oMhGzl6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjWxwtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphxQ//eycdwtAr4XtNO9d/y7t83emQE3Fv4tfPMTkETtmIKXAwl3ck\r\nUlTP7e2sU6EO8Tim/xkc1ITl2xDjutq8hR/kaN+dAYV560pGQEtqlaLvaCb9\r\nZxmwCye/4TLhMAph8E6Vd1YtSFCEG+HhSWlOUvs6BaXlJrajZ5YtdEyREAwO\r\nxe88u90qAI+5VS2Sgfw61PyLN4kvRE+Rh/OC6Czsz03iLdmqjupstMat2WNJ\r\nuNg3ZHc4UT2+6V+gOhtB+YWk5mVxtL/UIohyk2mXi5gGn9nWFF/6Amuj/nuF\r\nTZAXZAq5Of4+N2uOu/J74mJkH2TEbvTzhv5PO4Hwn5KLKI2qo4/vhBOALA9D\r\n75kBlytEBU2rkgOIDMDp++BcqPpq+qLtjJfaHnE44UfJ7Y4HoXW3krZqUbgM\r\nIg4RhxVIogk8BN2c6GgfpSclFDjN2evQP5/wXwqVPLb/j03Ad5vqHnPJpfjS\r\n6YRXdjVytOLKXnvXMMdZC9GETo0c1QtuvpMK2F9yEstwLrh4g7DnNJM8sQQ5\r\nR+PaCCnNWAuo9HHwvqeqQhGxVlp2hkEq1Kcrjhi9EsENE1wnxdnXV55eQbsS\r\nzrhOxjPDxJJPzaZf9dPdgTETAdN0cCxIsgk9WKLRXajdx9fFCDb+1+4OeUmd\r\nZ4SThF/rHrUtOVV944jqfdKoqi8dlajknh8=\r\n=aNzZ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.63_1666915372980_0.4740184900568236"},"_hasShrinkwrap":false},"0.8.1-unstable.65":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.65","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d66c11ea4977275629555d84be0f1e8dd23cfa35","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.65","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-pMAygitFpDYlAeu7Tj7G/E7WJgQtAgw8Ty1gcgvkTUnIsLzRqnIGk7bj5Jrj+BnWgUgKrU95Hqi0iKNL+j2aAA==","shasum":"e5b31e76ad8db1f2c6565e94e8b3268a2b02247e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.65.tgz","fileCount":23,"unpackedSize":32234,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICT031n+2+6IpXnjy63OCyPK1r3GsfvCnKqinyfo82ynAiEAnG06IVDcHCCvqYYRPWNR3iUn/cgCsGcT6lEOtNpowRM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW5e1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoM4w/+PS7pCOZK4yO2bmhX/MM9OuSw5dQfCEgYB0I8Cqm3lCMQM6ld\r\n4bfm6NMfJ/UbyPW0+gpNK6Mlxzpzh4EjbnJiZHd6zmiHh6y3Jm5NGSc4+Abf\r\ncjjYbzsdTzv72uYP9iNJiUomYddy8JhRo/Nmo1C6eAvOdDNGznru35aG2bOQ\r\nfx2/CsuRCD4Ps7tJxV04a7PKsMdiQ0NkXqpmt7q6HSbvH/Mpj1L5PdBh9Osj\r\nwLBobGMj5GldZwPGjQcnm1fD2F6IPjXXEPVDRDNqVUzO0SbYGvWMPjWpKXAM\r\ngeedtiGGrf5nKrIfLglU+uO7FGMoxsPB+NGDNhhVP6QFWaHLdnF7jqEl0mus\r\nx18nCJLQw3EMlRARol3PnN7pkUiEh1R2r+/+Vd2y548RCESvhiGysJkwLWKB\r\nGgEnatlh0PYYSDl0o5e7SU8hOj4msPaqz3sE7g+6+6ayv8lZ287de6m0f4o4\r\n49CPMDRs0nkMbogzJuVnq2fvnQvsF8WaaouovJXu1vnbdkx1wblbbp5wUZ5r\r\nJWk9UioC2SgzWkALG/aqGbk4qWEVTCb1kLpIupUa0So8LuEXJjRcYPseuKKq\r\nedj3DE4RqlTpF5TZP1yxOWpsbc//4cx6JI+oQai0tk09cOST50s/XCFZOJw9\r\narFF2Q1PQs7UpJSzTcyfdVqu+C6hzXBqKGk=\r\n=cMd+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.65_1666946997283_0.8053155088819282"},"_hasShrinkwrap":false},"0.8.1-next.66":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.66","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.0.2-next.19","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.0.2-next.19","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9a65e8f0cbedd244a79460add8b3e7c6bb45ea66","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.66","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-nNMVzBOfLgQYa0mheMB44zYVjwjvz/Cg0xBSxXA6mci1vG9DTWJV1Y4bRXOMPheMlplmDGwUM4I5MkhO6r53KQ==","shasum":"1173774300ce04bc05ae78a388467a5736ed227d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.66.tgz","fileCount":23,"unpackedSize":32230,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNrpuqa59xBdqNRH0q98OC5a1e2F/9rHGaMF+XJt+sPwIgedGH3V3A96bd38DEYxnwE+naXDZ/BMwEtV7+LTrsRFY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjW7ulACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqwGA/+LtMnHPaTzueabtrdoezCF8eNyz36M4eeoSnD4pRUSRHmoYzM\r\nLFrdWZPPK1IF8Cyv2K8hbEtIVsasd1vg0vSqEbCzAFtNOw5xg2CNpPQWgGwy\r\nlXZ5Zd8N21PiOJ0D6HbW8Ml25KmWTmxgNlakZs1e2y/osz7IlnThLVqrFWbz\r\nWyXPdoMFrwuQmYDDk2t+lNHoI31gTduArYm28E2SBp2ijsiCCWQ/WZQ7TdbZ\r\nV3yqurT83Wp7yRekdZiAQujZXgRhD7UmzUhd1aq4qe4rBqSKEo20hxKiLdNU\r\nrvC5ONh6oGAHYiWI0C2MHq9UTGTlIgx3zQGD+/pW2KUSLojWW3HgCiy65AS9\r\nIeluZti2eYpkqyzMJHzys23VuPl3M3wbWarVBsLhLbb5kk2iZwXoEgXqG57j\r\niSxX47nXWLp4ebw6S1DJWqKjUhkb5z/rtW44xnrim9yWgCWVUVmDizvE08Kp\r\n3zzru224UOKckWcOFo1nYH1zU6uoEfg9BXD3kpjNfXX/agyw2nefxQgmj1yH\r\nmWQu8F3Dr3vG1CJ8+PbxB1K+o9sotySwYYv1jFHtyhemV7Psai6X/Un/BfvW\r\ntzTmhbYDDzodwW4nDihAahQpYMS+6rJqfJsIp86/nmSNTah06QelMekBNWEx\r\nYyb0K1toB8w9CnYnIvLiaRxAOrJcc+rZDeQ=\r\n=AYNY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.66_1666956197427_0.7964776823834945"},"_hasShrinkwrap":false},"0.8.1-unstable.73":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.73","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.1.1","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.1.1","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0cd067d71cca9832da452ed00e03bde91159c691","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.73","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-KZQ7LXubLQS3KD3PVGIrW+fOXsy8ejiUfn9KfEEAlbnk4v32cgXaOJBdJ8dxa7jT1jN2uXjeCdCJZuDR8+yviA==","shasum":"6788997b26ad3df8c1e820ae598b9666a892174f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.73.tgz","fileCount":23,"unpackedSize":32218,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFBTV4ga2zw0ICvvsLjjsWfyJvYyXRmet73a7JrwNUafAiEA1S+zMcoB/I2XRJL9EuJ6d2KDYdI+houzsnmnlO4K7Qc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZEXYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpwtg/+Ma+QNto35J9rk7ElnuK69pfQSQWLrqeg8g/huL+72wWh5kXp\r\noAV7lRKVqWyB3JNH0ySsZVVV039gY6tMwsU+3iqCn6Hev3ViOUDnfIc77Lk4\r\n0Qe1sJ3HUyCmXu92bbwgK+Fz1PUHz1x6Zf4aLJGcv4xbOuK6DgPd8B+Snt8u\r\ni2H4w1WD5UbIoafetDgLmuVjRqHIiZEsoOdYSkC1beqvkfmVJDMo4UPpbt3c\r\niWfzYQicbT/rS/K/dEkM3TcZPgC0tAc6rKRe1gygxv0UBqePYX6zP9A7NRKx\r\nArnoAvL03jcQta8XnaUttTh+2ffBfVGdEqBAlPbW7DbWY7y9e8MOI66FmgEL\r\n6ubPBdNQD5eQhtp/S2RYWSNHYPj9g0w81HJXTKDPvPh+6k5LJVMSfo4q14yr\r\ngB15/09mlAXAy8umuO4vaGR/iFCZgDgukVpTYZ65DO7+PMwC3emjLuEezey2\r\nvY8CYcsaj81O0Y5UKeAgRFrBIbu44yfu7NdTimBGQKV7Vitjv+gQPP0AK4tW\r\nAue7WSozP3AsAIc+0smEMV6InKGNw//Ukwayigtrx1MxNbboAe/lJTIfiu6J\r\nMj9ZevMn5ciUyiL6JTXGoXeflMa/J3lFmKzLyLfed+Z09T8Ce0NnBZCrdUHQ\r\nvvUNwzFh+/9vlJP3OzbTykqvB+lcBgF0Exc=\r\n=/M3N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.73_1667515864090_0.8636405533431901"},"_hasShrinkwrap":false},"0.8.1-unstable.74":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.74","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.1.1","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.1.1","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"12dae72860fd0dc00e96a8121b136c2195843388","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.74","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-0SUN0aGOPRz0nZe0G2iPw5ideOepQh1WPxGy7XAXsBrETOBdg68I7IBga+GRCI4dkQK3AZST9My33E/oIvzhHg==","shasum":"c3fb930fdb0aef0f66eda0206bf8580b17c8a342","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.74.tgz","fileCount":23,"unpackedSize":32218,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGrpHgeQqUoBOk66i37037pq1p5xviSdB902ydEstRywAiEAj9xnFqAHkDT7zwq1nlhL91jLCqeaGvfbxlIKC/YPK30="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjZFupACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoywhAAkOLJD0fGMaY5kJqCit++hyz6mgGORsXnaLhD2iQVw4LuE2GK\r\n4MZPMzgiQojQu3cluwAj9u+WAUPZJ0ZfwmguQ/RRdEc/D97GYxgIUQL0jxhD\r\nTeDoLcH0OBz9QiorvdKwWw4LTrmWhqm5RlOZp5wDR6uBRKxTS92fIlkmUiVC\r\n47tOrzv7sHCchhGf5wRwpx1DJ4fPpYne6JoL3wcQ4vHuBrEsrDCocgSrv+Rm\r\nRWTMiZqHSDSQrQVgN0LpFyxJg3wxkLON8y9Dj87PSGgbhm5Lpq4ZpdA+dy4p\r\npz6gsOxPjh52axvEUJ+wcKAVOtiFOS1K87xSUamRSt25UupMVd6WwCk9bltC\r\natm2UuKrC/aSQtCuRM+kVoXu/FqQuYukMbh9pszlTSviF2QYDqyHpviFsK7a\r\nfkVACTo5O8WNOQixhcLUfUuMoiud1Z1T6dtdqKpPw2GcXuIBJpJwEwE9Qb3b\r\nWHZxOjyP32m6cTGpE8QhEYNL8YFqLcBHHaIpA235ulc8JHBEmCKWFs/2QZlo\r\n0gdZTjVH3p8a6gYNCxZ5qMjkSWC8XKfKk1HC+v3tCA0Eunnef/HEpxznFvDV\r\nQeEA7ORZmsi2lLpIqVvElfUNTG/RAGrqqGwiPaOUtRc+T8e11Dl8S2ghDyeP\r\ngnpMHbTMmWoj0asjmLfnwyIJa86R8QqmnlM=\r\n=DEvY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.74_1667521448964_0.2932764428476011"},"_hasShrinkwrap":false},"0.8.1-next.77":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.77","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.1.1","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.1.1","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"473b111b98030a1f795ff1e521ce17caf202b4b8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.77","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-aWRvh1J6+2DsSmW74jNNj4nUiDELdW4v0ng5q4njvsgbtwr0pNJISdUZq4kxAEwpSknglI8L1xl4G4lrFMjPww==","shasum":"fd6caf7f5ff143c8a9fcbeea38d4ba18770ba1cd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.77.tgz","fileCount":23,"unpackedSize":32214,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGHoZuTdCCmjd3sFVu5FMKM19Gu5jJZlpGroanfeA3PLAiAyx1XczhaD9B2c6V1eDN4dtaSPvyhwbjmXYRmQhKLbRw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjanPPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrB5A//TAeUrbi8atgUz0GUO0I8dsM/lf8ZB/U2hBp9X5OqymCxRnOO\r\n0pBYbcwgr6Ggx0s79p8l7DdbTGI/L4FuPsPAp92iT/b+qHqqrR99rfKN7LV+\r\nllz0AnICnvgPUQzHyxFEFAsshmzjeMFGqO2ggVYNM9XiR0Hg73Ob7LTNGURV\r\nnImJMfVIrMhzKIf6f7qdZtW4AS2z7TEnvNUR2l1g+DzCU7EYQfJ3G5WYPVP0\r\npU0KGCr5P69dC3AoMyXuhgGblcEIQQiNbVWmFGbKXUfquaVED+addyNoxkSM\r\nG5CDJHiAe1SdbsiZ3XUhPGuZF1vks6ODW/1ISl6/dkzaqKzaYyeikwDUCHmr\r\nn3m+E62X3/M5QSPoJr3XMQV/+trUSeQ+lRVfB4TvfTuhAktRmoJd2cI2Aop6\r\nDR51lNwzObuQnmLVyV7Mu/h4NzcU21aSBc71XPYdch/ryyAk8SnHD2JpTytw\r\nnc/m8is0MDROMcGcCcPgcbtITdSnNLT3/ACe43wwCAK3HlgpEKGdnO6CdXjK\r\nW0G+2AQh7U4IINu/287oOqBo8WzGDRofBCMlUY+HsGeUW8EbhJo75JpscmYG\r\nAi2rpjLG43g726sFcOGltyJzTxlAz/T2DV/UqY6eWfKdkgknDiDIIBGAX2Ix\r\nVXmGx2G9pN6X8Jb4U8WKGibqMhqhfrgamzI=\r\n=/vjF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.77_1667920847724_0.1320038518027109"},"_hasShrinkwrap":false},"0.8.1-next.84":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.84","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.1.1","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.1.1","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d94e147dcc96a10c1107c8f66a991dad9c5cfac5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.84","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-8GfWu2FbxUnhiBtSJYnU637JbIvXM0QX2FCrocv58YRGp339r4lIY2TgcUuhJ2uHbAL6KtoDbnM54j/5ZB1ElA==","shasum":"4ae05389eb2de09f8c2473d7cdec16bf92546bed","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.84.tgz","fileCount":23,"unpackedSize":32214,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLKWyFyXu698P8UyLKlj3fDFcLiWVYdbzc4ZZXX0ZGOgIgKZhftPwGalApU0KK5A58Umg556ByjHrRTr98jb1JaNc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjanXtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDHhAAiL227FiwXZqx9L5HRvSIjQdde0H8aNOZiTWhKS6nJT1yFEh9\r\ndOkcnT1NFSTP+heBNTBPfdmcfxJ+MHY+pt2TmkVcpyTl64kHqeDc+7iHpabT\r\nwgdTd/lgBOmU49Hhht9TOs9/1+w2g4gbtgiAxWp3KamLFurSi3FQKoBCr65o\r\nF5pOkLlSMaKrwtL2KWwPp+wpTWz+tkMgJ5z3DWY0yFQM2i2c4h912tADRSjN\r\njzqcTh9lSFdpfm/8eWXWTFRFdL/p3ifZ3BJAzjbRJBwzSOACYU7lcy/kIzA+\r\ntEtvL9gJONsBO7Y4UYE7L2Jp5tD/GJFt1tm2dYGBv/0GF/YinLFdbiWoF/vJ\r\nNK/qob53butM7THQl30k7ZgTfOLBHkXiHbWb1OS/Te3FWPrhyeOGG8ZCVU/S\r\nD1jbX4CF0zBINh5TT6uFVcL2D3XdrJ1eKuVS2IisAq1Q6Ip5875GIrr6/wH/\r\nyYOm0oSS9vE0x4RTHKQtBk/jxJbx9O95ElE5eU2gP9PJcyfzyDtXYSHikwlS\r\nc7suT/UmAq7QPPqwivG/FCzJgBehPSTv4ClvJRwYxJr8l+Log4Acr7Ibuj+X\r\n6soBrZd6745baz786iUeVIAbnUBgSKirtu5lVy2+xvJiKATVq28FjzbbkqwH\r\n/S5EK4Xfzl/y3voNlCLvrWxtREiYmA8rauo=\r\n=VI/J\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.84_1667921388869_0.4807689168900393"},"_hasShrinkwrap":false},"0.8.1-unstable.85":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.85","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.1.1","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.1.1","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9c5ceddd61087efa8def8f748ae1a9450bbeae46","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.85","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-9oI9SJEtLUt7HhIr/kSKgF3AtfXXBgfJUd1aMMz5wjE4QlggAxTSYW1fHt0l3VW9CCYoHp5EGBB+1e8Gp2OsfA==","shasum":"bc14cec307e22eda0c078db1d27f0bfab3f61851","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.85.tgz","fileCount":23,"unpackedSize":32218,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8W6GCy76UVJ5AtsuO0FO3WCVhVi4BDRdDMDAGNNy/SAIgXaNBwN9NcNvFG9T7VnBj16y4RFNiwCTxXKPTuXhp2qo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjckUYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtQw/+PQvicpV5jclMblKB7iyM7bS5stvasVAo5dzR5V8YMhtgr7i9\r\nqpRAx4ek2EqzXSJKFeKHp7iYcNQVAe3xwfyB4layW7SR5TNYyw9v+eLqbWS5\r\nI8nuXV3Y2c5waT9Z31nR4/GsokEUZ8MD3DGICaZS8YIPE/GH8g1iczs8bk/c\r\nMoffVzeD9jMEJLIbh0KFmDjuFJ1DSIs2Gkap63/KPZPdbHXUfanDj7Msc+vB\r\n0Q0MmgekCtVj6Iari/aeWCOoC1opPMWV4zX1Lz0jURGL71k23dfB+LxwsXtf\r\nT+97cF2P+Bc8pOC3Gd+92WddqssclONTblpUxuVlt5Oual120MX0J0VVIeTT\r\n6eKh3S+oElXyp8K1Zx8w6rPZlGXxFsqWUOsN9g7ePIZfcsteDSnh3DbRV55D\r\nFf5S3f2uomv+K0WrkhySBIyFuUJiDkA0JlfeuoDGl6MfmU20UqNB88oFeD9G\r\nsv4rvhqnMnPhJxL4lonHRTE2kJ3BKUXetMFIr8BByNIEHfbv2ja7/KwsjlEf\r\n0f4RUyFyqW817tjEyql6HJQI/aZIMVVEnoX0ms/eF6mheJAtDCyF3LGaT6Eh\r\nzsRuvuEv2JoMXrJPb6zE3xdQ8DbN9J2hbeePdnVVMxmTwugPXS/+Bm9uBV1u\r\nndvTZt5BkTtoPQB0CXAt9T6hbno4HX0yav4=\r\n=fJcf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.85_1668433176018_0.11010631469399179"},"_hasShrinkwrap":false},"0.8.1-unstable.86":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.86","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.1.1","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.7"},"devDependencies":{"@types/enzyme":"^3.10.12","@types/enzyme-adapter-react-16":"^1.0.6","@types/jest":"^28.1.4","@types/react":"^18.0.14","@types/uuid":"^8.3.4","@veramo/cli":"4.1.1","enzyme":"^3.11.0","enzyme-adapter-react-16":"^1.15.6","jest":"^28.1.2","ts-jest":"^28.0.5","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"55d3de7ef96fee215cc1eb1c497ffa3b125c218a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.86","_nodeVersion":"14.20.1","_npmVersion":"lerna/4.0.0/node@v14.20.1+x64 (linux)","dist":{"integrity":"sha512-ckKXmqyGAz3HpZMnTIied3TeFwN+3Ra5UdSUGboqvJcpavRtEiVGzqjdEWyz7q6x02MJrTFxOzc/GlmRCV6zAg==","shasum":"891c52a98118b8b0cece0de901c2c9f7aae69635","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.86.tgz","fileCount":23,"unpackedSize":32218,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEgxAcyObUIi61853v6gaAwv1zbGx4SmmubaD66jVxRBAiEAlxNTJn9wM0W/FyS9O8F6vSjF19OH3vYQyOLT2Be0yY0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjckhkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmonexAAlBdBmeHrJemS7QxeFEEzdJFoZDPOf9pn44ARIaptlXvZ/kG7\r\nkgpUY93FNmiq6/44CmUmALpKRHey3G1467KxYfzP549LkC4C2irM2JEwyu89\r\nP40m5reoDzystvCllGxe5KyqJnFONYuK+rcjqzranMh8zMsr0/xNsgN9n2qY\r\nRxYwSiFrLC+tymxRWfGlpXTy9YLFirGDndAcM0B+dfUYzWyYnUfU7x06eafA\r\nJLomtZ09wFVvcwVee/NrpN0TCiZicEAc51ed3D7YDsyRk7NPnC3BuRD5vNHP\r\nCj/PQqxF+eNEMQZKZoh3C2R1vo26vEOYFCmcA+hHxXy+jGs+5VYfvfwP13GF\r\nVfWno4GVlyhmYfLc+/dP9UkY8h0WGYdoRjEiG/v/J2AaVt6H0h+I7T2XJXlw\r\n/Fgxt9PDEuGDb61dyPZT3kJ9aLT2n4P6nac9OGpGCPmxKnt9FeyBTW14iTKv\r\n7BAE1whqh51grI0H2JSnHXd8A/lZ6Oh/epN2DYOcTQFd9/Te7+s7HRPMpETq\r\nWSaj/ZkMN1WWyJs3PRSzVVEWmPzd7/W1Owyq6d7WpVZXkVq6jRbV2vjNBtnf\r\nderFoL3cl1wIzFkjN70YSMl6R6H+nsoK0Hh0CvdEwJ+MfGpJpNsvkvhKeWEN\r\n8xkI94eOIhdMb1T9Bwz8paQe6g56UIQghyU=\r\n=9UHR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.86_1668434019990_0.7872934842955945"},"_hasShrinkwrap":false},"0.8.1-next.114":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.114","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"62debd972f51a3f1ad90e922115eed4c2f56cefb","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.114","_nodeVersion":"16.17.1","_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-baque+HAx+UiP6IEoViwqw6zBK+oZF5ijCh1whTagQSiSpvNJTijARslzYpQC5ezJ8El0wROD+G8RSF2s0lBhw==","shasum":"289bdf2b47ccd099c1c2cc63b7bb5f2d8a9d46fa","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.114.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEAWv0b5H6dSO+J/bM9wspryqo87ANJzD2AvR0sBwvduAiEAzveLZ/SV8LqdkLV2zqb6a6D2W0B42qbgMo3z7UDpLu4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnSLpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/lg/+O+HL71A/4PlyNvE6jMVlVm3jE+kMM4jcWw/KUeUSg2O5yUTW\r\nKe1XlpcMBnGv8Mdx+dq27/UsemalnxpZng8Hppi4UKUFbYgsMcICnG0A58Ku\r\n3g71fTxG4d3Cx0KyQ6CI+4pDyfEhTNc2zAnrqZOQ0Hu8QnJm7VkvCckakn9F\r\nMqcezYkDYgJcqEBJanvnPsyG7eCljoxbY9b3lJrM2xz8EFpIGsmRc5DivGQ7\r\nLRky1sXnHO02NUdYNQNpDYIGaM/X08QXVisuWK65HQYwl8bnCQKl0n6RoX7V\r\nuL8jnuzOV71mYiWBzw1tlmJNZd/u7GLC1XRkZiE1GKbHmi7ydiWhXIPjbinG\r\nT8E8BcK/+d1HI5VBrkZP5zuuBtbqM6CSKrs4n7BkjsJKak/dS5MjSld0WgpM\r\nQnZVAYUSFxthBXQO45cJ/RsMwMGBCi3jGSyEyvBn66LMdqBLOAR9ymmDtoMm\r\ncIIS/tDHbDZMqQWeS0q31kk/zDJtl4VMquPuUpJYk4FYUyTOxVdPvQD5PsfB\r\n1nNZmCAbOh3H9qLyiVagjMdWNl4shgWMOXzhO1CZhez4PMKbVdWDoTqS7fYE\r\nTv4hC61MpNY+dMiFKsgJpuko7oKcOqXleb4nGVpLRmr9JFFIw9AaGtvJfhBj\r\ncgsBnBXsLS81tARmlTg4BhsE73Q1CegC1d0=\r\n=rYDz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.114_1671242473534_0.2794704467371001"},"_hasShrinkwrap":false},"0.8.1-next.117":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.117","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"fc10bcc41f4802957e122567ce5aa025ced56d3f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.117","_nodeVersion":"16.17.1","_npmVersion":"lerna/4.0.0/node@v16.17.1+x64 (linux)","dist":{"integrity":"sha512-a3ph0COT4J0CHkWelS823EQ+g4TIiAYPmTOX7NNZotvHzY3XRKeF1JQ5AYhthauB5e1dthRWfCBZ5F11C61Jcw==","shasum":"05bad044451852ccd62879c9dbe4fc6d88413d8c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.117.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpGpuzdQWzeB2VJDn7zJOs0crTAE85Rjt9Cqb+QUO1IAIhAKkw39QgOTi8k/eneYMVu82nCZjvtjXFkEGS045nVjvU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjnScYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqDuA//W4e8qZCD6A183F8cJnBphQcnQbG7pkvX/gwmCYUgEGLLauNj\r\nIl3YLdt1PsCqLBU2pIePoh8wIYqDm53ZRNDW38WJjE2aGL+W31ERecGPo0OG\r\nO/ePe23rJCdGsddgFCJoyW6f/00j3u0XQCXxlqg6AxeRFwR7bqjwE2A7R07O\r\nNC851tX46Voo6OWTiLDYoDbdZr/CX4myAicRq+YuKGQ1VSqZD7ziLjTMCTm7\r\nceOR8X9zsXsOjPpOrr5mJ/fAKMOu6j1pZn9IwFPuIaUmkbQV22fLqn9fGLF5\r\nNNyOsq2D2JS/SeY/np1hJJ4ZIkt9bbboxMG64tu52D9pyhd0H1o2+oAOLPVt\r\nECoC96NpadexXzvQR+T6V6Ljqi2jJLcUpoCvLfdBGx2Cz82mifO5gJGdbKc9\r\npJ24cJt0tiFousL/Froi7hLT3Ij++o+BUS4A80F9ZS7VZR2e/u+T6cqBizfG\r\nmWMEPDy+ZXhhKP5UcbU7sJ80MqZEIUVAguEaaajfurx0etjB0/pOvEtSu4Xv\r\nlYQUI2YOv4qqM9dc86RrrM2qy2cckw3OCwbMupJAUi6lvu644HgbkZJazWO/\r\nA/GC349YrzBuuOZ7vNpg5UYClqo9KEflhrj4xzwhpGg6SB5Tb/3fUPqM/B4H\r\nSp/u1Fg+WfY+WHUSfB7Vpi7Spa7XIPlSPYI=\r\n=SfYX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.117_1671243544673_0.41306587491331204"},"_hasShrinkwrap":false},"0.8.1-next.119":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.119","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"4fd058a3a06f2c56598e72749b87b6690fe1101e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.119","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-0tyY+nwG3FKgUBAa8XJj7hx8WlU9L4NrPDKlLnrPFd9wmwCYjnn/CWlbGR2+fzxKc2akFjs9JKhyNEjRwJfOLQ==","shasum":"17fb7a78e5d500763fb141c83341747eaf06d2fb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.119.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBFERjDQx/TsKQSt+IYoUZNpJY88+z475rzZXsUrrSdwIgUEYeTxUtTlZAwEaKRKphIjHkWW1IBANJZYFtya79/Kk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjq4ZVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/5hAAjaOkYsgNGu2xlDOrt6b3IW3UWv4Dv6a9jnWiRve/XZJkRmHu\r\n7mFK/X6TV4RgWiKpLPP6NE6gLFSxgYxTn5Rto0oF3OQxJ4AWafp/kzfzN2Q8\r\nkveN3ZjWWCsyDlvAQELWxelLpyabfQ4I/zbQWndNXQOSzn37ADQD6wWek91l\r\nKqvAAg7SqZWjwhKqXj9OQMf4i9tNRbI6E60e0ssSj/xKhv6pi+8Bwhj0+olS\r\n2xstI5ebkbrsL8jXWzC1Wh7x5v4spBRG8Rp+jaMA429AXMoip1oBezMWcPXh\r\nCm3ZuFkarw2nqQYtoYz5Ax1/VPdmr/zsl2y+OU8yrG8X+abe/yAsxUSrbdDe\r\nVUBxDadzLW5WVlkq1sDNYmwtPQWJCCFOiZlPXHuqSFtMYg2NulEoLPl4S9N+\r\nYuyA8poEzg7cZpa7OaEqQStvJ0ERBv0dQOWpQLSUZsky9GhLjebh7dObytJg\r\nRgRQ+Rze4G5NA3Q6nyQPdJZXtHOk/uULrWbtavvKAyHZZV33gxVuLh+8QU3B\r\nyNSq4rQ0Or7PT+dWYATC1wvSAOgQkGqagSIHWYTHjbpB2VlOI24oYKoW8YZ7\r\nn5C6+lR4Ph2Wi1Uy5yeACzgJevvgCUXHjY8Y0DshKy4No5nbdpMOpy+LAcQN\r\nMraaY7EVaL9I1s0SefSBQGtYSsf6sbupl5g=\r\n=p48U\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.119_1672185429570_0.7515203690628238"},"_hasShrinkwrap":false},"0.8.1-unstable.135":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.135","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"680e97483a66a78848f98f4c54b707a24a20a155","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.135","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Hq06DvPu3v2Jt/54KLJnrM2AH0rVhKtUCW9JHiSZe6ewuWPLtbPmxkniWT448zNipd/gAkvJ5t++6zwu+hGPHA==","shasum":"909bcd4c83ada5a75a571ee30c30501b3c92672d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.135.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+g78HF/9W2yod+UP5d4d7ZQ8Axwzq7ThbmWSDt/zjSgIgS950Te36bEZCF0WVCoZjfN3Wc9kLP7S8vykvcFsGxGk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjtEpiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4BA/9EfcJtwqYCOToOv12Hn01ZpUQfqBiUwzupkyHN9Y7F1ZLTeEG\r\naRHDNPDvWDvdlGGZu9HuMU2lRUuXkBUzVKb/t5GgOelpV9y0qBzqQLTsiAZz\r\nv/pN6ij2MjRS0DdndkZW/FuTWAZiHc2qxvEMiLjjJ8gIXNHNMnANZoiQ2WGP\r\naMrPjfThI9X2IPvDfpxYVZaB3Z1cBb+GRkL7eWLYxmvyR3Zt6Y0RvRjtFVci\r\n2PzuejRA/FT2o952580xL4hfVerxly7Zk7ykQdO/THXrlebyYI+wxtJy1o8R\r\nnt0JPch6KrnfCXM5Kct6oI3H7CJg/VCd5UvQD0p2FmCJXcpBDr4pprGbbHNV\r\nVIhtaal+NBlFtbjnuLrZTDtjIBD7smcpZYj0DK62w2vdHvRKUQsAHROTgHE3\r\nOvzmYyRWZG6CN+S9aA1noRZFHvaXn6tVgRHZEvEmz3Q6O9UmwuX7WWFmkzDI\r\n31zym5B1lmPD0FNYDAHqSdec81XoOaTi/ZozU2buqECkqWQWvM5CG/Sru+v+\r\nmq1ph8cnHV60tDFo/wdbfne5JyD6T/Ax5Rbl0dlw3/3hNoSxx0rioSwKn5Gt\r\n+wIeMAZofgy/UfgQv1h9wUvy0S3X0PbDtIbyV6kCaNXISG+KNi+O8XMrnKwS\r\nnhGWtIeRoRVAR7uejiDjSGFBneijuvVLIk8=\r\n=fkcT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.135_1672759905948_0.18651326184449668"},"_hasShrinkwrap":false},"0.8.1-next.120":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.120","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"43a3adfbe683ee4040a293cc5b75d17a029d7c49","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.120","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ikglA5/KSFggdsPR7V4DABnbnHEtlKH2d4fHwi/Nx2rzX6W2bDnJdOuZWYmcsLrhyJ3KqXEiJo8GLoxDcf6ESg==","shasum":"c12e5f4394a1b20b91a15ed1bfaf1975174ce53c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.120.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICVabp7CaP7U6XaPK1k8bcFSdMdn7ea7/xPc0tosx4tCAiA1k893gaOXZSL+KdPgCo3gJTBqvNxyXyC7mQ5oDLAtig=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvL1RACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq+dw/8DxpO/UNTuUXbfSp4q9kYOWXbs5gfnbF6mESDSITFuVcSHI61\r\nyUDrfkX/ypLaAIyVc/8Aaodzm4LNIHln9H2P7Qrj94sce8pOrodBO6KXJLRo\r\nSRDMIsqa58goPg77gXu5bk5qpsuHTjzLbx109g10SUEmhvdTMoMojxDYeyhZ\r\nJZMPHzfcuihGPA8NecWsH8rauCnveKvXG+F/DuxWJNZbb9MQEc79u8tkL8uj\r\n5Uq5/Lb4vqarmZY7jMTAdCdIy4amN8qGKTzcYgOqYbV/3SnOMYf0s7BNBFb/\r\nJHtiCsNxzWa682F98GJ6iuRLIK5YHQQ1WvlJ5AcMPBupbKZLzGPPrsTEsuMq\r\n3HHDC3UyUJR8mslxJNsjiBBH2J7g0FelQvvNPyXtool56yCPUMSW2aBG+0qr\r\nBeukNorylgwMOD8geC0tf0gFzQ3NJsFifFcanqXAD+B1u8jmWYqg61OmU+sf\r\nnlR2pSZE0gBeOX/3gBz3+z+nk2nGNtRwdCx6XbHju6HnXxSBFABcNirY/3qK\r\nteZ5zX0MCE84hsK2wazMN+1PIatPQdtN0fDCCuqZCzQF9KqqVi5Xp5GWST+Y\r\nNcO5fK3BuyADKHZQ5OUXfTV84VHbHKSyylBd0050wSTldKEQHIh0oJRWfH/z\r\nw2iSvGR6plZLPbO4oiMUELg7m8MMGiUUd1U=\r\n=31q5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.120_1673313616909_0.6861192480387677"},"_hasShrinkwrap":false},"0.8.1-next.121":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.121","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d98b358ff7f9c787667b4bf48fd748ae9f58197a","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.121","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-bZl53SWtt4VjME6ycOM2Fsk48cCekyfOSiJ6NR6wZDD07f8XQDrA+AagAdR+SDFAqkaFlLVENfbCyTAjj7tv7Q==","shasum":"4e3cff721b7e7b600ab1786d5ec050d1dca40573","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.121.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCfPVCUDioPinsUf7UnxuXge00hQm+/3D8qKHIcKKOHXwIhAOftJDQDHvo/jELqSr8ImDAHS9Hzmwm3CKQj1K0UcLhZ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvwnFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrsqw//aiF2rFGPEN+6SfQVBmvrRw0sVyJkM+gxjTJmADPz6i4+x3eW\r\nyC9VwN9x/0JAWg0uUqHDg3n/41IoZGsA+3Yw6asdu9V3UkW7swp1/EFQxvQM\r\n7sl0ehG/5c+TxpTG/Kg4DYR/I0Y7T1JDEt45aUVRu5mkrHWMcKKLmMtCbRwK\r\nuzknNKhgCHP6g4GJz/KRo25Av/Qw9eYJxFZQB+wmuCnsFidFRgIS8a0VymZv\r\n25BhN8g2ldiCoHInx7ECORl+MD1MOFSRaNElDzDBzAzU4YgVPaNH6sjeRdnN\r\nhKA31mz/AGrNm8EiukMQd6AAiKX54aX5+THSwCLj2mXMjpzoy8gbjj6b4pIb\r\n+vBS3PZga3lPyaNY6SrWvP6+PcYi7phMVSI1ETPdIXy6572VKALhI/2KYTHQ\r\nVYLqZnfAdD/DrUV8vi3/QZnOFOGzuBdoVWXgkxZ6YfylCvqPTzArimg8dy0X\r\nHkQ3sECDFOYKyERoZUcjtZYK6vVsoPgtWYFB0YuGqgiOmxU3JrGnNx2cB/7E\r\nkJyVXuGgzkpJogQJVnZipVqZr3PbJdHclq8Vx5004GGGMIkq8sMDa0c+tJVm\r\n/kbwTEEHVzwB7cj07chATpod7vd2vH0ouDi5qOh9+dDbfW5Gm/G253IbPvMd\r\nQuH3GD6pQ6w+Olf0nggoG/aIqFcmVzjL4T4=\r\n=7zpl\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.121_1673464261677_0.9278290107232645"},"_hasShrinkwrap":false},"0.8.1-next.122":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.122","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"26cff511b345e412dc37586ef3c3c8fe678cd574","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.122","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-8n1PK1IEpFaqgRW+IzRzPANfoVqRS/wHSfUk2btuSxvtkwYhhD2qvTuIEkp53Ev58ZGnnGGRCjnnF2sjU0X2lg==","shasum":"d487a7241399352ab74dd8d85dcd0f71001fb172","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.122.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH9awdwW8ADo64HiFzZc3oTmmdpe1wuryAU4h7hX1ZvFAiAO831ROFGYPLfnkW2J7I1Rtg4dtdBWANSVpOsay0NjaA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvx1LACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFSg//YEqzKsn2i8xjnKxfUM+oTX8DtOrUvLU3RWVDheptYeXip7Jh\r\nbRS1+lnHCFu+aDGxzttGk+hh/GXcANjQOl3K0HAvEoVXgVESi9fJGdMoKeLr\r\nl5lIOAc/QH+KmMBmdl9Py907AE2f7Zx9Du2vODmtv3ITEVCIKymuiTj9QjIs\r\nO5RKwHX5e7Z/pjEXx8DBwWi1Ng/V6eRiibAI8/EsUQ0N+ESIyztAbdt+y6/T\r\nh7Yn7GMmvvPeutH9gMteQP2JGLMo35W+vV+b7B/q+u54lKzJqRZ/hJBuCfsy\r\niSnDgTPPc1gdLckFT8GGw3KhIb6+n7eF6sBu9fODVhaqlEC4YwH9N100E18a\r\nf+Iqbpg99zfXmcjrQhAcjmgFVxVYsV7DtuV8XzP+Dg5iqPfex0dDmnAIzTme\r\npWIzoCgiOPwDgL9teIFVxUaI1Jf2YmQj8XwQYruOqISl2WAxLaTfVyBUjwpq\r\nIVcAHsfSNL7W654VeS0gZ5yu+rUNkKXTCEhH1ZmmwrKF9bjbP44pFCO8zsXv\r\nVRHqWIxnrPEcaNdJ9HUqmjHiV9jX64E+bTYc8TpvVUZ725hXaxL1ROYBgykE\r\nbElE3H64jIPgCZB1bYcd3z9dy41qVIUy0sy+PVsKLHEbY7iEmmVGaK+kKqI2\r\nwe1cPqrrVs2A8Su3RnVt+AfNMaDMBn8mChQ=\r\n=f2/8\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.122_1673469259607_0.9060281211732135"},"_hasShrinkwrap":false},"0.8.1-next.123":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.123","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"0204094e7b7fd33314a31df5d06344f54e6f6442","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.123","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-zi0BNqvRSfzJyZ5NSs9rThqLHXHp+7o2sbnlrOBVgdOV6C0AXBRXYW7jcyqDTLw1LwZF3yKIVLqDUdK6PQI6nQ==","shasum":"03870a5729cf03b30439f6f9017cbcd7980b32e1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.123.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJAXDyQE4d9vWyDTM/8aDNPR9AZA4rRdhhav7ohgrijgIhAIRWiFQWhk/4By/wdbbX2/ODLJK6Z4iT29qcK36G+2ri"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjvyzEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqr4BAAml0nvGqwTFXUVybztA5fIJRRPS2EbMZOvp4KrPNN4gLLj9Eo\r\nSZ6T/ggWGmrTQykrKWxN2/ZbGI1zscIXf5WdXBh8MYOKW4ZTfiYpf9v7OJp9\r\nWBNACtz1phYSc+cucKAEHD1B99Y3SirMKT8t2KTfhJ0oikQKqKgQjSA+RQfW\r\nd0kMDcE4KaHybdKyW0fcAN86pekiHdO2Gb8kw/GCmCA9KVLTIxDRLiN8gYHz\r\nHXvRD88ddFUwslMUGOS3QsVEugcekejxIPvGbXodbfqHYyGcfOZY7g8l72GJ\r\nfbn/1GgFTqRvyeM3OckC2JTrZtdGhZupfdTrktaYwW7NVZADkmXUjq5Hpjjq\r\nS34u4kO3NeydQlltdKEkX5PXq4NYg7Ra0Cvr2U4BXeqLJxV08ERKVWeBP2l2\r\nEwmvZPjaUyM5OKB3d4Y7B0XAjtPTpL8/NFdmcpS//BlrgSJCtVvZLdQwwLkz\r\nXaa99oGocVQuvkcTSILxujqz/OTJAtZReebgeqVZH2PSUQbshNUc/AsxMeIC\r\nRw+EQus0Mzid78DS2L/JL0FA4CBRinAVYFrXLk7lw5cCrh1ChKH5jbkdytQz\r\nUB887k2r9nX792i6Oe25p+EYhm807bDMJRxHGLVPqTwvuNJu16FI/mg31D1w\r\nPB2mTpJwiBY9eSvXfjYBUiwdnRmSoGZM650=\r\n=viK+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.123_1673473220378_0.6180030812819675"},"_hasShrinkwrap":false},"0.8.1-unstable.145":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.145","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"17a12299ebced331f45a5c7cf53a5bebcbef1280","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.145","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-KSFTx6AfPcA5LPIaAdWQonogjOnB5k9vq3fWzmFLJBS26nxSZadMF9Si684gvCrIlxYLIwTGzMnTCYTQ1lroXw==","shasum":"0473268dcd5789dfc836f11d1b07df69e5c1ecdd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.145.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFpEY28L0RTm19WvAFuOTxlabptgt7V8OHLW5SX/LX6JAiEA/n+CAmDanZ85BdhYxI+1awDZ7DoWrKp20XaZ/jmxDeE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv16zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqA9hAAid32pDderjPieuP4OnAyu3JxEkUzl9BabWtX+g0yKlRP3m6O\r\nsdPNN3FYymsJUepXsuv6f/WTRPdtmur6yrq2R91ukchFFwg4xMaCsKoLM5ll\r\nbC2xpZG83UaordQJeTBwGI3+4R9RyWZlptbxeWpNlm9WmtyxyQuZsidQdcWt\r\noTmAfDNRv8nJ930CC7e1idkHXSNQYpVacUN5sH7QiQ10P1BRlAnxabNHbxdG\r\nFnaFzQJ2oyV2XGV1gzwZmD+r2OT27q1iWJh8m+xLp18qnJVgdQJCxogCRAAm\r\naB4dshiXbkfKmYFS6vq9A74wSftknLI1RmhxVWAnxTDNFLdt0N2/MzcUybnX\r\nb3v2l6CPndqJ92+Za7pjOs3QJAZKm+oteQV7Q9vzu4y045XmDeNycxye3Gq7\r\nCXuvF4NWsZDWtoozqAHj7WG9D8XEAGbP/Q0Lej48oHqN3qIm7aBASRBSqX0W\r\n40uVJZKGwvqYgJIDULCqeN6g+QPZvCSZx7AZNbjvF65uUKNCNJeZpEFzBhcE\r\n0mDp1nJ4A0icRxNepS139yN/ZNv1BgOSXkEiVQ4KT98vtBhI+eAonBK/ItYl\r\nyXzKoXWoRBIu5bfFrddveFZ2a3uU0H1W8BODPDrhjSMcZZq02nCK9+Xz0MkM\r\nq51+z9I3ysyvu+KcWi8F4oWWC1eOAKvwkdQ=\r\n=e3VW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.145_1673486002897_0.6747382150425809"},"_hasShrinkwrap":false},"0.8.1-next.146":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.146","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"308128069e9233df39a3492f74c27277e67bd557","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.146","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-1YDwhSzDafo2tBdlG8geLtctin9vz41w3P3NRD0wQGGggx/+9ci+KOvqoBwLUzYNtEVGEBmJWD/aVL4Jyx37ow==","shasum":"b6a28dbcd489d450db68871b7026b3331302106c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.146.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEJqGZ0biFk+oJw1F+9GAy8uyB74AxNQcbgACbO956bVAiB48jEkV0v8Bgk1kqb29NZhwEN4/ebn+Hkmgi5RPuuZOg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjv2EgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpeeA//Ut9XHgFkIx2wr559hHI1ByXMPvyaeYKLN0efKDCZ00eqDq4g\r\n+X5Q4jQFsIfjD2QSkJpDHCqyuPWSLWUC+IVKOYzUZlNi3qLoVPFzQZ7Y31SJ\r\nf/kx2HklrteK2MdUuoRoz9UywUuu7FWnJeutbNVaNi/3Z2alEuOx6JIjRrv3\r\nEdp9XGFXiEfMYdB9jn2f0dexE6fIlCOy3qEM4Sb7yQBA9iDqBm0fYxAjchWb\r\n7s6QKnQVM9B/OsXEa8cmGiDDczgLZzaj/lilYdM+4jw0mwYLObGw2z+cGAUX\r\n0bNTfyUSVi216eNhT/E/PWYc9+Kup9rBrHKM9iPgLDkcbqo5Pa+pKKY8qpBq\r\nmO/5rsg/PBfxA8fx1X/1AC4ozOzrsfWoyZXCrzqLGXDkhwcvEG3jOGlonWn5\r\nyp532NaDBOhdD8wclmNdZcAjuDLEwCOTknzr3+eE4eBHNzkI3RSqCOtQVVXu\r\nFnOepWSsrhtllq4AINa1i0k6nTcN+Tf5Cs5HXQaidZXNib2zVyrk/5XA8q/Q\r\nmWe6oe4FHg74oH5MWqxCG+wDO6tf3G7j02tG3Q7FiuCEsvBWkIXm7Mj49YDV\r\nDETy3sZbngCRwRBMkl/o596pUHfkRBx0EIKSFIjL7PlfK2Smbdhcqewt8wgI\r\nE7r9c4lJaCX8fWQXJzGszxJBiYWXe3llb8U=\r\n=hdyf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.146_1673486624401_0.8968905269508511"},"_hasShrinkwrap":false},"0.8.1-next.154":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.154","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"a0bd4676a62920e8f92ee980213b187677ad5aaa","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.154","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-F7vmyIuwnFYP8mFVyLpFufrekyztDQkM0i12dzui9s+mpEUGdYZCODl2RnpXYySfrVku1fh6MjtZtffbfQFO3g==","shasum":"8dd7100ebd5f3a3e68e206c470ac5736052c92fb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.154.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC4AbpZAcDLSXXsw8anISXf92PipzqBstRtl+QQiYvBCAIhAOBTaDmVRu1p8yVxtT1beCiYD94cSGli80TbufE1ceJf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwAbxACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo5dg/+MlpDTJPPo3Dw1+Y+f61M6kSjaqzrO5pygFy34tU4F7oX3/oV\r\nBD7GWEJixrPbvjGqy+QiKo1RVFdACw4uOHzHifpqXiZ80JejdNScTTYuOoL5\r\nCWgM50D7b2zKGgn+/Ah0KYgwAJBHLecP3yk+mdlYZwfvA1SyfmNdbYaK12uh\r\nRFuNY+ATVpP9p0VjVhvYe/CSNvyiBu3JbRE1KymgGnGm6OwvbdG7y5l4PZGw\r\nQvbb/p+YBnI3ItRwfBXdWM/3P8tCnE1Tlmx10/4DU24U7GwDSZ1XtChPdQvU\r\nLPMIEUo7nQIBbKXF11KhFHmcaxC/TbhXF5soO3qDlA+B/0EXLVg8Mgbty6Xw\r\nPv9bw1+vUS6JSimnAJ2yPahw/0EnjK8hHCRHFbsqcOLRyFCKPfZrB5yFjqrM\r\ndYf/WP9DtzNVhPS9AuEXRPJi1HWw3urVy9m81L+g+EG+E8BX0MZZhdtmib0y\r\nV7fFMVbcdBWl4fdGo1Jh82yUwyThyBX5afthjZRvLOLcpaj4ARPFj4s9J3A8\r\nAaJufo3gbB8DsefdRKAk39g8xKt3z5mBbdxDqhpNsk8DVfTukpgqETH97Kt6\r\nT/NcoIILW17PVoTJueSkCzbzgMaMOZqgyvZyNDe3H+xOd+8HM7pWQJOS4tQC\r\naTbzOkW34ChNEF5Yem+Yj1Xh6rQwtjyaE1A=\r\n=qaaD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.154_1673529073105_0.3447636749342482"},"_hasShrinkwrap":false},"0.8.1-next.156":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.156","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5e5328b9f2429c4dbbfb4402cbecfe5f114e0550","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.156","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-p4ljSaZRGvnJqLdzEnseg1jFmr5Uw6RhrL2FsAy3H3dytPKzfXiklbb8n2FJgp1gyBIXWQO/mWfGe/ekYdsXpQ==","shasum":"493465dcb9ac09732a371e3324e78b75958d2528","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.156.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID+N22ytdXX19R4aQqNtR8DcU0TWSqyhNKMI+Dyd920gAiEA7fLsqnfQj+YUQnKSPmnGrCRXaUXYA4UQhGlS+gF94/0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwKlAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpquA//cw/7ocuCuYXIjcgCpObDXT3EgIfn85SjFJZB3c0awWY9eiRk\r\nC1P5/I5k7LDGfPKokCWEBLTLM8861DxMJgdNOBBD9/E2AOvb2/0txULStxUg\r\nW2mE+Z0HWMEBbzvKhNbXEPHjzToEwaTJeUDBUXghDKjgFl4UCAyA2B6XF1WO\r\nO2gZvwCKqYFovqS9pJfCBcjxaLwU1foD6z0PN6YFcnmR2+k8YCuJbOhVA2aS\r\n/XBvJa89tAGnRbvXcdl8OdOxDXzLr9lk1PByFiC7fkYuYKMMarxwuJpI5/rh\r\nOgxYFCrhutyrDxgftivVQpa22AFlGjsehxsjKheMAo/Y12TZ2JwSwMJg69LC\r\nvkwuVXg+0v6hiI5Wuh4DW7nTXlYZ6sRE858Vqq8xOL4fWE3IRbBi0I/ko7Nv\r\nd8fSz6clztAEY6ArWvvi69q3G/IeMsV8Oul7K3nGG07dMZRP3X5TXs7cdRnd\r\n8SeqDmm+fAYZ0oyirXTsGcNnDNOGYlWg2+123CNF8xQGldDislgt0zIajhux\r\n6WGawPpN1vzvri9s8H4R/lapUpchvWE0K1l9mOXPzHVEJbjK+alV7buxZVC+\r\naS4PUjpafh+5Mblqx4ndNJUDiUsrfB01OfboocGWv5TDijVUGnGt2IBnIbP+\r\nI/KDWcwDe56LlPFDDlszMV4lhP5lfUBtvrc=\r\n=1BWO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.156_1673570624438_0.5703053333140347"},"_hasShrinkwrap":false},"0.8.1-next.157":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.157","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b010d7ac65ba49d4e85641558ce801e1c3fea730","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.157","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ZmCW6TVxhQuolM9F+4K/oMD48izgkcs8e4pt4501lElfY1olthKg42T7KiAIBQA3dBiaTfAHXM+G1DpenGmDnw==","shasum":"88bf0a15696420639e7b35a060f13cf39f266dbb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.157.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC5IdTEcMyh9ODapSXfreV9B+8DylgGO8K/jll6PG5fHAiEAhHtdbaPd3BP+yAMnlJR44lwY66/dYkGTMPnJGY2xR7k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwLbuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqiAw//a/PCam7tcFFEdldeN2N9VsKbp1k79EzSHOhr7lwtogDl0GDq\r\neNr69HQm6wFRgwcb8CvnYzwTtlSRYoqfVIFi7Rz4glIJi2jPWVhYVnUJpEqX\r\nLN0qUq7DbJH/5RswV3PB9oXWqPxle7VTAGgrNKkd7+qv4TubeprjFUZjlyNq\r\nYT20W1w4RqB+jo9CqE2RrCJH7+yKyUnXvusx+SVj8Zyw8Tcv/7EtsaVZdNgE\r\nMNLtFKr+Y5lSziICYunuB4UXs3Bn54vP3IVvIkyJTcPuRAE2FZuaWFvACLkW\r\nwEG/yd0ny1JQIq1/hdGzhdZogVVUv8UNE6M2js6bwesRLZ5Mm734cudT82jY\r\nSHdbRqTwrwj0JHOoH1dxlijKxPXsIhno6ucqM9EIYLNWj9mK7xDdHvMu07Dc\r\nbX6KWjv8c+rVcPvfpwyE+QKro9Bul9rsu36/DWeZQAXL+GFjJoLqY23iOTry\r\nx6PNiKvNAMahRxHGAFcF0N9wZl2e5/D92TJ/L+3wTF2YadY/4afxDPIw5HVa\r\neyy3XxyUT1JkK4c/ilgHoUTB/a/TijSv6UngDhhyzdydoTBFNsFxVEZEQkE7\r\nu0tynZPppYAQa9zrOsne5Rb+DNRFdKSt0BR55n5Bl/gwit+wYQuIzZvsbadP\r\n5D320b+mqQn5ecCykS9ztBzD8L97z+RmOuw=\r\n=RXo5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.157_1673574126576_0.7921440530373698"},"_hasShrinkwrap":false},"0.8.1-next.158":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.158","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"625ea6feb62a08d3ce013850c6de7da8d833bc35","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.158","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-CaC8p01oxA3nez2uaFsakHopYQpbOcLLnhMaOdVdo1oATQT9HzbUQN9w+g/OwUUe98+T/iHuQnF/Fx8Q1BPfjQ==","shasum":"38d0f6e91d94471e0ca263ad9cbdb80e122f2b70","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.158.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE1OBDTWMiDc96ZBiHebW47uwF/Oe4zf6Jvj2vwmfX0eAiAK7eNgalIIMWgW5uGESxMTwZNH5ZHkbKQTPSpTbKMoFg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwLvgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqixg//QEoJalcIhdNf522NL1gRA+QKnGeL6YwSi9ZUO0Z4+rvSVBDd\r\nbyBu1aJTK1OrZQ8xKg+cXi0g39l6Kz2zbEEI2WkxfrtxtguQFIjbOmPYqWav\r\nkEVN70SfnlyFRTk19FYr6s2rYW7XMEI5YCnsM9LjzxkD9MGIxEsRvRtfelcO\r\nXU1njsOeigPMtZQABpcHJpQIimoezOMJZPuXMPIe74mJFOUaawXh8Phgw4al\r\nUZHpKFZ+3hjiMHt8TjXQnKcMoMEdsL7ud+q/DNSR0nr22sqsbCOKxg83WctC\r\nPGTM4jCeCMY6r7un3AkJKCN/p8hLZ4RlTKIteOiIy1/76KgFhlkiePDaFmRJ\r\ngr63HpLpGXiVSFEk/K9/xfFNEZ/J87/r/8m1nTgjuP6HvlSp6dPsfoNUxBXd\r\nGuK8Kj08e/0t5YmHuH8w05mg2NHMYKyt7i+AVNi6u1w6dQWUFibEsGIzcgHN\r\ntXBLQ1Ho/qI5r7Xvo3BthVm6SllZjcrTzrbApoj1AjwQBTOV1E6W56O7TZgB\r\nk93OiSvVaKpM58H1roB9b7emxK5s93QnRxjK2ZO8bLUz0L+dxMcYiDpF37Jo\r\nbe2NA7l3wC5eat0R62SN4+9F3YBkh+osZPLi7ds9N2f44Z0JW0wV8x+YsPN5\r\n5NXZWs1e9ho4nrcJYleLfFIAAnXNRJsrvU4=\r\n=zvA4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.158_1673575392406_0.6575971129814919"},"_hasShrinkwrap":false},"0.8.1-next.159":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.159","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"00892e2bb7fd279e2fdc3583cd132292708f71c6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.159","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-zSK8KYttxWgDFSXRwH+KdtMF1HKI91BZ+w4eFdF+pddGEaRTFQPEewl5Pt3q8f+Q26rKNsdBg0bWErnbzqo0OQ==","shasum":"ef31c54fca0569745d7f28a689a2c1a0846723b4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.159.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCa7i0ZsTvJtc1r3zoFUA3f2TdUiZbsHFnsvamQAXNtAiEAxBrOb7FzbPLJrXI9HV8X3skf3+CT+S6ihcNYNBfEUr8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwMAPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/dw/+IjHUWlOEN2YDQe2DI6wkGazkZGGXDawErhV0V+1wDtajVx43\r\nije7cX7lFQBpk9EUNNA4vviOLP7W8VpJTKw68w6eFv6lYB+s98N6c6tAwKog\r\nHe3iVgCJ43JdEU4NcxP2FrobbcYESQNV1gcKTFCsesk7J8GVHluNY7UDtbqK\r\njTyeGS7l2yUUjGhGXoR38lI3QU0mx25AWGb3JORL1URraqZDt93h5Rs6dsOD\r\nj3ujjJQzQioCOeCgMMeV4DVNoGAn+AH/YloPctznpOw+vYIDo71zOZVf1V2n\r\nMDoUDVDFjJeDnRKi0v4XCvx1/M3LmgHDAX0bbzXgUtyEyFSgJAVhnF/vY8gE\r\nFkzjW6Wku2vraItN3fs14hI12yX7xqyAacVQMWOX7+1oLf109n7WfDklbPFC\r\nBn6MgqbyyvggkNAcHbhxq9W/10yIqHqooeAF1+m8xpSh7hUvD7QLsJVWjizS\r\ntibKbL5uF9nRy3P298bFnLovBjEcmRORKeiXTHDKnpJRjnPlGlZIfCfLTHWy\r\nzLk4A3E7tO1FGoc9YS8n/UYInm4Tttn+URPiUXZbWnYhQGWoM2kMa69kn3E4\r\ncvAweDIDpu+R/0Mc6uWxKxHe4RbquGPjkQB1HYC/ICOuP352C07K+9bImxfA\r\nN8BKCFSVE5QI0nx8jRFJLFO4mFez+DQLS0A=\r\n=oQLh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.159_1673576463762_0.4275447194782127"},"_hasShrinkwrap":false},"0.8.1-next.161":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.161","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"bdbf4ef55e50a9d19d7998a5ceac7136034524ef","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.161","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Jlatf0R+5NlRh+oAch9NN037W4HOn9IUZ8UOKyGLqFSFr2vD4CR8uVAzmOtZVAwya6g4yT3yCPaftgXhF+FlLg==","shasum":"6da1918287a796b7f3696f4bb80269082d954c2c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.161.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDkKUPg+aP3NGvp6+penMvt6mJLXYjBgZSe/ujGeMeMIAIhAMNHx6DQJP/xkFLDUnqFxGM596oMgke2T6VZ31AzYRTJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwMudACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHpA/9Gt+UXyQI3coE4SgHAefBgP3Rn9bB97Ghq8dkoyFtQaIUeN+w\r\nIbPgRq46JRQAlNNH1Unf0OLfErflY3MFTR0x37HvxxvpctHVU9CyQxQB0dnI\r\n9jY3LxKgZwwnqls4dhxuc/V7O9fdblOauGRbVhA7F9VmoMkcuzE/jJSk5F5J\r\n24Vcbh9tslcxFz0HqURettxuHjfcqtmv+2n2p+3ajFkpR8cDr3Pfu9y29Oop\r\n02JVvodQuWVB+cpyEDtjeIarzShq9Ha2pHtFVp/EAmbIS97nFBpiMij/jg79\r\nLIci+gqedsDdTrok3xWAwciHZDrnvSh482r93u/Bd4ktXBE64Pa4T9ddWBhc\r\n3OqPt8YhPvAG/82S0UcKgKh1FDC3ToAOsa73uzt5eMD1ioBdVnXZYQTXuHUf\r\n4mBNxq3IsIimY8ghr6kDDiHES8xtBKzMBZJNfRmsoYSVekJZXxZztpBiIPed\r\n5R3F0KeuW7CBms4c243rk7+vn8LDzDp/iwzHcwL7SNhq9tdke+LgdyTEez0y\r\nAaFDlYzXbdT7/1w9gI9RrXReGGIG2SPCD5CssgYXHD8ahfR5XLJHielge38p\r\nRi9GolXJbbAwvUOZUDnWjpEkGWAgy5JjNZk99aHJyySvFhlCliD6PrV6g8sM\r\n/PCbEpZNXoQEHJJSGAHlfrLsGPdsksEXID0=\r\n=9Oon\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.161_1673579421688_0.9037652530710905"},"_hasShrinkwrap":false},"0.8.1-next.162":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.162","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"518b8fc82e26711bc6204d5e0d66bbf04b0844c1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.162","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-7I39IqSaQE5bD8MxLvTNHZ+ADSKDnHVH7In0Udg0gZRzGymn/GMLeicdOgrNhLiRZqef61ooFEdVdy7j/An0sQ==","shasum":"61b3119c12749059189fbd65a5e0fb082aa8f0b5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.162.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBmXgH+eDcRWPLPn0qp1BivoN3v09Fg8nONC+5pFwCkbAiB7HBrQHob1krjufaqTZs0+P3i1h73zpXG/tdcn5jalrg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwNViACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmozmg//UF3ZLXvhxZQ/Eett8SeGDNJZUjKQ86JKIrQzlAiVNWtVKf+N\r\ng1t3x/7vtjXBcxiAlDBwb6z1yYa2r6xkNqdADxtONj8MIWvKbRagO8XJ4fPr\r\n9gEgWGDDRv0uiISWP+1wShfcdYQ3Nu8ZB8hN6cIwOBapKA+e/xo01K8SBYJe\r\nLOaf3giKRpph5rI1QHtbUiiBGb6nbLO/cuafGOQ/TlYuF10doDaBr8/4/c0s\r\n8x79SUHOEpUPnM9Yc+2AjzoMcL50kh5E29zw5z9tQ/531r3OBcckkAqAnR75\r\nKA1XTzNIQ+ewoN/DosvF+bfwyoqD7POF25tPk+kjlJw0jESbIPDwRdhaX1fi\r\nF+aJWqq3WegBlUPGvygtXh1Wr+ZopMm7n23OO7solRBgLCEIMuZSiUhOjJJj\r\nKeND6i/nMs6qfmig4PXX/njq8Qle3Q/MFxn2RV7aBWMBs0hsiB6JaZ58+P72\r\n1P8Rocof/rG4FddT03XrqdWFR7dOhwqoNRkvioI3r0KJvXlemt8/nCfxEDL6\r\ncIcRq/DkIo4CiAb2Qmkzinijdorxag7kj51m93AiTWDoxEXEVM7WEcwVmj9G\r\nDWXyHxfR8X7yWJFWMwRYT+BLd7/0DVcLN5LYEYU4PINaO2opaZ/UaOsnu4tV\r\nOYbuttBGVE98Kh/wo7lp1g64dj3aoTNnEtc=\r\n=XCxX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.162_1673581922364_0.381043221293059"},"_hasShrinkwrap":false},"0.8.1-next.163":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.163","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"1f3f6b5078868ad4447a6c2e60c81160d428025e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.163","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-0aAdIxzXrWtW2iXr4Crb+0gu5J819VF3mpkoDHuFQfM6Nt5+2yeyknp2JN3Z6IcIMc2zFGA1bZjWfvY3mRsz5A==","shasum":"dc708fe6f1ecef15957418970309b965750088a5","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.163.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzAimlCp4U1NN5RxXqGr3XkOZrq15yWMv6o2E69OZzjQIgQwISCKKzZuCcbPJhmMCvlAwvKkGrjvUcMBiyL5AJKN8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwNkLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqGyA//VTW8cYqY/VAWL3pOTKFTP+pVeiI3lHJPmphZ5brYQSQmhM8w\r\nIVSwMxpgTl1Vmq/PZfog01l2zOW6UA57DkP5w5IkS2Q7ICBB0miIqVUvFkKQ\r\n5Yu55opF5C/lcoAg8OigTNSX+ydGsQ/nThF3XHZrrMmuyX7cqVFi+QM09fYR\r\nISt0cveTf6VzgI5ziuMO+bXhzd5zwwIqGlI64ePUh4D08IMZrsuMv/DUiIFK\r\nlnJJ691p9IqK/GYPKRqzaRgGwUR6mdRHKSBSzUZf3fnq3FcjeiFgPTR6AXy0\r\nRXKJuXkZtT+Y+WYRbPCsEuTmfdO4awQFDxtS6ErTKxLcJsZ+T6ptmtNUpc4x\r\ntZejbf2upyWB9m25QCufpiPMuF9WTqIJzueFXuo0aDDyPZhK/4/tOL5DGHy2\r\nCP7nbXbXXxKVJkDUb2MtV7O8TClfP1EVfoSH68Ppiy9nQWEuaFD33VqHA7Ne\r\nlZWbPSn+FGfTLo4GrmgbUjS5JDGpj/VKGVHQgVM9HUBTVIXed3vjjhlIvQrm\r\n/JSuL9AGXLcoEHrlssqAOSSzcWj023N3mf87jR5nTQ849dSHKAE7zvJy5vKy\r\nnUfwNCO5hVAg7yMXt7/7zZXIawN1SgL9ZUY5kVOFjmR77SlEtw3t4KMgUUsx\r\nAeqj/Dj/kEs5HQ6xM+yDjVe6+WT9IEd3SXc=\r\n=NjC+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.163_1673582859672_0.5872681727741027"},"_hasShrinkwrap":false},"0.8.1-next.164":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.164","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3df79ab1012764ac61e6f3ac910b9a91cb19f996","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.164","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-N76jTq/NIIj4YTmzTbCbQ7iv7h21RbW8HiPrWqoJ4PypiIFBVGE5VpcDL+p8EgZR6DR3+Qa+NrXS1QBFKjEpsg==","shasum":"73257d27d16ce5e21b2e452e764e2b5639f8926e","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.164.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8JyIUAphbdTK12ZW8QIclL87LyAeWgIVgjR+pw+i1jAIgQUEcBwjkI9OnfIQIofUAQYWQuHpdcIXha8mKihrPUWw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwkEaACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq4hw/9HjI3mLzQGfY3SREkpiEGNAcJhRYL72RrwdT8PtSMXKAcglDd\r\n2Fke0MDJ1cfesROjkEA33H8rhH3SqkyvweBoggndNgMaVPXcshGqKPlFXL1W\r\nniRk6tdtBgvhQnXvDbYeOtNXbcDx1vGa+FPS0uEGn4N8IkLZEyav5YaEvXGF\r\nxRGShHdE4Tegvx8t511jM5QVuxTvErneh7eociU0tcq3e11MaoJz9VCSBui0\r\nnYDKbO6k54QontYjpcogmY2sPGlganN8sdf8IAEcuOL0Z5fc5mFbtVEiZTeh\r\nRadZsqhMZF5FuSruyTh0yiAiXn2tAoHCw2vrxEYPhSORgJPfHGmRtyZm4d+M\r\n+uSfgdu1XZDNj8QxzPeJ0O3Cdho57TX014hCkNOFo6XD9bDuCFYq+bB013y8\r\nC3QJv+TXhg/wNKz1jO4q6cZaG/zllYlKNkpKjbHCGabh1NaAtLKmeZF2e6iY\r\n/kee5/+Br4Lj6JMhlmziYp4OwLpdVGYH5jS7adlNy55d+AG4c3Gp8hYeUzuk\r\nx6JLnKvA4NdYhVsgRy+8XXGDYy6/TqlK3YWGV8s799pHPTQecmTemV9F4M2o\r\n0BZ8mTNUaXj3aGthftaiHd0ETdrZMzlD0PAwdlAwlDTts8v8pODXjIx59qZ+\r\nOK0xHpzNs7xbilRnVu/4MhX39oRQATtfCI8=\r\n=ExDN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.164_1673675034323_0.9187377467970685"},"_hasShrinkwrap":false},"0.8.1-next.165":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.165","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"834642a3881b14195ac47f5bdd639bdaae35c7a5","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.165","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-saJst2oqz3X5NINHIptyfyuUJnnMURO+HMBO3rVqXU6Ty6sc0NE7pMA5eaju0SJgi/7H6CXkt3GyKoJshbda0Q==","shasum":"930cc0c8dc397f9539362882d0eecebe9f4d51a4","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.165.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCoHis2bFLuR4Rltjxc2e7Dg090BuSzKQ7CSiPRdmeVQQIhAO10nL+9gmkf5lh+co1W0IGCzsY9ZGoh3KGHQm/9Hq2t"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwkkmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr98g/+Ouzkg7NAh784hWTxpVSmQI8N2c4bBdi6Zyr2zWCIWdS9NrcP\r\nFu+P2JW9swkdYJ9Rw7WyBVCQwjMW03TgCTYaf/LVoCmd6o2+a2tXOnObttyU\r\nN9uv+KU9XhDGi/qqFU+CZ+S3fIFmfkB6kRFyuTXkLBbJ+0V/RJRvD3LBFfqu\r\nXsSBgfI32Hx9qjdoy1UUoaCnPxstVnBeNZ6r0kxcNPSEJ7+ePb+0pZzIJVSg\r\nBkOauK6U0tSAS1tHn/lQJ+pMcT3mXUnz1fZl1suThOtXsiTUZtZ3ZNJvDJ8j\r\nj4gAq8HkTWelXBdPqagxg2gLvVcSn7rumIg8BHsqjgHYHJys9VM7GYzzGoNf\r\nq9VhID9sC0XVAZGxbtv22dedyatSG1V8jvzfkPzB4nWejl7bV2FllYeylh7I\r\niUs2rNwAWvBALJ6HNc5iDopL9uqpV96vyFl5an0nOgL80HfYngziTGTFVFUd\r\n/TQS2mX4vECRYBIQyrnfLwCXI6LklBoLHzeHvyMFKsLKeMhpOwABGlBBhVQ0\r\nKGIwWfrpIXqZvN0oNQKe2Pe3mNsZxgCDhKONXCZyjIhNSAUXGOAUSg28gzQ/\r\nVpW2T91JfSzREG+3W+C+qdcaQxyc6wJLccKzVgn0LYH9kkAdnH6HI5kW5T2c\r\n+q9s5T4SHGCyL2IFfmHRuHrEbF8Wu2Iclqg=\r\n=7E5M\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.165_1673677094184_0.23949435192868251"},"_hasShrinkwrap":false},"0.8.1-next.166":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.166","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"9eb47d1147d15f87bf9e6ac8861bede21a2511dc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.166","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-F5hKu17tOJ1CHD67A1IE3Xu3m5GB3YZRm3WpCmaCKBgJDiwfHK0OWct591XAkEI8u/01iAJkQ7YYu3SkaZLCMg==","shasum":"c097a82f81205ce765f20fcbb8c41ef6861821a2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.166.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSPuiixeLaBEJjwki2hnel1ouScQIWPchk7nuqSOQmSwIgNKOGKR2eZ1TvMXI6G+tB8SqBM5jHg5MYg1fZG5Sxg6k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwk3EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4pA/+IHePYm8E67+4bTHSuUuK5YWNg8teNyn1I6rKHB+2eKtJ9W9n\r\nU39ntZSgJ4WTbQ8ryRjx4yDe4tRpOcle+ck+xmAInkDKjaa65Af5TZRAO50q\r\nSk1bvVwFEp1MSlomlK4dgP9JIAiKwYDtT/1+G3Cje0P3xH2DvyJllKVhGdXF\r\n0S2DlDpaRfra41J8sL6Q5nuH6EUc2gHlAeko0LJM25YhuFnZWkOuuk6PAbx9\r\n1Xz7lOxIGKyIN5zZD+VlOP/4DWwzgRlc7W6IUbC3JPxY53iWgtVL3/zjI2O0\r\naPBfx5QP/jcxpep3Xh3pPBm5NjPG9miXr0VLp+DsGn4WFWVzcejEC5C9Hrg9\r\nWToQh3ElmenjCagUFFhZM6oDZZh/iHKNj/SB+yoaaxTfOvtH1qmhJI8QBsWz\r\nr+roi6y9DbBkwicJyV62gfkTekA1gOpe+8fqbf8DzQm2Q6VFBOdwTB0OkLT+\r\nWd560DZPRKhJHp6fjM0+2KHj0f5BViR7OLTKTzk5gsdlo93JZn9LB1FDM/mj\r\nA15H3F0PDGidrDNP84kGq3KCFH32/UGocgawRvU/MKU8Kt//NkDBWtQCrjmJ\r\n64KSq1nBgR2Bi6HlzwqDFPdt0+Ak0Q2q1mtC0LlQqdUYJ9AQ/57lBcO8x5GL\r\nKaEUB6rNX96/EWtABbv03VR3Y3+RzKf6UNY=\r\n=GIUz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.166_1673678275934_0.4412331858057741"},"_hasShrinkwrap":false},"0.8.1-next.167":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.167","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"d6f57b86b07a74e81c3949fa2663e5ab4732760f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.167","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-0RRMw9mUL49oXaNXNCLvhjIpOO7PUh0IlPV4h8dqOUYBva/BuFzHDhwTP1UHvuhcgwiDX9yZ4KhzP9H1uqRjiw==","shasum":"b7ddb6ba197b71ff709b2ed44bef9e7214087e3b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.167.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3Stb3qfBXMk+cxdS0bePz8Grgo59uw5FUexT5T3tk5AiBqCIhPBwBVOaBm13l4XsUgmXRqQbNmImoHkenoII+ATQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwlInACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqECQ/+JrBhjau7GD+UppSJ835sNzGJMx4IFevokIEf1MLqHlMbBfXQ\r\nltLZrmzQkHORssbqKkpgzuNxIeRO3comt59PVNyXu6WV7W8jTiZrJqtiohf4\r\nvKWsulgbSbUXhHoM7PiRE1jkSWkoec20fmR6k8oYdGghjf6P9te0mm75gYBO\r\nkZioUVCZfLiPHK41g2vKWkM0ePi6yoSZKIz2Gy255T105aj4YchBcjH9ehcz\r\nDKEEc7wagT+QFsN60oWUgMmlcDB3UNYs25K1Iy3cW7xuTGPSd7aLrbrghupC\r\nZeIs/7LAgUvzgZFWheEDz5g8wRMVG/ZU1hCSUuFL1Pf0Z16oub0Z7io5LFH+\r\n3Nj/Umj5k4LsGMMf74PtMEj3mWzEMEr7kDFErsBAkd3SvsuzqYZnBaOFRJY2\r\nJTXKn1Ng3xXyrJMr6ZheFSjaeydP6Sgt6yDj/EDavs8B8IZDTBp/UKbF1NTC\r\nV5dkqprbsIjBvVBqoKaK11zWaxNmrvinkgYAYreAhKkOV3OBB7RTNn7vGJaJ\r\nM4/xMtiBMm3ReuMhccpJ1V4QHYU4/+TsEdcJlLYdx8jysDtveMp7Hcd3LGP+\r\nIBPH7miTg+YdlClocaIp/NjJ90XVFcbBXgTL9QVZJtaklZWg9MdHvBQNvwYy\r\nJ/0d72dkNriTS4nbkIBgUlRqv8TKIKzFHhM=\r\n=6e9b\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.167_1673679399178_0.5876916094391604"},"_hasShrinkwrap":false},"0.8.1-next.168":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.168","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b163872e14a43b3566db1413497885cb918b982b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.168","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-oTCxrUsK10WsSqgoiGZJtPzrz4Os2urblcJvcXkfC4tz6HELwtdFynfFC7NoTM2zmF3fhS0KZeFxA3bYwY2SPg==","shasum":"5b50bd754bd6ca0ccb47d233417768a4be7d4486","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.168.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmJJ79RDrXknwBCEms81iSOpGyHzdIBuxZNPIbRsQ78wIhAMvEgcD/jwpTDXwoQqQsP8tYs/S3AMI/+rzpDjq6vPsc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjwlo3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrSDg//R6JU6h03KF9Lssjuu3iMAxoUUAJks/ZGKIMntXqTZtQVHaHH\r\nb4nIaxA3Ak5zJSsN4vy3316pQJjICSOI0mGRyGQaweOXavKfF1xho1zrAZ9V\r\nLrPy5SN+0tM9/RtntGTOezf66q9KqCaxJa0c4ecOA2Ifa6g0N65yN6UyWyz0\r\nzk4pzfatV0XWDBfpce9PHAfPG97Oc+9tlLK4f+Wixf08eOtqn75+pRJE/Rc/\r\nFzlF+IGHL2SmSSSKJYOnJyxKBWNak7j8MiSOHdikRIcfillyZ0w7LdPeK7A8\r\n9vhS6qEUBaHVpHX8c9RxQhVWciqgqeOtTEHbGXMS/SsUHONe9Z2fHBIRxlcb\r\ncQaRpaumvr3ef3hBxPGeP377QUG5zRDNwnPDhF4UdKSiNKtVQ1BDTVqapoXr\r\ngUB9D8Sqd+y+YWITBw0p2f925lVCqRHLgkfnvOD9xGDKQZbO5XM9ZM+9xDPE\r\nVPBLIABs5CZEK2uuvPO/KVUITOd8Ux8oMFPvt4Vz15AfUqrVRO0sbWA9PB2c\r\nI3vAgMFCsL0LFgK26EqhEw7Rin8gQ7JRNR+8lv5mnF7Bcm9JGtkS/At6iSwg\r\nkqdSVcIa1sLV862tUYBYWbU4ReL1yi0/X2ENJkLnVY5gntQlsBC7U3jSdrPd\r\nRnLL07kdfqUaPT8/OrFe6w1w1KYd2cPb0f8=\r\n=cBIx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.168_1673681463369_0.01484920556011704"},"_hasShrinkwrap":false},"0.8.1-next.169":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.169","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3da5bad3a79efc42755e354e86ecedc76a2828eb","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.169","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ztzKl9Plb6bhPMijt7mXlGTjOMNHNcKfox4BXOAz0+BnmwT6EjAfeUw9cWT3vptj1OSr44LFHMv3VPM8fvueow==","shasum":"520ef5b77afc5a380a917a1ff3612d8ffdac192c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.169.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCdMGV42z0M21VjRU0+AtjaQF9ucaXX/3hpBxVahF9YFgIhANA9WrtpSxFXu4OwL/OR3LztUQO5ONv7L9MOENNsPQa7"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw2BHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpB+Q/+OaRADeBjYd/PIF+sxf0VkQhY8Y/2MfHvLFRfvGpmJefzrea/\r\n3GmBuDv/yfydJY2BJ7025r8TQM6PZzdSqHH7V8kq/J7F75WGAEccKRJKLifc\r\njm0pNgbTMppJV/q6B87Ztp/p6ZlfOQ7BxqLOngl4nHv6JQYn42GedgNRK5P4\r\nHe6OB/gVU0XxawaU36cfzc1VWTkL12fmJW7Q8j2rSBdw0NZDod1VwBqcBm5Y\r\n38oOZ018wPyuXCCNkhBX7VGUJVjD85lmC68Jx9FM6Av2Pqm9G26V0SZAX//e\r\nM0PDQJxCibifYiZfAvorbzezQ1xX/U7vVj66kaYc8NPtozOu9gB5rDob2pVd\r\nM9U+fGbsR3WCwGemJ99utvi4LnwTMPlnLr9dOa/4DrGi4Hya553xhyzpyRDL\r\nXxvl7ob14rgMSZTpMxhfTzgNef3hv//y/fCbrSO2ZmLLX1yUqPcYxztviMd1\r\nmDF13dzyhB8HKRN7yjzMAywjLInhHg0df9FVAAkMNDbRA7sbegd6bJTUGl0i\r\n1QGPcWyLDm5D58HAaZH9s0INbOK4hMC/i6O+pt4DloFXiZf11C0Datld3RnM\r\nILU8vwXR1sw32rdsMIK+6btR4swPX4vCZZx/XgeHALKa+dNDCeRtyJjYiHKI\r\nRCR1yLwz5Y1J1a0Y5LPUlyqAL1aFdeGmr0w=\r\n=hvUs\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.169_1673748551512_0.9621582499406249"},"_hasShrinkwrap":false},"0.8.1-unstable.170":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.170","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5d7cd190771aad89620bff9e1e271436e9d78bd3","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.170","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-cx3XHT9iJfwfNKvYFOuHxnDXmX5nBvmcW+QkOLkXNJR55j5lCS706qe+WLRR3l9Gw5nNZpcXMu/zMPWxx5qRBA==","shasum":"4231b86adbb648f6a7e663fa1a74fee99b26f6b8","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.170.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFd9fpa8IAho8jyXewAZ6AEXRDzonAiven5knJ10c2DNAiEAkrZfv5WhdQz1kquE+MtKqvayd860LGkmzvjWjxuQVKk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3JCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrb5Q//c/iRmMHVhFK7g73mYS0Zaqe4ojodgYLxgOEXq+lpIS9DuGYc\r\n8aGHg2up07M2F9kKKePDg3V3GHMVR1qiTza/0/aeWcYHBuK5qAFGfAicmptK\r\nZ0qYMpyKf2Kf1Gpji6/0HV2kmX+cd1CYfl/LAywoQRLkIW/2HwPOdm19lUk4\r\nEvpnVTxXGkBq4q1sUG4Wzy4VEAAAMG4PTCXJxH65FVF8MQ+oYDF37/B3iTf1\r\nNJwiL+TqyJOP1zW+gQWSHotzYLviV4/lvXasVP57WUUiIUsl6Y0wuvk0G71v\r\nYT9G96V3NLkg4j4lzLTRG0iBKmX9Cg67i+J8Kv2dsz1LpYrpD+se99s5Bmtk\r\nNE/zB32feTs1Gc/aVlUO6zdTqTZpJy3HQeJDXQZOmIfGybiHtZlM7/u8d429\r\nze5lQ4gaN1qm9ThgMmIBzcf6xggAkoaMjdlnwDyo0dsI0Lf9gLaVgf5Xis0F\r\n0Yz3jk4U5otdd+oAfCh1Ov9fzgBnY4O9yF9bICKqiCanA+yaTg0RDmE0Kdno\r\nkTghdV1nBfdx+cSIgQ5jKv2l1p73HMVWvfdYScDZLFwPbu1qgkPckEXyFR19\r\ndDlPuRUApFa0PE2cFXd6ZJIEy0C7zXpIx4n0jIZRzdpaE9wrxl89FEzYXF7X\r\nVN82/74J50eD/p1zLLggy0DNpoROpvfXMMM=\r\n=Ec8Q\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.170_1673753154454_0.36694422727439124"},"_hasShrinkwrap":false},"0.8.1-unstable.171":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.171","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"67a8185c5d60a4036e74b412f8e3a1e6720c05ed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.171","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-qIDKovSX042Z693MBjIMOwjOVY6va2k6odMx9A4tKvrcZVLJwU49R9F6yaiyn6c+8FYjPGwH4/JySKcTs7VSgQ==","shasum":"6006337ff4a45dfee5783ee70abd3a0ade4db9be","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.171.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAIkK1d1Ndlyce4Quiq8oCnwoosq17B+5ohp42K1BHK+AiBnq4iYwrVJVADaTW1mNIXonG6d/j6me5tBC1OmcRy31w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3SgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqQ0xAAi75zkcyeD3J3B5kzIYD7QI5cqbH8Fvu5SdVranL7TMHT+UAR\r\njG+yLRzruct8YcIjcVAEN0Yb90rjXKyrAQOFzsdgX6LQYopHKLFUAkUGSYbF\r\ntKlxGidOWh+3mO+pSaxuD/ke/wi/5BDTFz2ati2r6L1xKNfvuMbfu6umnsqz\r\nQ/e/OarplLRB2ZTpBe+DQ7eU3L5hEE8TNnIuYjHJpGed509KecUfK8KwRscF\r\ntAWGcKwhu45H0bi5a1/mqgUuwr+eKwqR23GmQzuhRFFm3xtSCwJOD9btQ0Ap\r\nMa2Mb0jVQDiwg3AciDgAhJEBQmkoOwotJMfaLYO//I19xnJ5uNGCCv1JPdOx\r\nvroC9JKsCVfDOevsxyXIBecD28D1tmjiLYZtayefSUWmTP635G+nbUuUVd1s\r\nULS5n7/tQdLeuKfKV14xM0fpkf4HQs4NYPTiJaGZ94740djAdPtOpeGOOcOk\r\nBNJVrOuTReJRekJudFWbFGjUO1zUD9rwsi3+pwbLAnqYucrgqXdIyFGwJzC8\r\nQnmwNVZG8ge8LwfgRav27U2lIIeprrmE7V+jThZkDf9tlnIav/YozJCSHt8g\r\nQxpqURYYN4ZNjKQR7YQE7PaQ5yfIQmphEr2n8rUGD0yf/u1S84+oHtUCbId1\r\nvCengqtHN4Xy9UlE4MvGslAMPULMT3BeFVM=\r\n=3wsU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.171_1673753760667_0.6637310336091327"},"_hasShrinkwrap":false},"0.8.1-unstable.172":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.172","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b388091cfea0993d0e20f9d61402a7cbbae9b9e4","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.172","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-1kRiekSvorvgoLQE1pJ7A9/f+k3ajBmarYfiR7QGBhB9AyVrXLawSlAXc6O0PnCnWCeUWIE4HsD8Uc+pMmqUXA==","shasum":"61d9ebb73dcd82472111220cbe714fd512433413","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.172.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXtXkfOoeNdxcjhlUmbj4DPsYHcW24xv5Bva1/OWU90wIhAKGrrmGJAfo90W9zo1jEKXrKaIU1yOLpzWsDGUxvbjTB"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw3ofACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEAg//ZmFTQD8PxKH97d+IReivT3s8aDAr/fUfknnWfY4a4IanCl2l\r\nUrZQ5fT4k+y/SUhE96kavSNaAtMRkd36QRK3M1++hZjhsksCs/e+mR1bKprC\r\ncEduYbiCyQ3XGVAjIBv/l3B/1xI6QWyvoaERk11JeS+2RWhQnvUvcV+yZNX8\r\nYPJf3fBOLgcXYlt615H9WC1x/4sctBXBlDF7KGjx/MNWEAcPQ0hhAl/maM0Z\r\n55JuEHd8io/L6AJgTDS5EhcT0GV+L0/khRfO0YyEWBHF/Hh4CHsXEh4/d2DN\r\nqlvTBMZJJST1MDG+ugOiRyq7buq927xA0jCMFMQsmsP07dVootr/onHHn7sc\r\nMqrBuunOz/vdr4IuE0TNNXckhGz0otj/joB0fZQrEmPUN+jdM6Vln81wMgg6\r\nWO+LyeYcUOz40/i6i5r5PANOrCBWAw0fy6qCLAn1ywJ2439WIm8J+4Hsi+l0\r\nMLaW0JY0bHjNzvR0Hi+Du8O9zXQX5gn3nmsF9cCcrkYNe4myxRJ/eM5Q7nca\r\nwBVAPnclVIlHpbPbXm8ogJquaU9vYBWtZHl6XTj5GfeVs/YIYapcqaqSzoGl\r\nb/u1J6H9YpTCkReRlMziKeuNik6G2sRXwKWK94IprkIBrgvhGWPsp9RsbzcL\r\nNYtGZGSYbiT9JEAg7ObN6C83LyU/+lBOi5I=\r\n=W5Jv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.172_1673755167321_0.9665312984021996"},"_hasShrinkwrap":false},"0.8.1-unstable.173":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.173","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"e98ac2b97b3248538b7cd5d05f0c7f639a63feed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.173","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-g6ReTtMUZ4nijtRSz4EK6gToAy/gslAN5m6YkaBYLv7JP6TYHPYR6NVUIl255vFUbq3uFjQ9lXRi5wrfglcW4A==","shasum":"131840333c8ead54e804adbc9952d54cba9031df","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.173.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICOQPlnI8vDL3eWuuK85w/XSbdLj9NizJPo3sHJ+KGY/AiEAyJb97FHM7Ii6F4bTofsv9rNPwApbygNJi5D3+Eezg20="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw4meACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp7TA/9EXnfihGJGSfQzh/h92+dVl9II05VrTy1h5KqHIR9eAxGGbZf\r\ninduD5TKniJqjfI6UgmuSU1Q9tSlQjUheAtavO+J+mQys+DiCTz9K+2QJ18F\r\nCe6TMdc/uXeBPVOqPGDQsBEZuG1HE8TdiCHat8lB5RTxYVdx/eRqYFO6KJpB\r\nKtPHC9L0jwajNlt6eS+4naGB25JdstwuXkOzODv2stZlGUR0+Q9XkdFihu3K\r\nK4YdO5XmwY9l9j9ULQf177N+qi1IQ+/gZpKB7REDEGwD/+cTh0lWUNESX69C\r\nItpZpgfKBB8bDd1yBnviDRmPj7doxNvKEgOF5Zlljnm95X5NivEK8hq0OtnM\r\nPyopu9rm5uRjbQBrwgoGfE79Mqi4qnye9isf7oDOvALIWToJlZwD6oQptbPl\r\nsRZEgwDJcnmHhu5rVb9yuht8eItTFSDTe1pzdVayh1Ujh5wd7bGYtF84cK3Q\r\nj5kSBPgFLqf/9chE39jXDO7zzIG+hWo+hulUe83WTwEpfpeBSz5e5IbTgI51\r\nQZSwomPEBJTbwW89BxZIk2SjEFdlzgPIoyIc7cNzJz6MsF6KyA5hI3iZfp+s\r\nFbQ7R9vfrkG3RgSOyDXH56XsCYJK0y67Qp5bznUiMfmNAX9EsyLR9P/HASPh\r\nXBDSwR8Nv/rr4VVEEFUycGwUjkK5g2mrn+A=\r\n=/OcA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.173_1673759133903_0.5190433404567396"},"_hasShrinkwrap":false},"0.8.1-unstable.174":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.174","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"3070df22e8e979371fbc97bbb088a5e95e50e4dc","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.174","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-ZVGk7j+tsXZnI0pjuSwx05tSLXYYg2unffMzq9nUXTZLwZ3iXhu3zOak40LII7kaOeNUWl0VoeBXKSzzpozOpA==","shasum":"31e4f9a85dba09838f389c20ce0d8a98428e2e01","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.174.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCF4pifTV2LWCXmt5/CMQLvn96YRFhxCmZMcndFtvtQGwIhALWNZaMVi9IpqOOwikw43j+GORl1HWqsPPkrqLNcthMi"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw5OKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqxaw/9GkhM98IY2NCM35e8aB/aN9EWm7THzrUUfXER1klImitsNBrk\r\nwK5IW2GUvw8oqa4vuWfacKFLqud5DIKnmjEohvKfj9xq6m7cs6NXo3vLesXr\r\nNwy1n/T1hoVT60mOh6e4Da0gY/5zF1K5/oAhx8W7hfwurApBpXmU5FB7rkFO\r\nXe4qjuAZfNh94j9LYcRGsG1fuEFMEsceK763KZd5E8y1APcsb1YQReauPb1W\r\nH573c4UkRNhhB9NfTGm7NKc3zOe8S/IhLjTMRw/8YmEHzA32FTlWnWZEqQzo\r\nXG6b60EQLE5IrEq4HtERu9gpPEm6h7B9HoZUR7CtEMUW1P0LG77APFsy+wWD\r\nmGxtkh8VtpFO5W5nF/fXt8D9wBq9Jfx8OnuxEmHJWcx/q9bIzx7Ml9z7z4kg\r\nRzH1G7FoleDrxGXEai8Ip5mqAV8G3BeNNZWVYuPAjqKyENLWZTQF597lLtJh\r\nibuCkNzLJAvKRDpMcrDx5byL6IrRqYfyF2WIphK/jifQAZHmakXc48kph3tg\r\nUtOWPBYDiiZer9DocHHqPz7trcCs7JdC1ekUvgPMl6nhHEOKN3ZHwT17miXM\r\n73QA4+Ro/vcCqfWHkacD5MnmtuKU09ngU8tL3JFuDWHCs8cIflxG2C3onj5x\r\nTD420xlHQZPEASvbHrZv60Arn6MLAyGBkv8=\r\n=Spib\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.174_1673761674686_0.3070207662265434"},"_hasShrinkwrap":false},"0.8.1-unstable.175":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.175","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"e2117feeb7afddfd41b6fab1d755040520c64107","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.175","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-AeZTHJvnvBo0ADmk5qqdUoL7HpbgMjzDrmJjI2DA3Yp1q0IFnNNndzCcByXPVvnxJKsE1afp1O98OCi6JbAu9g==","shasum":"43af6ee9748b1ea96786948a50ebb38dc6a54104","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.175.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCTn8aLUZdbwgOvfo/vsy/8+Fver6YRT8GNmDJdZqK/7QIhAOOUwkqv0dYnyLx7GPtGvq9nQAAZSb7sDJGGBmy6QOpt"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjw7QXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3+RAAiMFvIP25x8Gz2H4qNXmUaKIgbycaxLoJbyikRqhvPn9OS2CU\r\nHaZChrswbSYfPMzw6wF4coTzTRE1BgdMq3lj1S6/jTNwft70QklTzsKcvP9N\r\nLEuIPezxTEqJLw4uP7iDl8h8Ws94AebTF43Tcs5eQABwt7XEfB1tBQD7jIe1\r\nH/HHkLqXY2V9o2ej3F3ldzThXETzVEyvTztwyD7uBmP2U8e4IA9Eentm/GmX\r\nXPPc8EaxX9HYXsmverfiE5ysS4py4Xs0Pg424j7MDdu0d4Ut/hJiy1wHNpCv\r\nh8rUhKhyKiuwWrMspXhLrAB3CMRUDQemS/yIzL3cI2NRa5rsvu5FrOGq908y\r\nKHm/zlXO3pQ4UDlMNaDQ7wTWb1hjUSD6OdRCBr28BcDRei2Y8lzmZn6U2bag\r\n3hRdFwazBf9FrLcjUZca1kttEnQ1eqiuig4bOaj4GzLnuy9rieMvj4w99+aU\r\nst6NhVvG146lWi/wr9z9uxg0ntiy44L8mpHdkNaG7mPZkPyKd2U8qjar08tn\r\nSoPsTEX+w0QnZuULLvUOy0o4INEJAHuMOjxztTyz9ZZ9cPpo7ITBaF8AOCge\r\nK09PytcyP+V5Ni+NPlHk253/cJ5ZXUFR+RRtiZMbaV2xAhQmxLCoEi3/UlMJ\r\nwcBRMqrJPazgRdBVadHI9d4ZYHPNptbqtOk=\r\n=JjaD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.175_1673770007686_0.24691867493470943"},"_hasShrinkwrap":false},"0.8.1-unstable.176":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.176","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f57ae177d5df83d347401dc57aa4a887806e56ea","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.176","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-y6CLlA5detn7hI26KjL7LkMnOUJ8JTL5yqFEKOYT+OtbXwgw+VIISucmFL0L8yGH+VjhhdZjY5sHFggZpe1wnA==","shasum":"fc87348967a2610b4f6acbbe1b8434888655bf96","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.176.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4f/lnZ3r8y17xYFoYw1boWOC1ROZ+CzJS5PNcGLDh2AiA7mXKCNXkcJfdir8LqGzeCilaElUzXI2nfe2EU2yOI1Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxLHKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrBRA/+K2nJRYWsRFns6KFGCXJ7hjCz/PtSQ3rUjQwuXp42PNnOr7oq\r\nYGjKWUyoVsSTkJFj/fHob9qBhzD0jyiaGs/zokY6tVssp97HCPvsHh3pGjvF\r\nY06Otdwmj7akMHeVcf6TfLmMqDEWW7fFhHWLrP/310z5HIQHCyxhtjdHOZmF\r\nQvRs8Q2emRef+k848kM1/hCsSKezre/ZQt2b0NqDH16xW4swkvosysrgeIXi\r\nnNIe63xdyjsr/7ejE/s9DDMOO95U8fPcrnBW0ew/sIPKTg4oqbXbYp2BGLKZ\r\nZ69HvbpOteIeaLJMm8rwBYs4nAie6RIyPfYuDiLqZCVykGg9+WEcl6ipLoK3\r\nA8cILUfySfgMemBwPEntJetWW3mTuUYln1PnVRlgYtdzv652aObAQI5rznx2\r\nlpcTVj4DQqBtX0oRw+mmDYQ/Hwdai1Lz5UtqDl/+KQHG4LmHZ+T3Z5AQhpfd\r\nIiF874kMS56XAt50TmPo+VXySr84ugUVFDWFLFMg+JZhIRgVQ/RgO6ksgzGx\r\nZcRBO7qtNUsy9oCtX8P8f5QIfx4xFAaV6YnBQjO5+EQwFzOnWRv0g34F35hC\r\nJcG1xfGhEmqdJLlzZ9dE4wLjvDMnrbQPoZnIV/GTe+Pz5nUkRVsU3BkNC6cY\r\nbEcYIX+YKoPQVUTaAgRZE/VubtAsqWrEBcQ=\r\n=1mwD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.176_1673834954066_0.30546166377578077"},"_hasShrinkwrap":false},"0.8.1-unstable.177":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.177","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"4d82518653ff456383561c22870856f110976aa0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.177","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-UI0WZZFXXMn+r40An7vToJGmOuM2FCgJ6NWKFiWzc78ANz7MEJbTwtvHkOnW6180ruq58TjZGWQwbHIFJrKXTA==","shasum":"6d13539fa44e5bb0390753f546b7dc5bd3349e72","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.177.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCXJcBWQgjRUiJnf6X3sCXIr1PeEPcBQCZRy2dwtFAPagIhANpZlhcjEwui4ZhFpUkc9umyiIzN0H/VDCXp3x0WMB8w"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxNZRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp8lg/9Hk1SNkkBP1Cw109InpcBg4iM0xnaRxw7PAjQ85+O0tvk7uGf\r\n+V4ljhpyGnz6tIZH+8C9IxxABm5XDMHFhID32pQ2buyDKz6SLwb6dWpmljRt\r\nknVCat5Vlf/xR6HBzVDWwWDvBnMzNEf6f8x60BXSTh6wm9SHWmDAFCRGbQEZ\r\nROwkwDZM3ahttvpVWxlQ6ri3NobddD3VACGYZ2uw4gNklNhF0nVFz9bKj2C7\r\nvA7/9Ne7ZrpBYO2+KtGiWpQ8bzmNhd/EZNemw6B4SjW58X/CeeDjzURxcghW\r\nTpu5hvzuJF5VmSdV4A2+Ir7C8malXCkJpyy76HcmY2LaukzBej5UWS3zVwXn\r\n1uNLHr4YwQps1p0esJ5thalG26hn6fH3SsU9spQ/jP4XhnxgBqmVbJ0X4fnJ\r\no9UMfPHiwKNMSsH2k/1S588lWOunePpqWheFnp/BRF2hvcATlJj8rg5kinXR\r\n75l4S7adg0qonhvDBTguuaTtlghAmsEIKV2gCbdB0I+81J3k9IG72fud4qph\r\nzGVHNaYqsWZj4THkgGQu+3JhhP4ZdChhbU9snLjk458NG5kAnaw6LpUDL6F4\r\n0WRnRGfxyH3eTaQM9OrlOhTfg2k44CGCWKhw5O4Ejb+OGJrpM6H2ZeP5/9la\r\nSyNso3+COQ9KuveUBv6uTTPCH5JiIhzLTIs=\r\n=dEC0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.177_1673844305501_0.23573299198434983"},"_hasShrinkwrap":false},"0.8.1-unstable.178":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.178","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5f183ce655a40332a65480634b356ae8fa4d7a84","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.178","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-aJOsAvgzKNQZiKCrUrQg4t+YtMzZeRNc0m6b6gyOEY6ulQasmdQ04BPUXh1h7oErDEnQjst24nPHgrS+WkEdfQ==","shasum":"8fd6fdd1298aa353386fbc166abe1b8be7b71488","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.178.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEeqfwYImWpztOchnlli+FLqdbjmGSu74LvvmObMzXXOAiATODtrOXTyvlOp/OdlpBxkXV5sTqcXiiYqDkDeuwHYMg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxNntACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqyiA/+MgYX3odaB4o6lV8HP+Spof34TFTBoluan2kroTOHIMWdSmKT\r\ndfGuLrRdVXuOkTOsn3m0PpjRB7epDs6eRBdNYypkDCEuedJZwu17VWrh7eJR\r\ngjK3VfEzbcv+yJoLtMca0HJRUKgD7YGWyMoJObqhYi8yiNa7hBkPeD5MohQF\r\nCRp0HIqbPtRHDqo/Wk10TTyKUwSzKQIycEi81HRYV08ix0FK0WJYHPjq1YkJ\r\nJ05K8oiY4bEv0cBHZ5PQPRyNw+Gvc07cbB9eAywxLd0OFxGUopDbrptAr6W4\r\n1+R4JYzNF19jxXQuPyW/7pWf9tzxxT2DldmBb8LZp4ArLUVAKSIfuCx9D+Ew\r\nE4R9BdmGmBxHCapO1yWQMfkzoXKSo0tvIkTRVJw/9xAz2fICN9tqNZKAlMCN\r\nSdEZmzh4rlXy99mEchKkPAsNBzcZSJCOaqb6fsn2mdznRp9jt2gviyH1PwlT\r\n2XbY9o3mrSDSxrSb4sBmfjpQxeB+91msdxsWrUbZKX5DfqDx0XWqfHtE4K1O\r\n8LL/lYplyA1oUnEv2Nfwed52Rm+eb1i+J1np6CpT1TpJuJiqJuVVJaSmkvLR\r\nlDMoqEA3T5JVACPKp3r3Bay9u0ZOV4wecsm1nsjt+zMY0w3fohxKy3ebCst0\r\nqczy0oTczN0cNpxt60TBgz0aeGdiPxhQRNI=\r\n=MFFD\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.178_1673845228845_0.8602114877707339"},"_hasShrinkwrap":false},"0.8.1-unstable.179":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.179","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"2e97af6eeab2fe0530cd12425fd6eaf72f42a012","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.179","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-Gb33Wd8lS1ZGJsKOBHr5ZGGQvGeFnZ7zzWUgj6hQ/ydgNLTx6muv4zmd67gHtNnGkFSIEe9362VxdB/Fr57Yqw==","shasum":"7061db082ad965d085b20738d7e60c1ec801ed6f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.179.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUwjoBD/uMdNFV4H/o28dTfLloYIbC9fBSsIaw5Vjx7QIhAOXxL1Ssaq+riEz3ab7KqJHry/hHBQTThJHUAPFKkscI"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjyesUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtYQ/9EGaJqbXLJgejgn1kB+olKKN6LxD8NdknsaO1e4Ect0JCjl5N\r\nZ9KDexa1mq5KXm4FapyC0Xd3M8nQcn4Go6CuY8JEhcpGshcZ16nEQXgtzKCI\r\ntpPFBe0CxzuEsoitrO/v9HzqSwbX1mXD/DBmV1Q8S7mdWH7lbXTuOO3qGS8p\r\n4yVv08uXymg6n7/rS1y9mI2CVgg+9noE3IUIaOOGgN66FsSqXL7sdt7mnaho\r\nlRc97jqu+2uPQ6Sick/e6gkGZq3PvPwVqIFh18lJ/PAVFSgsnbAXNBaD5DN8\r\n1yTA6ikqUlr4DXfWKSWYLFtVkNAcXdhp3RjemBKc4Z1LHnCsUsly4MFAAPwb\r\nKLQVDPhgr0ElcXhgk8v/ZoPkXEUcyd1WFeg2SBaNDvb+4tM+UlJn8g5xbuwr\r\n/TuZv9HBpT26kvXuDMqICF9VYxnwDtX6N1bpCp09GnT0unuN/r6xYkdkLFfR\r\nZPVyeEIKGhvwmr7xl5U/jk8YDaAUIuL0PAYxBlW39voUBBLFl1/+xir6hNVE\r\n80QbT/A2xvSHdtZFycnpn5LZTpVsGF2Tk9Ek5uA2NiZRa8d5CtfTEx0zm+DZ\r\nrNtZIsXRJ8AlEMK/Y50jXuN1bVq3GrYVQJ4JigtuBdipq/piVR2NvIrhn0n2\r\nlGk6Z/p2kgEaNZ9mIL2QAjxjkbHwyo9RYDU=\r\n=e6sL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.179_1674177300790_0.868272403602643"},"_hasShrinkwrap":false},"0.8.1-next.179":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.179","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"176cd05cb2412a799a55a460f7983afbef80fa36","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.179","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-eMCEDuq0oorqgo+J4z/D2cWoJr+tLfA0Re3DNjbODjm1rCvCQh+z9nh5yZ6iGaD4vG4uzCHeQ/WwOiKdXqYalQ==","shasum":"2fd77b6843a7588289daf15cf6ae524e6a594faf","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.179.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCogZkCKhI+jzXh+oAtdowfLG9uOibj9bKOZAi6tOSSEQIhAOj2Jonlye2Ctmmn1tNDtHAQhX6A94CKvkwKE0QhlKDq"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj0aB4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoGHQ/6AwCBMdewP86inrE2fWQVgnNfxp5DFc0s+CwZk07VQFOvfJRV\r\nGOSmGXdIowarsNWkXFuMZaZboztrw2mLW8dneMrcToAEKJ6TB2ETEHeMJeHV\r\nNPjvQVF+vtJGvjNMsqpEgnLxUfLWWr+xU39Q9iaYnA3qH1P552pNY+E0CcdH\r\n8oCi66/VcENM8FKuVUi0wuExORddohtV/mFpNoxNj/E72IJX8fCxTSrOsY7M\r\nuEX9/hFnucp8WLsRd54A3if+fw3J/4szqIScY2jz7kIYLEeQTZD0BPP2hn0Q\r\nmi7wjr5qP1DZX0dbL9lgCGmGRVSfrv09ctHkl9CeumZdvmLtI28VH1alEIi1\r\nenKQe9uy0UgUW+nByksTiBAqTpOkE920wJ9ZKdHo4dt7mo09s76U+pVv48m0\r\nNdEKsTx0KrMWZfmL5205QtJ/Xes5NA5Oal/l3qFPgL2Aw+EmMEupOyXLQOUE\r\nWmF1sn6j4DzagaHc7lnR4KdkSnD0mNpWldFLdzLQcMM9wzjTdJfS9+x8/tKT\r\n4kSc+wJmNkJHdi7iFg9nSL+doqCegiXbyD8dgkQalK8CiiXNiQ+VJrcWMO/s\r\npoLxZ4iQqwyuvanjzPRAmZ99IJUDyCfTu41+EIBmlnmSiS5Y/A++VNYbfY8u\r\nh1rpp2+0VFSrO1e0IhcB/oj+Pjh9qOOwfyM=\r\n=mO/e\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.179_1674682488576_0.5755115431495867"},"_hasShrinkwrap":false},"0.8.1-next.190":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.190","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"35cba864cc44acdaa17e4d81f6215282bf80e9ca","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.190","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-YGOX8YHeRs/6oGIYp0+EpAfv4YNQLo3Qo3OgJ693HI2OdeDx3inDwoN5Cy/6KGfV777Rkgzq8Er/D/TrF1749A==","shasum":"4e1e90ecda8bbe7a4777117acd5b300c5e1b392c","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.190.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCiXnGvX7/izbcKnj/qLaWKV4U6PuOFyeq5Als1enyf/gIhAJZ7Ard12EyjDKy/qGGyqqKYuouCX8EvMLz7lvmWd7mk"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7f9+ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqwcw/+Mhg2OOJvt5Tq1d/o+CN9muDH6jrXo22U8qkQAPRusbGNUw+Q\r\n7H/YKd2KwNkqPgnWXr23Us1o5vHorJzkwHLVsrRnt0dZUTRKypWh+hlaL8Zl\r\nj7jUMIyd64U2o1CoD/hTPbj9ef+BYqIB88ubCzAcBQEe/RnoG+FCado+VKNe\r\nKnBIURb/EmsvkhUHUAzQ22BnGvS865O6GzS23CQl7L3yVw8ZxZPBoU1xlLd4\r\nHbbR9bCZe2TpdkuFw8rC45tDjJ3DwQfEYaVB6H/tkxKq9b8wmOAHHBmyuO4r\r\nMh1SDbOP5Gppa/c60snnc2qJbDbMrCcXM8fdz2NZFrGSDmowJyESxuR8N49z\r\nNiLtixkUsJLF5KC/GWMh0MMGwWencq14T5//W67cjvBZi3RgGQXCCf9XkrBB\r\nJgMwwdWulPlEibl+YwWICFIkZZphc3k8kKN1QhdlLg8pcZrRc5GGnb1zR7Ic\r\n/IurNF15sIFHje6VqI9VRcKJIIPBjhux9h2MQk+fZyBWvSlY+/DmvhdZVnT8\r\nhxmvMEOfLebLXt/tXwV9awT3EprX/q4XOPfclOAviwhsFtfw79HdRZDMLQe9\r\nqzpXcDnJKiZ7/4xocVEVqjqZ9niSAXcCNr/3bZyhEeFZxtgQAktw80mxUgjk\r\naxGd3D6lSUtlAe7sI73PEmC92EJeXVn3X2Q=\r\n=UHSN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.190_1676541822735_0.615817000559788"},"_hasShrinkwrap":false},"0.8.1-next.192":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.192","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"7033a2e5a80935335e5ad7989f1c03850270a986","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.192","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-3sn5f4jet3B50w8gTMoJKhWCaHQ8yrIXDxo7QPUCA6KwwhCJIL4Md8qj/kvFNIZZd0JEQgF2qd7FXzfdGpGLjg==","shasum":"da2d9c842986f73f32edd3f64499f74bb5fec17d","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.192.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzLRUP9gB2nMlpvBUsFYzorXRYjNskUZ+qRPFiiey3sgIhALP8E5nVE986aNSgpMJsyqUoAus9/aFoMQyEvShfcsIP"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj76S4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeEhAAlK2qcQSb0fgrTYnd0r6Cm6djeHpPo+Tp3BNl/K0CwQsy77aU\r\nN/MNJIOsUaCz6jMWIz6Dl0AB4ziTzZFajnWB1aivcIdjFGHocUcEaTa8fdqo\r\nIi7ynGSHqUi+3ptkKVp5pzNLWI3Epmr9cI7m6Ufl5dpjKZNBSnWfEFytdmiC\r\nyxlZ9SPxmF4DqPbPGYCTqFeVEN5lCsggoVW/miY4bmVU7UyD44LDEJQvA46d\r\nmWQcgfDargb5rA8Qb/TpXrIuho9UDLwOwVBjSizgITWX84CHcD8FMtRgENb0\r\nCEISV7OPHz0GevB2+YP+h7s507emwU6Lcxd/+gXljwLJX2AzabDQyc+TjaZn\r\nnvm4Rt1urMHNlGf61MqFN7b7HIg8MnF/o7IuBkH/urW8y9IHHzy6NZ7AAOzy\r\nNFRf6nK83rzWgjTl8vfxMGhMK71EKnBEpUSYL7ar21ux3bYQoSxhuYdNsOcS\r\n6+ZdYpXs0w5fvgNrYSxFDFa72ekTAAksV/M8ucQY/x7hyQprUJzFeOkWf2Gi\r\nOwpTWv6hZhOKNlaSXpQgrxiVFAz6N+O778gmvse4s3aI0iBtbj51MXjI6Lmx\r\nks6W0G1t6kxFQGpAL+A9AVH9eKvw4RtKL2frQyRReQsB1q9loVwT30PxCniH\r\nklgVQSc9jx1I9Z2g4M/sz7LaZ9V2GRYWjGA=\r\n=ZqD2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.192_1676649656225_0.3237891665906212"},"_hasShrinkwrap":false},"0.8.1-next.194":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-next.194","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"1db71de2a69c72a14bf393d8093e559554f2ab34","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-next.194","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-/eTaVzUo0jWbVihhfcSzepsmS4BnJhlPnVD18p1LnPcCYY5JvyvxsPusCNHqYvM0G+uNswjoaMT6s9vinB44ZQ==","shasum":"1a3627755f72647986bfb71a29e1def5acd8d591","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-next.194.tgz","fileCount":23,"unpackedSize":32272,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0BPKQZ1AmF2DJsjDQDqlJd+sRLtpsrLB3Bm9pVV9cwQIhAJANpG2RpkmPgQHOirmo0XVYUvj9WK81zotxqYKopafN"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7/nmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqy7Q//W/CFJv6yBbxiHvt0XJISJfT73g+og/zULY1yRQmYxNoNqXSV\r\nZC1eN0KyEdbxEPwfwvs0hvXEy6FbxlgBSz6Qd8+tBSiTnYHfWg3kGrjZPZEP\r\nSWS0RDqX7f5ib/6Cjl6CWsMGEWNwHPSV1kCrQzKxWgYW4Ob6DX2xawQX1IS4\r\nfjHhpGij/DGzcTLsRswEcy6420Z4nGv9+uiGDZ8zlaitOpI7TuYWJWmZbfTI\r\nXZ0GISDehfs1pTGzYngk8qU4L5Ha0asPOgxtQy4Dziin27ghuYpC/WN63eXt\r\n8WwA923E2ZLYlqkvwpZoe0rdhZY8ez8K0lhSlD111Ze5y01tHW+7FYeHG8pi\r\n+8I5/KElw6NTMDsSO074b5hiukjUX4qK0m5gGqamDN/ocpMq1b0KRMFqumiC\r\nHrYcuvqpa3sGDF4vPXftS0ums2LJNw5twIwWG6CP1wIVAJiwkTvwHhXHhDW7\r\nWoKIFVX/vSfuh5jJ5T0aq5kj0BxtAtRGB21zzCGqQk2v4FdmJV8mRrUVFbbz\r\neyaDqdW+B0uTeKA7rqj/NQh6WGJHjgkM1IWkhX1oZTkpeIKgqy9/OSrmUOKl\r\naCrHekBKL8T33DKfJ8zuWobwsLFgbeVfwObAIML8hr85zmamtJXCwp6SIuUd\r\nw7NVxOR3aq9wbgKZnCwura+77GCGBvqialc=\r\n=B841\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-next.194_1676671461838_0.25961386656946095"},"_hasShrinkwrap":false},"0.8.1-unstable.195":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.195","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"926e358ef3eadf19fc3c8f7c9940fe6322c5ff85","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.195","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-1lLKgv/CmhhwnPw9m+lk6XA2MFq35Dfx/vstaI9ZbCwG5Jcy+SKOs+RkPWFMKKPTYMf/Z7gnhlnmdXpEd8cy2A==","shasum":"d5ae3507b880519219371976f238ca781b5633db","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.195.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBs7ytceGrV2PjPFuBk6+1Yn/0N0WU0dq4Tlsc6224A2AiEAz/lKY97R32P8h9hXBmTIdE6Ote9/jY7Ph7YDXYOsvY8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8B7nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1VA/+LBJAqjLfoJMXROc2y5twH96ZEmvbXoDnVytAjpwJ7ZytL/7H\r\nXZBng8lSFACR/tzhR3K4lPQ+9ePohbuP3dCZW0hQIBgLx1yxrwNdNqCesSVT\r\ngEXS59i1n3OXPuTomEcfdGV1VrVCMVgS1we5hTzKw5clUy+RRyDlVknPTaCH\r\noHhJ5M/uLuoy8AkM5GUlOTPZcWgEgMbV9zz4TCbBx4khHnae1DlLGwTOOtmC\r\nG0zfT2mlt2n2W73rTphKVN2mAc2vkZbQw4SRSeNmWjuVyIrjrxWacFQJH8qV\r\nW1siPqyNU0+hR8blfA1j+siE7+bG7eHPnfitdgE2JqKcSOtcaedajcPCJhhI\r\nSL8UNSZC0WbS7189zXjMf8rrw00QpwzsRoECw3Y2wAox7excTfrOXnuMtXM6\r\n5ht45qD2rHAoxStacUm38/X96mRajTJHjqHs39oF2tPSDNQst+29VK8gaUdF\r\nfo+8U3xX/QuBGc1387gMGnGTAcpqeW5sSEcvXfiewIrmwa2+E9/bv9+78y9I\r\ngGSkmGVwZVWJDH+Y4Ust1QxSQ1x5ubNBHrmqj6Y62mcpVIQXNpPWmlPDVcDk\r\nmPNna18P176yQGu5i2His2ncAbddZvZuGHeTQ+ir043H8vYsqdyISNHL6UZd\r\n9ywCyTGdjqLpY/5HUIiIP0Vd8b12H5J+VoU=\r\n=tptY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.195_1676680935425_0.36406036065127956"},"_hasShrinkwrap":false},"0.8.1-unstable.198":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.198","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"cd7ce41993a9558adccb4f960643151bd7523c4f","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.198","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-KpnwQLZrvPPs07Oska7Ocg9KF4uQdLYPQCa6prtjOdd1T12c1Up1rvygRD/sUGEO0ZQK5dBqolBRFomCHUFkiA==","shasum":"6654698a53d4873d3df0b7524b87f2c5b409a7eb","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.198.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDDDMbmd57JJyl9OtBDcIR7/QR+Lf5niWgkRFZWaVrNtwIhAJCIdTRC6nAgWlpb43lRw4LNxZnDWjpNtmbr3IgrExTS"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8D9sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqScw//UR+itsmd28rw2KMH02Yb7O2j3q6yBTAAyaDeCY0fFvI9+oIU\r\n+o68OXJZpwhihImt2IpzbamWoCMyBcR3mSzOF8oopa2+57qCRJP6OyGkJ9yS\r\ncq5TCSYW6rKQoMd1fSxN+PY+WtnWQFdqaWpr0f3RPMXaeF26nkSM4dVZjBnS\r\nl+HGrY3Z7qa6ZDMuIB7fbs2IEqxyf7auUJY5YKCWBppaNgbG10AT/7JKArGg\r\nITytXJyo+6ImazMq31Id63F3gi3febFaERPFEQyyTmqnkGJdDDL9Ic7ODjk4\r\niszGu7XLFRTkMTF34C6QqBuAl4r2uFtE7inqWNY3ofH1h7T/frR1NAzgBG17\r\nxcT5tnjpHopKuzH0S4dNGJIB6gKP/Zdgcfz4bh4n3nnknOF3isDpreLIKzjz\r\n0IDhFPMzHQb+dSvftdP/zRJ6fM7jqKKfH1Xpzz2hbCI0VsdkNCcPiVY48kML\r\nmIkNPc+TvIFswo098dh9+Er6U1XHezeGdcH0Jp24ue4oxPtM0j1cmHZvp92n\r\ntNG5TOHahas3Z/j8D7s72+1S39EoG1uPkOzdkeNKAkqpA+EFxaGqNvv5+rKo\r\n5+OsxJ0BUA6mUYGZ3TO1nsWN2ayhakTLqnd08r1Uy3BBriiJW6VA7hHf9A6O\r\n0vmbmqJAWQvCfFN7dRfWq6bhreMeWFC0OSA=\r\n=2Ri+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.198_1676689260328_0.1480638053304688"},"_hasShrinkwrap":false},"0.8.1-unstable.200":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.200","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"559efe254d9b5780b8cd10ca8e70875c3c835ca0","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.200","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-2vGsAJtSEuSkaSjhjL8lzJvnBQKz6hNrEMc1KYBYDC+dFveny7lAKQfH3y9zGvHxy1uh6DoV4G5oHX+uZiwTpg==","shasum":"9a7b5e28acc0d9b7a1d48580b064d7d05b001f69","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.200.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEitPRWQwiOBMwKn0/KKwKrTlffNZiXCYDlTFkrPqe3kAiAd9kFkHCChKd3HH9HlbXjAImp9YUVrd+XeILUE0raCxw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8M+tACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmot/w/6Az+IoQQl3ivEXI2/3bMl0XW+qZr55bWQWlkTknYHdzC3+27p\r\nzwGpvyFf5781rmYv8WRwukIIvrwDy9Wnr0b5nzHPNHYs443P8suBx/zQyMwn\r\n+FWjiOgYIYLuo97/t/jhgNgLo/83tQK9eyTwLEmh8RrNUWlmr2yK/TtxVVQk\r\n+j85ljV0/Fd+Is7fFKxY3KN9s6wvnHEXryx8c31QNYtyEhAYg2urqXsbDelx\r\nSgFq3XF5oDfCDhaT6gQzmcDe4CrmTGtX4DiStvlA/lAUDtgi7PlLAknq9+FL\r\ncPhhhXmVv4vy96fvdm2o9XX+zDo0QEmhV2GICkdYlZVKo6UdOfs+IsKzlM1v\r\nsSU+oqdIVCFAVM9zZToKDStOVx/CERttVzjU5pY+8oyFn5P+n42x5iUtS0Ov\r\nxMUymttMO7GHiYC/ufTs7BSvIw0eOVavwTNZ942iYWNeGr0XTK0TJcEazDCb\r\n97+Wgf/nMGApn+a4LSi9TeupScEDcHT42xhm4py+FGkVRw2EJAKS959fbRKQ\r\nndZGDnxbAMOI2fg+gmsUqclhTRDEwLMARUO/cyH/hnmlnz6YiY/Y97kWpO1p\r\nPwYi35yBxqNyqg6d/vDIBE0Xh7Z/+8BMWiGDw1M2aZ1QqkDz7LTG2vEtaVh6\r\nT2hhWnNtWh5K0lF0kIaP/C48kV+RQ9O8Yak=\r\n=9jpd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.200_1676726189721_0.16518021461261712"},"_hasShrinkwrap":false},"0.8.1-unstable.201":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.201","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f04345b97ff9a78a3dff096599f0b675b3239a3e","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.201","_nodeVersion":"16.19.0","_npmVersion":"lerna/4.0.0/node@v16.19.0+x64 (linux)","dist":{"integrity":"sha512-3tLYQqxV/NTOPQ5FcptnmhgOnSKprZB/5nT0zrAdWQNRHF91WwnEL4k/vAnfthhfe4WdcDCvRzOC3LnZQtO13A==","shasum":"78d10aaf1155726b24b527bca1cc23d956cd9fac","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.201.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAY+Vh4iZwnWxsX+6ROHnBRs1IREoq3G6bTKj7xZ+zVOAiBn6o150u//OogftKUePO+slSYAPMABO3C01r71Qp/2UQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8NsJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoESw/8CjiaCcG3bGB57zgeLzX/+9+UulFrzLLFpy5dd3Ebdh4UfuUj\r\nwMSWld6imqYcQS0sI5fhr/LcNe64isFoVGpixhBG2b5QMJMk4VEFsmH4tGeC\r\nrASwhX8upDPnvcZ/uENmF+9epRLrdB02xLlk2UdLvMSf7diFp4xX2b8BnhDA\r\nZ3yS37yDPLLtloArw31WGcEm9ZT2lrCT2CSS7saXgbQYoqLodwQbXPdJDSlQ\r\n83RkZQh68WGawbJV/HuCqSRz0lpZokFMGqp7UVRPmsJ40v2HPJoisv527X+l\r\nswjnMJ1XnTZQ600/vNdarwe38atjgNsRLZfPZsZaweNHoWQdCakcAxkwvGiG\r\nZWQ9ZJ0sXRbsdKFWpkVBwUsDDYsldvBj1TnzFcwagDrP06Y4I+ThFT9Ux1hw\r\nK3WfbrFd96qMWKDkETy9nCsAynUzKxLl0HXpt1rXYE9WvNeH4O44BlBQ5lpu\r\n5nkaKjkecMXk/6/GQsocUdyTmRPw8ac5AqkjZ8oeW10+970sUa1nPazEdiAm\r\nBD9SAdfkk7ZM8ulFNRROGfC7FSNGBPmUb++SPPvnKJtG12BFiOOdu9+IkXOj\r\nWHwQqTmnsiRWE3IF6dqrtt8vxBTNc2uOV4ISpQbdccLpamTxwLgw/iJUFYXY\r\nEMZ3p+Y0aYnRPWYvknsLj6tK6TEhZ9vrVpM=\r\n=a6BS\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.201_1676729097585_0.6674850221569211"},"_hasShrinkwrap":false},"0.8.1-unstable.203":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.203","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"129b66383752e05ab3067e459bff591a07aac690","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.203","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-icD1Es7xdrlSTl+wT9AM5T1tA7TRM7tK/QM7yPnZbadIfbzYsa3A8vuhed9SSa7lhJ2LuskhjE4OlzhdPVsTvQ==","shasum":"54c4bcb13db3f132b57ed3eb3d69c193a55c68f2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.203.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHnoO1y0LVRfbjbeqi9uHEPgGJ+5elBM0BxNtwmPDnRhAiA/dPIUuv5+GhmfJjrL8xNzvhC2mXEs5A/eZqmEjU3pzw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8VY3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqIbA//d7jpKaXwF7X6WlO6wvKXRvuzV01eHJD6aL8O4QYQpFen17Rl\r\nW46HRgVtN8PtLvnjAlR1wFfHE4Nncj6VwDboPqIvXXysRbOk5k9wv+Ukk40c\r\n+kDWIjcUG5AM3hl2a5Pi5TIt1e6KJb4hFyExjMdkwvRX8dxMpVS7uLWrSRnw\r\nQ32amYkIBgPr+Z9WZsaz0beVoLpa+65teXV50qyGjKTbVTHVOOYV3ClICNVZ\r\nw4BcoCOO4ba5ZRlAfzJXCPJRho4bBQ6hD5lSLxhae5nQodlyfGKAldYGqekF\r\nFAPZcH4Uuv3SBJzsDWpI0Ym40DfLmXQuXt0iU1Y8DK93l51ttnMPc/1iDyi/\r\nvWuClnDW10shwjDuZMcrgq+7aYh0Vxiww3Xa1cFzX02oXyDd9pJnmkbXuvtr\r\n4vKTc0lEWf8SHVqgvfGxokE97ObNunabWlnWCW5w2oZTClUl4C9b+x9Mkta8\r\nxBSv7BvD7t735JDVH7JgUYbkGLQl1aKKHyA+D5MRmgCGv+DW4rdwKjYvQDdn\r\nk6b31xYaWI9+siBiKI9kMYAEMMJUsNXpLLpfD/MA6hSP/a4j1yaGVQc1ltLa\r\nLX3x91QAJpieotT7qaQKR4btfNoM+ACDIVZK1c4PsvW9ELdNPHSUh2a/QuQq\r\nU8LUPoELTefAlOzreW/dUxlOlnPjOKOtjSw=\r\n=2fDz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.203_1676760630982_0.9200739134955158"},"_hasShrinkwrap":false},"0.8.1-unstable.206":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.206","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"61712f427df2d8f61f72d1e1887f1fed095f56e1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.206","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-J6hUtKvftHHO2YQkxVU8cfwukINg5spta9AN+kv5sqcX7FhPXNQEKW1aa0WR74qpLrbG/Dx7APIuJbh8cXes+g==","shasum":"d1f11fbbe4d830c2cd4797b094e7249f9a580b5b","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.206.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEfv9xXB+WrKFqxfPbHBGHU4HTaNFmohuHX7B0sm/eI0AiAvEL07jXPfwt+zJibHNN1TkkkcJmHYw58VdDcrFo893g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9CK0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrW8g/+L1GcstIWcUHH4tUZa6NlTjOxMrAZkrzKAbWFKBYQacXIVxPE\r\n6BzyYLbGJjclr8CBdkxsTS9umeSUiL4BYfBZOXITEqqCaM7L5yxDeqwckzYW\r\nreW1QKqN3G3VzIabiJW1N51PDocEnA9Xm1Avot8iOSyALAnSR3nXvC8/jjj1\r\nNFln3YtqeUEuXmu+mqG1w/DH8oiIJ8+Wy1rJp5O+WAV3M3u7gkZLqWwzBONq\r\n/UE8sXmWvmrS0ZqW/J7iWn17WVhStmGwZikrgD4KxjSJUEef8Rnw70RUwvcE\r\ny0yPFSQcXIgWHvibYWEkw4ik7bZ8u+ZojpjXSi7LTqId0vyeKv2glO+H/+U9\r\nzdc6vCU7p//Jkaf6FhfLyp1QtAycS3tpjr8FDVyfrEgxpFEixxX4ojhXwLJ+\r\nsgAnK6YOLj5MqoXUZ586DPVZn3/JQ1YgDSD3OI2sEeCiB1J/43vEgHuF3/gF\r\nwDI9KQTCiLfSJQGzJTV81/asTQy3kc0II7zlHTsOY8eCqN+Jjy3rFPyQjuin\r\n9DONBJNdNF7DIqEvqlmRQM9H8KSKGDAmuO2fGR1L6JTzatImHm7NfbxByToC\r\nPLEwa/GBViI1RUL1wN0p/AmHoYF9cHx3uhP/oNdMLpniTNRrXFaf/Tp1J49v\r\nA5CVf4XL7xJAoN1/WQJL9NY3oLw/l+UTuaU=\r\n=62Zn\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.206_1676944052204_0.14837147031738707"},"_hasShrinkwrap":false},"0.8.1-unstable.207":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.207","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"8b4f22ec199a2b9fcb297c705edfa4e3dd1be7a8","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.207","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-2ha+8qq8dlKPTidGc1wCohtgyA6TPwjlMX1ELFJvhYoQQ+Cngvvyk4BDRQuF7lVBUWwRRxyJAZT7SwZOFG8npQ==","shasum":"658cf43880a566bc4fb4aeb3c795d3ed06f43ec6","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.207.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHKJ8KnsgKiXFSIhEyAgZZvQzAtyvdgQdnBfKiQZVrN/AiEAh4OLDmnzPlHF8RASU8T8HdRNB7oFTZYezc1tf/rKtGc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9Cd0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQzg//TXVpF/TF/+MSvrIxpOquqilbcFuOpW6jfRNQjFHXsT/HafX1\r\njGs/1SH/uVAejtJ54ql7mn4CO5Kz5gAL8yG8XrWevDftCOQaTWgsQFymbonU\r\n3YLya+gu0Ixu7OcgOqw8X9rEW3iE/+BTsSNOQ8Bn9im8wuM8oKdxg/215IbD\r\nI+ff9lEvV3NBSaDrWHN7aqBznnMjVyi6yCoZq7yzF0q7aRCdeYrorkoVdk9U\r\nwBqFr9gM7jZFFVPBnOds4bzxOWyUB1bqZrSF9qa6TXD1Jm/sc+TIz35ljxkO\r\nvqxESCxn17C8aP1Blix8gqSOB4v1kWfD3Wdf7Th3FP2ikl4OzI57aFATpNrZ\r\nlVTpTR3vk/zQZLBKG664YNBISEZttnkifIjiyvlJq6+/cD6eQIEQu2WSA0U5\r\nF/hvfpDei5W3NFH8a9FkbfG7vVPPaCSGU29PVZIDjOYx/M7gefXUfN5pR3yB\r\n76kAOPbddwfU+QrbX1PQHi41au9eLrFMI8y+1CRAVFPH0iEDlfub4nNfWb+2\r\ngifL7RRE+mP1dOtIpl5K76FM86cSzoITcNiAkSgMTJiVl7LPReNbLF4rkJ1B\r\noHwSoGOyJNWUptphnuEejyOa/sCx2JT9QLcFBeN6ogRCM1FjyArnYcN+h7A3\r\n4IGKhmOLtZAnRyZ+w6WQASldvOhEHlN/sgs=\r\n=IPjQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.207_1676945268166_0.9900546296594177"},"_hasShrinkwrap":false},"0.8.1-unstable.208":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.208","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"2beea04a6604d82b12ecbc11e68a9f41775c22ed","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.208","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-s1kqamtpIt00T/l2sQZazAAU84I3H1WSBmlKyH31VBTBN3cfhfEiZLFw9oos8xbbLkGbGWVSjWk4BLIjIvoe5A==","shasum":"e7884b0edfac7bf8bb1bafa06adc656ea7498044","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.208.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1YRuXQ8/IE57yLrErmOU4bvJJF9awA1gS9LGotTU+pAiB6aeUibBKr0HLKX9nayEDeKxdHPEgymJAvimX/lvNefw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9YtrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqCEg//VQymvgM1DOewIaD/7JuWRxG+auRXwu4GC1DiGe/B6eufG7J3\r\nGpRR0T4R43nLrpPHtmNt2EPRSDWiUrcZrh7dZiFDZM3bUlO3EVMHXYFiQ7s8\r\nRkx3wGLwoLmQpEWHy+9O/xp/b26UHJOpjl6T7zAaxyxsNPHlVMR2lCm3IVbE\r\nWUApWYvqnMUIYq392vPe5D3tp1ETHEGxU8CVtrkGZxwFR9u6UWRffMoHAHCB\r\nGuWXLqoCZZtPufaAEKXemJi/l/JvGWSf+flpySoxy2V9l4ivRmBiYjlcKXrf\r\nOegiD0c2p/nGZyF5Da4WMs2M6UCWEk21+rrXjXfJSCIcDJJo2Z3CiPrkVeus\r\nll1Njv8RKNv52PylFxmky54rs5TiAfK9wtQR9SH0netFTnRXT3UdTH4DTx9N\r\nynbxAFN0i/Jc5rrmIwuzPromEOGHKDTnUwltvOansURIsw5KiLdEljY0uWTu\r\nECovv7bkLVFKBSW69Bij9gCuLNlk5JDZtxDXgMicj1I61kbIVdzGRn5gl5oS\r\nhHqyIPiDE+tPmsRvNdANq2F0Z25DaQYdnD2C9JmulvVEd3szDxo953LLb3Ic\r\ns1y1I+MCG3jBJVkFfkqm5rZ/H5kAfoMc7oembUCC4ubMXDOr8/ANdoAjzH9Y\r\nzqv2aivljsjyECiMYY+7sfSOYawSkz+fxE0=\r\n=CudP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.208_1677036395408_0.14043179873137235"},"_hasShrinkwrap":false},"0.8.1-unstable.209":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.209","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"b9b4c2a81e92d8d9fff64cd652125f521d8d5cee","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.209","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-1gP3goYB3KOPrzVHpbu7nWo5fatMFQYX6ryqtkzI2O/iMiw7ImSEIwdRj0UOKBMRIkNIeR+OVkiuRPjnRGjQwg==","shasum":"8a2daf6ff1a796b222eaa4a07b3602ecfd599892","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.209.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZryAtR52zVZnjT+PHFxgEJCGPz9+IOpvIYlTHcR5ONAIgU7NcG9/i2F2Q7SwirWeRUdFoetgjyXlYGZNEK66tP2o="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9m8YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNZw/9HIcyQHPWLX9jryLtAynlEhKj2WUunBeAYafyKmjmSP26aMzO\r\naRoQHGNgeJv8cEvHVHi8ERjY9+GOY8KzRs3OEHQ5wTGpZL2bMuYbkFHIBhzv\r\n9vvuSNiAnVa1613wKyrxTbYVUvJSiCinLg3g/QE6Rt9idi/lIic0Ex3Zbgno\r\n8QwMVwaZ163om9lrG+9SagqfcWva/1EeBCN70StKAYWPYD6r33JEnE5ZZbrw\r\negGZ1ThC6ghFXR1xfa1N2n/Rr5OHJpm80NHjoH8/iQmwTy5xbp7Rk+stFquI\r\nCGMBqkf56IoWXbq4QLSGCTZ3ePiE1+yNozD0IqS6Ot1wifPfv54fqR/j0YsT\r\n35f85J3vD1xoGjU5R1ToyjuXiBuaoXTlO6IMTR7pimcQz9ODNfHhtcaKINVq\r\nJ2o8OHPBj5SlM0VcVfeah7f2SLWKrMKrokkFC6C07HiahL3b9tNEMROVuw1C\r\nkImZUMTZ3k11zu4MpXlgrTSirsTJ6Ff1YDzaghTGuvJw5OARY89Cm5FfAFdR\r\nuAmtJJpy7463eX1b0OHTtS8vDSnKPGcqbp8U1tRXDIIesrrXOVl+iqVvGJhr\r\nR2fmPTGJzFr2OQoEJJCU7dLZjuIrlhdo+wjktTBDmY+xD7oIyshcPwF0DP8G\r\njfkRXlTJRj+cmeG6hUSqP0YKfIG4VY4pooo=\r\n=UB98\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.209_1677094680556_0.042936986654324105"},"_hasShrinkwrap":false},"0.8.1-unstable.210":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.210","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"482d1191078fd53a9bd5f8413a2bab93cd8ae60b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.210","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-LfsxBzOXdVYrqsqJL696r4ZepHrlD9Na6/O2wTvu5Qr3CNGNT5oKyQiOqQ8GZQRNkM3nf+eHm1e+tXDShUxAOQ==","shasum":"53625c1f653eef938dc9570b4c112e0b05bbad1f","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.210.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAbkeDz1rAFWnnpxmJV3Zwn0kCIdXtOttKG0lu3Gy79RAiEAtaUjHTHAdpGJlnl/eAnFiJJIGZsjtluQ1uevSTaopgc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9qhcACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqN5A//Wt7KT8ETwepYSV2mIKOq+/4CmlQmn2jIbffogxqWqjba/G1f\r\njWr8supKAIG9CNKI8M7BrQGP9zefBdRJzKpqULZSqfzg0mi6VJ3sCbHaKGNE\r\nH8MDWHloEtd+adJu5xwpeSAwpIXyI7RSUbFrg+ZfaUHHq/lGvKqsxCfQXbIs\r\nu/haR3HhX/PP8VPtrJrg+Y8feVQQ4sORHI2StefB47f9hdtPf7TDpx35XLXy\r\nryrzu9lIFZPrrSPyYuI97vmDiNhVu/9Lm8mt31s9YYMCyzw/TvfgkDYUhdf4\r\nU/bJxKkGfClh0gF3e2pdEOwkPzdMrz98Stgf+4s32R19GIE3CPngr/HJSWNd\r\npTdMWZQE3ljCrlBTtAn5fOB1r/f/QG1LUMZedh5kqQcbO8MLGoSDQ/k/EFY+\r\nCknv+yUWP3wD/bpXmpF4kdsZacmNlk/yrGZLYFr/jb0W/RcZ1EyqvnC1tIKb\r\nXCXqITesEpPnfSG0gGgmXH/FJ6hI6Y+raBmYfvoaqwUysrLFnQ64dUCAtUJp\r\naLB3GOj7FC+V/PleIMMFpfG5+HKgDIUIlEcG+VKFyTFjH8Vw695izBU0+XSh\r\nZJAXgGCio+9Cd/Jf/g/+F4U6tvXA9K8wob+uMR5YXJaXicRTu/OcskWP+Kq2\r\nocvaocp+/dRY8r6zJobR6ZydwqkwHqFaEjI=\r\n=fabf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.210_1677109340562_0.4574970106863827"},"_hasShrinkwrap":false},"0.8.1-unstable.211":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.211","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"fd0012a9ab01e5eade331e849f0de1d0047643ec","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.211","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-Cq92xs3WMPqWxBa0p2sxbDqXOwJoSf3UkrkJAEIAfzjyA0+5U3T1B18X1MwAFlLB/faJVXob+DmgoZth7vDWpA==","shasum":"6b56bd5f445ee809ce1386ef2c74bb68e7ea0351","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.211.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCw2es1x/HvkVK10DpILDRxSLV6dTsyQCvzkIcDfrIo/wIgJdx/OGuZIL9Ba1ON2hOvU6k26WjAfGEhdox6ikTgmjU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9rAkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrL+g/9HGK2SUavdSQl8Jnwwx9PNoKoFspevQXHUOACjYiA3p8b42m9\r\nsK2bAiWW+NicoYFrlZ+xxMcbIZHqsYPtmEdW2eAfa3sy4LAdwJCf9fFNGq4o\r\nhLFU/3OFWOGgIrGe1M3qDai8bgqwQ0Dz9fcViwjDquAhBhMzoVK+NPO9voCx\r\n9f2CR0AkcWa2UPuhBHfIB92RQxfMDz96sKcr2hYdnTVaFv3eqq8dZ+ZRtTAe\r\npvaQRv8sC9KtWx8FEDvDUTfcCJdzmub0vlQFEnS/Kydb/BqI7sxPHcWH6Jto\r\nVNoeWqENWm8zvAfjbOyrVeE0fgVCob/GuUixpCIfvb4BBwX1dDg0I6/JXF4x\r\n0ike5XfUgqnMT2ZX1Os3ssUrM/hxZJBfid6uoW2/zQlu9fijV9SfyzJZyuzr\r\nq/cA3Dd7zsivbqCNew1mcfMWI3qzWnWQRLj9ioc0iOybJETk5Xz1X12XPhdd\r\nlSfoFFHarWCy1pulfKsrGjDnDiTDM7J2d5sWdYvp6B5Fpx2CeZUyVJj28fEr\r\nFIR91gH03KjvTu/IVuL+JqMhHk5C2HBZmZ1RJCsYfTHUq98sfKyY5Kj7MtI5\r\nq+l6qF+i59IOuoGMHdO22I9VrfmwMoFzmxvWA9wby2b8Ov6Esns3dO9aJxdi\r\nAJhS9yvYW6YuDyEu+LkbK7IzeVW+XTVkqlc=\r\n=RHCp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.211_1677111332693_0.05621566789603594"},"_hasShrinkwrap":false},"0.8.1-unstable.212":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.212","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"acb75ffdad63691167cbdaa2385b8d1e302f757b","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.212","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-khJKCLNdR2O66GX+fhzORMMIEPiicl0+7ONn7aOAc8n4L7922b5eaMcGeXSE5Nq4TgQoQow/UeSSdpnFMQOZ9Q==","shasum":"ad4ae1c386438551d4c2b9ccc438c93992db79b1","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.212.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhBx+HenN1RiSMvmYXlrpCmKq4QVjVEq2Fhc57hFwmfwIgLkuYChZZMwnfp7y7btz0n969ViFk0qJTLSpEnaP7IJw="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9sUPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq8nQ/+OlGkdixuTCGxrdjaWr+cqYym2l+SPeWgES2VG67mXAh3JBrf\r\nhnX5toNiYDqxjg0BgNVejg//0sV6/traaX+l5CPNeiAk5bQlDOZbatclJxCH\r\nLBfmM3ThuY9BHH0zVxUzCXeLnDj3+II9Benk7V8DPMSWxwS20UHVWl7CCMb3\r\nKncRW2d/wsmnvnptlY58Fho/Si52Z3kvqZXM81swuilKPz/KNeN90iUosmrE\r\nkSKcu+7sePxHBQIbjn6FLbLRAx34b6B8qrAYT8JYs1lVIYFYAfesIH5dS9Ix\r\n/OcI08qHILZML8tmwUmO1prdwvasDkvXHxZFJHOyrntQdO+bxbSBJPvzpM2J\r\nbjKs9tCckMxnFDxHN+SqZXvtenVbgpgnIiZUeCe1IuSAULUVgAPp6p6U/nf0\r\n4lEh2oJz9nG2FcUklx/w9VIMjZw+mmwjy5ODs2G/iAm4rY2FuSCbmX+ydAFd\r\ntBFwjEQmWpHB6VYAyU0et2yq13dHO+lvGf8FIlFPaMnSq4NXCGSwkfHrjAIk\r\nVRbZv2JtL6i8BiSTfltSTeA8tPEf6BIm9Z0R5f4ZcOaVyTh+fF4sRWTcQM3x\r\nCO4lIqG+GPCU/KI8dd51i7hqvHbygkaWuSmhCU7iSVKlK6qoavpRYjv1FDe6\r\n4r2MoeXuHar+BmMgPMKzM03WWehMg9Q1684=\r\n=MQqo\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.212_1677116687280_0.6740564384004155"},"_hasShrinkwrap":false},"0.8.1-unstable.213":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.213","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"beb99bd2861034dd6e739e18b6863118a7af44e9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.213","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-OAtXVchf0G8lAbdkOjjy3abNSlVGxGfA+eIMbfjRgAsCHW3cGL4Uv/PblnZIF/kdhEGAfNuj+BhXYd3r3ZL9gA==","shasum":"5804fa9902a31f881c0958a3ba6b1aae829309f2","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.213.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm7nQHOaYI/SG89Ql8Q45GMLC5qSKohE4VSKYR7D7v8wIhAJCQ2lVCKx0dcAHSAfk8Q2AABJBovDIyGgMvyGFMCA8Q"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9svMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoMmg//Z6tGoe+wpNQBHHVJhqnjxX75KmklqcYB5qZLc5EXkCf4fVrC\r\nLwWJ47nQ5ovJ9U9pPskKPOhae5ladqSbgUI4WKctDVqZYzCQYvOZJGXBHmRO\r\n+KI4BNe/C41CXWp4F6cGMu1AAD9ZtJyxFgjTW10CnymC9dTv0eW7Vk2R3Uqs\r\n8Mgb292chyHPWCudb5hkk2Lqiqdj7jKp43JWcrHAPcNffpLQcdJH31DU/dAd\r\nKqxh1FpMbJWQqlDWVqPhEh78mzGMgjOLO78GrCKq3zVkpZ/taMQe9wmYogBE\r\n6rh8vKh28NqO4/AlyFX3hvJUhS9uyr4pkxyb072y7r5SZFH0xzPQZZzq6JYL\r\nc1S+V6svd9M4H5MulIBz8Z4ONHmnGK934+T6wQYxbV33SY/ukD9/4/mgwnWn\r\nIEx1hqO03e9gAk1t8K34zI4/VVgWliO32fYiayPXqBzsbovhnMUObfzVyOuU\r\n+Fv+pTVTXH8MhC521xo/enR8yZewLlhV8ARaLDsygJbKMfDrMSwnf+ln0Q3H\r\nViYpi+ClJVDGPbm3jgNtNJ2w4TFkRVU8fADtLO7CHfWpKNH/5BCA1MkXNjAO\r\nLW4X8C9RdddHt8FZupLEosyPpYMgWZDSIzYnj7K4coQmr8QjJUeAATVW9iCv\r\n7Mu/ujep2kKLPbnv72mWR8GZJPFzl16z+cQ=\r\n=/FzJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.213_1677118411844_0.9208109683311119"},"_hasShrinkwrap":false},"0.8.1-unstable.215":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.215","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"f76cceb2244a237570dbe8e97056362e842a55e6","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.215","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-yuD7rcDTqdT/1GZSWEVQzOkTSeVHAWlLz61Z0moORox+x8+KWgR/KuPvzCyO725g+iK/5NH2drvqkm5XNYIDOA==","shasum":"712f50e0b5697d777c408a0b586be588fdef7dcd","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.215.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcqJYrI3egG0dvbTMTOd5gCxsptObzKfU+MEh/Hg0oagIhAKnZs91XTUL2G+FSQJ3W8ghiW6E07frAA1yQOLJ/0X6D"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9791ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYow//fUv+VYnlbyTzOgHX7j0pgDcKEWfERZfK1imzOkBQRo6UZrWO\r\nGpLVgqeBoRwB9D3eNb9GWzlm4xpNK9VYythC2wtAfBoc2MKvlBl7nS6zjnIj\r\nbnf+ALC6ZnMXovb3TcUQMVW7odhXi8XI6D/XRiOm+MzhapCyuPrnEyi40Rbu\r\nLFHJYiDAz2ImX2CKdJRjIfg5tyXbcpqdvULnd+4zqD/Czcg6NvwkuA5m5fSN\r\n7mka9AWOVasWeodWuekB3TB0821WbPapkSGA4Jtr4cf4R37W8SWp1axLSUHc\r\nSF+kBa1XSnrld+cWqtnx5CYNYqrVLNM5FVrNmEF3/Dchsx5SvuNuEbapEM2c\r\nXy1gZet+H692A7eGbnXQI/JuZxpx2YOayjROE5izQC3fvWXGDBW4J+hy2Ken\r\neeiWNpxB0rwMm81bY7Iw+GkXe1NoJxxtvzK1N9bMEixEI/GE8PlWGyRZ14Cj\r\n/WB75/PR0Cl04dVdR43PrY6mX+rDO1Bhu25qShRFPW7y22NUDha7px2WuN3E\r\nXZ83C391KWxV8zSEDD8zeXuZ/azmnjicPfdx+Kdd76ITYjmQ2FO47fpl6QT4\r\n20Q8aI78sE7ID3yV7NYtrgrQyRscTrWzrpoegTlvit+o9VO1Aotr+zyQrTaq\r\n2G+mPJqdBSU0/gSM/QIFdYR8lvkGFG0ALd4=\r\n=lSy5\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.215_1677180789196_0.8531114403822433"},"_hasShrinkwrap":false},"0.8.1-unstable.217":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.217","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"bc342f9d00dc5dbcf5c127eb90ca78392a33b546","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.217","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-p55NbM5j0JvdF8MV+DCQNafzhR4opDapzje1xb4yS6Ep4sd15XQBi+6hTVG/OSLXLAXXkowcW5YN8RlWDi7OFQ==","shasum":"c06ee4273ef47cd0b115df3f6458516094834538","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.217.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDEFr/qDpTkYn51CLKb7UuldpBK5jkBz3IKO2tVqwIYAIhAJsMOepwo9I2f1nPmw2MAvgmHK0/TcEk1zcAo10yUAvz"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj980aACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqa2g//We210NxdE+n3R0yEcDNpipdUBiTA9QAl7Q1VxjQHduyV8fVf\r\nUahwtYgepgV99BC2DHuE5qnSxJePY31yO0bEWpm6swXqh+XMMUlFjdUB0h1Z\r\nllB3CA3A/+UKw8XCKb4XQK+zjODi5LTDah8mGdP5IrUQsWULvTNAm9lYXR60\r\nnULTM9ReAGhhBmRjbXDQj3RTHleQ9TKE2cA5N9RNp4Dh9qBYf/Uu7BV1GzGz\r\nS10aZfNQfoGqa2f24wfbIVg6hFfE+UAsPhaG+NW/VaXJGT6m5CRSzx4ncHu0\r\nPw9KDy6KFTkl2xNyjDA1vN44TVlrc4KNfoFbxSd17vyl8vfka3JKjwEi7S38\r\nI5d6nynv2UQfcabIwG1fZhYDxKeSqmnCEiPRkNTFGzqwV48Nonb+jH5pqIbx\r\n3/11Tzc2u3DlZxMpsNbNHC7F6bj5hRLUTmCx2ZJ4NIa4xk0NYsJNIPoxQ9iJ\r\nR5OiIqK6awBZGTJ1praKy37TcXPlyk9K2t5DRRbdyxWNd1E11dFRo1AN8i5p\r\ns4MHpBx94rvRWaUDDlYA1E5+mZ5/sUEXWtsQk4NS+DXuj9QszHlG5hbpaJwv\r\nTdCQyV7Of0NdAWcLVNegEb3RnnnV7LeiRMdPMrPwZyAR0u4x22uU0NU5TgPd\r\nUdS6/W9MFlzAhTM70nkWLsznQGQOLVPxR+Y=\r\n=TRxk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.217_1677184281904_0.7721061730444356"},"_hasShrinkwrap":false},"0.8.1-unstable.218":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.218","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"070819585e783410dc75c51d88cc3ade45e69148","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.218","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-nMCBul6Q1gB+vGUCTPXdpdkp9KIpb4ZChAkurzPFA0mE1iFFGofXA5rCtGN1ZD027gOXykIHl3pFkVVefHIqXA==","shasum":"99240dbb7ff101979bacb820e36c204e4459cb71","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.218.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUZ39SxXMCGxlNCKLPJOkqAZm1h7lXF09eP6u+94lRHAiB8HUSJ/u6tFylh4jCw/AgCRNGOvJY52SCzyiJ1XVu7EQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+StACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrMBw//UXWGq/Waev0F/NK3MghbtHvbOPa9bsONf4/LHBSyte5A0Y72\r\nyLAJkwcpDubd7XToQtV7ooafwDsOwrw62631nK8gF6WE0o2ugEV6hZLqHNDB\r\njALpZBFbHvdfV58veN3EsBlP5lbiJ8+SENoXtCKT4kYLeLPwkZa+5IPq+Tmq\r\nQLpNZEmsunnuZck4oDhrdMHcrAXSJjtiGnd5Xm9ISUp1V8tGgkEOov1G/ckc\r\n4YGBgCF8KLsS/7Xmx/0TybbtZgEr3gsrQmkriWKiQ7OAddxlTG+ThUCFSOs8\r\nwG5PExVjEpjmT91xP1TdFW/Fg0ip837fLvIS0J2cnm+Z5Q3fmJVaq2Uzq/zi\r\nW7itXXpMwObS13DvRbKlujrIwlqOijenLJIs1osXgIescq5nSP2aFFVmVvLf\r\n4Xsc7EheQxvV9xhVGx53+PNOb+RyIJ4u1RX0johc0Db0XAOuwuffszSxbcyC\r\nde+rot4vSdrdn15VK1SfQAFEebrkwUR+UUgwrTgzPeR8MYjErPxGPAiHuFGH\r\nvVbeT9MW045CVZLabXk99pmB0DnwBBKMKjhu5x13v1X40HBe3SI9aCGrSDAo\r\nToyp8w3A0+RryRGzVSBZFKXpVJn+XilcuBRrD3Zc3zbKfR8EXizz7KBXoLKN\r\ngEfzbkQ4aJ1EIfBCquIz5ajlTN6QThmYHe4=\r\n=J5SN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.218_1677190316905_0.6592784410324684"},"_hasShrinkwrap":false},"0.8.1-unstable.219":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.219","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"39c84c0a44d0bfff00c630ac10eed2b540eab5ee","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.219","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-0WcAKY1IP3Qkt+lamWshpE7KOIfoclnFnWuaDvmQCLKO+pGvyO7tnudG3MCW/JKgP+nxA6wkrDG88qQQJK8YbA==","shasum":"f416f9ce98e8e61ab54121285a30e0041df90279","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.219.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHsgGqnVgVpNRmBSYSUCP+gzrcQiHkc5Z2i1uDn5tOZZAiEAp8b4irVIsOUSIN1cE16lXxUSUWv0TwVxlqc36KiA9FY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9+37ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpD+g//dAu2RUyKEFutYnzvvDtAqu7CJZgwugri6f9KMjHaRO1iutdk\r\nHLQOOKGylohmgX/VUcBHM/rSinX16/cogAVxqbJMqTs/pmaVZ45H/dTH+M+W\r\naJ0NdEybJ4HR465Og2w+TjJx43BdHopBHqunW/lW/HoRi4WNZ5g8a86jrmHg\r\nviWZTy+cM/aGTvSpD5YujKrtm+ER5BTFxuMpw0Ty84aIOJBWL38q/HYyI4lN\r\nWS+dEKo8jbEvuDV9ipK+8UjPu7TUFhIqibBrZA7m6eDFFKgXvWB4goc5VuQ8\r\n9ZUpTN83C8F9X2a0RfT4PJTgF7BxszuRxCkg+u761C3hRfYlkYMF2mw5nKE/\r\nFOF8sqy7Y1tqoSuIppf1jHH8lK8sHImu2T6yvXebsZ1BIoGstJ0kTGa8kOW9\r\n1H2J5YqG3aWAlB4Skaly08wwG7ww6oOjFfmNka9eGrBh+cus0AG4kuecRPn4\r\nxmlnzg1Wuq60+cV4L1eE1EdeE6wGrdSFhz4P37Gv1zFxxkiMWo8TPLZej+ea\r\ne9kFiL1NLyCGaNT2TOvKHevMl3XFFR1Be3OAVLEpKXF4ccf5Ouz7Y5AJq9EK\r\nTQUMXSRayTjj5ufke7fCEBYzIeOGkAaBuFhP2X+aE/fm2Y01JqSBBmCaH0QL\r\nNaImP7lciXAuqtEag85pdgC42rf3/UvBI2M=\r\n=xhsO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.219_1677192699145_0.2750407442545768"},"_hasShrinkwrap":false},"0.8.1-unstable.220":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.220","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"eca3e1811df58ea348aef1d8e353711a50bab0c1","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.220","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-iNKn4kEVsciOZZqg4UkpPT+I7tTRhJXJV0oh6sC4GRS9TZmSlegPZVKkWNQUmp0rJagl+7dv6bSsuRi46Ykqxg==","shasum":"9802a9eab7cb6d84350626a13fc9d1aa4a27e7b9","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.220.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFG0a5AWVxDo1prdkaRJI2yEQCMuyoYOYB054u4QndbNAiA0/+Po1vMLL5KsOyNeRa5ITl29EipcwT9vCI+oXSnupQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9/YHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqnMxAApGOClBJo0bETyyg0CtD9TjZ3MfKz10pmNcERtHeUIRb2Baxi\r\nbjrUhNNzdelh0cjOwyrwQ6pkokJf62XQLxr5cDeeQHf1iWhqWCMRqnShsN5Q\r\nz68Vi/iRmZKucYsbCUICmKrE2iOEGVvLMJp3KzOx8RWzbnL300D4sgN0bSD6\r\nS0tY/O4FX7SmY4gvPNOp9vPNxWSjYhWP4Z3xNQzZHxNwbmUyO8K4Ne0K9gXH\r\nmDI2DyeGB53YRx2modHDBC/43OK5zvm+Pe2QMFgySkmxOG6ExUMNpY/IfX5Z\r\nR9ncn7oMd5DotB1Ttd4Jc76M33J5dSmBB0zFg/5bgl6DMHBxAMJgctnswIJM\r\nbIXmvnY87em/dQh8LtihhqNIGwJBUS2dr3SIjOgR4Y+JYoTC413odBdYK1h+\r\nJ6gxyxPIoaxc6eHNWwjw68vtOzX/7u2nVXmPtD05KCz3phipgJy8xpJYrBxF\r\nlilIlYIZbttiECFuqL+kcYUUv/JrmtTnM0vMjKoRtgYakAsdSfCvh2inBNmd\r\nxGQIodutx42aE5gdpF+E3xunoIn8uBPOnjodVdUA1jzmAeno+EclmnyX1dnB\r\nP9D7qbjCOukVsvo+p4OAH9FspMuoGobCfmXeLLaKRsxlmd02X3AWWTGIc7rh\r\n9gGfPpldiTg3IHiH4DxCWFQv8dqTyNUHwHw=\r\n=v7Fv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.220_1677194759606_0.32383152751345445"},"_hasShrinkwrap":false},"0.8.1-unstable.221":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.221","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"66cff3f98096f061b797655e1d83f64a03e74663","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.221","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-PTUxVHnOfhSCyMG/gsnFa4jJtfXl3EOvbOgmRndq+kIzgzg8kfOaXeV5wdk9ubBs5iKRgxxWO0/dvaUW1m36+g==","shasum":"ab613b78387414a5759142aa0480226c3eddcd42","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.221.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgfcKahpCh36gGC+URVF6e1nrrl9dPJhgXAkaQI6DZnQIgZZ6TzAWuuUIHh+82NUS7V4ry1IH3jF4k573GffEJcRI="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+AVKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp38RAAlKw+be7v2uuEMDo5f7+eIKG8iHcGadwxegKBkwq/TGDpuF+Z\r\n2fl7EQBnhk4B31DHJl+KqOybu7QJrf3AP4XEcEGSdH8dtvVhXnNSWHcTbQ4L\r\nBCQ0esDQwGwDzg/qdBFkyn+49JcC+G6vG8YTvVNt0yXlyT9YnfHchzg0CBuE\r\n2IBAK952SbHeX1JCzEtKlYFnnFdX05BOtuptWwccgAZiULbOeLtsgkxLdiXK\r\nSswq5HWrkWttV+DiYlPuqM2gFPdGrV0kvsajZKLIU+sZoOhCoe0Kf24NPvPn\r\n6RSnaw5jD2qqZe3OxXi1t6HVXjaiVILDgJJ1tsO7n22SPcG81gWDkKlF36GC\r\nYNsHCN2uoh9NYuaUlQJZ2ZV8e08w3mJEJmzKIArLaOjebY5XK+G7+rAkGotE\r\nqV3SU8AE4E0fWev+x9Wlqg8QuuJMu2FVmCJOAVrqTBVaVgD2eDX9X9BGDlow\r\ntZypNHYsZvB7jBsV+RveX1HsiGsSkogblgyR/ILNRDSNhQSy+7wZuzZv6cpy\r\nAVzX9cZc60YsTxucYgaX+kYgIzi7dw7Vg2kXf26vkefCZqmaNHPkClXVdza0\r\n9UWREjB0WlTQI5OQKvz6OBqWgu7C8xogXweh8oXODKyx7vejcgoLZ1JXdkvA\r\npWic0bV6WVKEKVIVrMsXpErASPlmbmfCPnw=\r\n=6DOT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.221_1677198666365_0.9310692125698876"},"_hasShrinkwrap":false},"0.8.1-unstable.222":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.222","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"4b145421eae3e49df6417bfa296585752ce4c295","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.222","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-pq/5dkftbzucI/GqqaiRQWf+LDqsy+unZCSIKD8iDm/gIXcsLC/98Qt8d+GMFs3RfpoHft4XTJtyKs82+Js/GQ==","shasum":"3169425c918f69bd2e79508c7fd7ed7df2a95df0","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.222.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWEXcIJEOfBIz1hNtD3xtNrsfwM5V22BC7aetHdWIFfgIgVkAMFlQaVKmgmWK0P/9l8PUHOyHIywzz5EpmvC2HoAQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+BH5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr2pRAAjY+gbtGbicsEfdtUvetLW4gR2wvSxYob6JnWKeKSXIcogwDF\r\nVULZ3jn960bwcdch+Oswmgv5SW7oW2JmP3jv7HEd/coDTiaHSVzRhJBLLoRF\r\nosVdRF4yHJt+3O94luT2vQaG9tPM9hvfExdWQ1F/bFXDVwTzMkCNVvMmmnl9\r\naumjeOXp4PIC37KkC8kbO0byZ8m0uTcWqWaNeOtVl6PEIurBHhPrRf4eqoZw\r\nL7GI8r0EXLObB6RJgMr6PkiIq2Qs6K8+lDfPVidir4Pww1BmpaME/96/bbVw\r\nHmXmlXbLZZOv1F70uQWfWEgv32Kw+bCbCgmWhfij1P7n6ip540pf/IPxTJrF\r\nKd3xNIvFECBLepU9bQBTBGcjHSnoRWzq7Wg1mYXUjU5lO9qnM14yfl7qEM2h\r\nQpbGAnqMYHP0ylu4n+INws5WyXc6l5R7GZYFLSES+lSOHN0ECBLI2V928z4w\r\nLCpixUnY4e9j3eurxjGhUSZnXD3F7nBRXKCselDO0GBnEHAmZp06gfyZUH6v\r\n4Pd18H48iASjos5c5FtlM7iDSnxtySmpb4qDnxjA+by7S+nTCKJKHmIdTIUL\r\nZedSiLBPGPqh6BOmcCnLddR6PjyoDA+EczRQUi5xQ1NFqpkbyrHQlTU2WhFM\r\n/bzNlts3YlpvzXR+NnisgndkjAw8imSb2Gk=\r\n=XRsX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.222_1677201912961_0.8251070287924887"},"_hasShrinkwrap":false},"0.8.1-unstable.225":{"name":"@sphereon/ssi-sdk-waci-pex-qr-react","version":"0.8.1-unstable.225","description":"WACI PEx QR Code provider (react)","source":"src/index.ts","main":"dist/index.js","types":"dist/index.d.ts","veramo":{"pluginInterfaces":{"ISsiQrCodeProvider":"./src/types/ISsiQrCodeProvider.ts"}},"scripts":{"build":"tsc --build"},"dependencies":{"@veramo/core":"4.2.0","base64url":"^3.0.1","react":"^18.2.0","react-qr-code":"^2.0.11"},"devDependencies":{"@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.4","@types/react":"^18.0.26","@types/uuid":"^8.3.4","@veramo/cli":"4.2.0","global-jsdom":"^8.6.0","jest":"^29.3.1","jest-environment-jsdom":"^29.3.1","jsdom":"^20.0.3","react-dom":"^18.2.0","ts-jest":"^29.0.3","typescript":"^4.6.4"},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"license":"Apache-2.0","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"gitHead":"5a87aa3eeed588b910636b358c7d718ae74f54c9","readme":"<!--suppress HtmlDeprecatedAttribute -->\n<h1 align=\"center\">\n  <br>\n  <a href=\"https://www.sphereon.com\"><img src=\"https://sphereon.com/content/themes/sphereon/assets/img/logo.svg\" alt=\"Sphereon\" width=\"400\"></a>\n  <br>waci-pex-qr-react (Typescript) \n  <br>\n</h1>\n\n---\n\n**Warning: This package still is in very early development. Breaking changes without notice will happen at this point!**\n\n---\n\n# waci-pex-qr-react\n\nA `Sphereon SSI-SDK` plugin to create an QR code and to verify using `SIOPv2` or `OIDC4`. This plugin component is only\nsupporting react and react-native frameworks.\n\nIt will be possible in future to request the issuer to issue credentials.\n\n### Installation\n\n```shell\nyarn add @sphereon/ssi-sdk-waci-pex-qr-react\n```\n\n### Build\n\n```shell\nyarn build\n```\n\n### Usage\n\nThe usage scenario will include the plugin code to be integrated in the client code. A party will be requesting the\nrecipient to either:\n\n1. authenticate itself to the requester\n2. inviting the issuer to issue a credential\n\nThe data fields required to generate the QR code will depend on the type of request and the acceptable values. The\npossible `accept` value may be:\n\n1. `oidc4vp`\n2. `siopv2+oidc4vp`\n3. `siopv2`\n4. `didcomm/v2`\n\n#### Importing the plugin\n\n```typescript\nimport { WaciQrCodeProvider } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\n// Include in the interface\n// const agent = createAgent<...  WaciQrCodeProvider>\n```\n\n#### Adding plugin to the agent\n\n```typescript\nplugins: [\n  ...\n    new WaciQrCodeProvider()\n],\n```\n\n#### Export for the function\n\n```typescript\nexport const createSsiQrCode = agent.ssiQrCode\n```\n\nThe function declared in agent can be imported for usage like below:\n\n```typescript\nimport { createSsiQrCode } from '../agent'\nimport { QRContent, QRType } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n```\n\n#### Inside the component we can declare or get the values to pass to QR Code plugin\n\n```typescript\nimport { OobPayload } from '@sphereon/ssi-sdk-waci-pex-qr-react'\n\nfunction getOobQrCodeProps(): OobQRProps {\n  return {\n    oobBaseUrl: 'https://example.com/?oob=',\n    type: QRType.DID_AUTH_SIOP_V2,\n    id: '599f3638-b563-4937-9487-dfe55099d900',\n    from: 'did:key:zrfdjkgfjgfdjk',\n    body: {\n      goalCode: GoalCode.STREAMLINED_VP,\n      accept: [AcceptMode.SIOPV2_WITH_OIDC4VP],\n    },\n    onGenerate: (oobQRProps: OobQRProps, payload: OobPayload) => {\n      console.log(payload)\n    },\n    bgColor: 'white',\n    fgColor: 'black',\n    level: 'L',\n    size: 128,\n    title: 'title2021120903',\n  }\n}\n\ndelegateCreateOobQRCode = () => {\n  let qrCode = createOobQrCode(this.getOobQrCodeProps())\n  return qrCode.then((qrCodeResolved) => {\n    return qrCodeResolved\n  })\n}\n```\n\nOn generate gives the following (example) output\n\n```json lines\n{\n  \"type\": \"openid\",\n  \"id\": \"599f3638-b563-4937-9487-dfe55099d900\",\n  \"from\": \"did:key:zrfdjkgfjgfdjk\",\n  \"body\": {\n    \"goal-code\": \"streamlined-vp\",\n    \"accept\": [\"siopv2+oidc4vp\"]\n  }\n}\n```\n\nIf you want to create the payload manually and want to do serialization yourself you can use:\n\n```typescript\nconst payload = OutOfBandMessage.createPayload(getOobQrCodeProps())\nconst encoded = OutOfBandMessage.urlEncode(payload)\nconst url = oobQRProps.oobBaseUrl + encoded\nconsole.log(url) // https://example.com/?oob=eyJ0eXBlIjoic2lvcHYyIiwiaWQiOiI1OTlmMzYzOC1iNTYzLTQ5MzctOTQ4Ny1kZmU1NTA5OWQ5MDAiLCJmcm9tIjoiZGlkOmtleTp6cmZkamtnZmpnZmRqayIsImJvZHkiOnsiZ29hbC1jb2RlIjoic3RyZWFtbGluZWQtdnAiLCJhY2NlcHQiOlsic2lvcHYyK29pZGM0dnAiXX19\n```\n\n#### For rendering add to the view\n\n```jsx\n<View>\n  //...\n  {this.delegateCreateOobQRCode()}\n</View>\n```\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","_id":"@sphereon/ssi-sdk-waci-pex-qr-react@0.8.1-unstable.225","_nodeVersion":"16.19.1","_npmVersion":"lerna/4.0.0/node@v16.19.1+x64 (linux)","dist":{"integrity":"sha512-ish9A7C9Xj5ei4zWmzULbWThVrZPWN/Bo7bzFh/krrOqiNaO+zCOElvSTZaowGTtwLBL03XzK+qHjltV/pOfcQ==","shasum":"b52b6730d8808c41495f2a6394db8615ead9be09","tarball":"https://registry.npmjs.org/@sphereon/ssi-sdk-waci-pex-qr-react/-/ssi-sdk-waci-pex-qr-react-0.8.1-unstable.225.tgz","fileCount":23,"unpackedSize":32276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCX8tP3DwNIlviOJ376lIXo6SzdIR4TiCmIeAzEjaB4ngIgKDo0xwuz0S+A2zkHHswt+4uwuq8+lHCO4soCn78z4f8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj+Dh4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo92A/+Mj9SBbMDq5pFI3uAz5PT81mmC+a4BdBdFHORcz4YwiUvL3mE\r\ng6V5D2kMklNscN1a1jvTZ7blgWyBp33XXLQStexOPZTCFR8IO+ObEPtXrrjK\r\nlcaHsFNN5nZB25fH0eZmOWseXjZxxoofBxRIuHtrbP0BBAMx3IKqpr0BOMPD\r\n6oSnCHutLLC6w5toNa7PoaXi084bNRJaCXn0W7ZaNL7sLVYywMXX4XAexDnD\r\nCDm8DGKIjWf+/bh3R6jTIAtVhGKkCxVJeFmYJmHltThw8/IG0LjMAa4r/LZu\r\np4Canwn4sBpwcaPttKqldMw6qKrOWVFbpxsFLXoYbkZn+ft2RhKJof8qmjO8\r\nNxlaHEGc+ct5+C5FVX3hWL64rWGhaA9cXuFjIMaP2pHgoredBSBi3WywW7Cs\r\nFKzHZRQjUMkRO5Y4HjHnvnvKi8DlJyuRXB9hY7EhIC0tYEzowwE98F8y4Rgf\r\nyLBfR+9qUH7fUHLEtVRTxjWoKOJ9iVR0aNCQDbGGzMDmZ/2fibOcTok4XHIS\r\naaA9R0khyielwQzWLYHlejPrjI9Fc9uMfKJvdj1L9f3MKnRxB9aDWDkR7973\r\nB5R1bDw0klLNavoY5jtLRxC3vWXHJSOdcZmDx5DBw2Dw5PH6N2jXqfmO3y+7\r\nmlrKyjO4VNTPCm3jFeXVPA/q6ZbVBatP8go=\r\n=ZhYG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nklomp78","email":"dev@sphereon.com"},"directories":{},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ssi-sdk-waci-pex-qr-react_0.8.1-unstable.225_1677211768203_0.7032076253765018"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-11T01:50:01.628Z","0.3.5-unstable.44":"2022-02-11T01:50:01.943Z","modified":"2023-02-24T04:09:28.501Z","0.3.5-unstable.45":"2022-02-11T01:53:16.870Z","0.3.5-next.46":"2022-02-11T01:55:38.527Z","0.3.5-next.47":"2022-02-11T02:08:17.439Z","0.4.0":"2022-02-11T02:28:19.724Z","0.4.1-unstable.2":"2022-02-18T20:37:27.203Z","0.4.1-unstable.3":"2022-02-21T18:54:33.784Z","0.4.1-unstable.4":"2022-02-22T17:23:56.995Z","0.4.1-unstable.5":"2022-02-23T13:53:46.502Z","0.4.1-next.6":"2022-02-23T13:58:14.902Z","0.4.1-next.7":"2022-02-23T16:09:18.532Z","0.5.0":"2022-02-23T16:19:07.474Z","0.5.1-next.1":"2022-02-23T18:16:44.042Z","0.5.2-next.3":"2022-02-25T02:30:57.684Z","0.5.2-next.4":"2022-02-25T02:41:52.608Z","0.5.2-next.6":"2022-02-25T02:57:43.091Z","0.5.2-next.7":"2022-02-25T03:27:53.807Z","0.5.2-next.8":"2022-02-25T03:38:16.653Z","0.5.2-next.9":"2022-02-25T04:26:42.493Z","0.5.2-next.10":"2022-05-12T12:10:55.655Z","0.5.2-unstable.32":"2022-05-13T14:32:08.109Z","0.5.2-unstable.33":"2022-05-16T09:31:02.541Z","0.5.2-unstable.35":"2022-05-18T07:32:14.797Z","0.5.2-unstable.42":"2022-05-19T10:16:50.279Z","0.5.2-next.45":"2022-05-20T13:46:03.744Z","0.5.2-next.70":"2022-05-31T11:28:42.830Z","0.5.2-unstable.73":"2022-06-16T08:23:10.459Z","0.5.2-unstable.70":"2022-06-27T14:42:21.225Z","0.5.2-next.73":"2022-06-30T11:02:57.362Z","0.5.2-next.113":"2022-07-01T22:26:17.388Z","0.6.0":"2022-07-01T22:38:09.613Z","0.5.2-next.116":"2022-07-06T00:09:59.377Z","0.6.1-next.6":"2022-07-06T00:39:59.290Z","0.6.1-next.8":"2022-07-06T21:43:58.582Z","0.6.1-next.9":"2022-07-06T22:17:43.400Z","0.6.1-unstable.49":"2022-07-12T22:45:41.035Z","0.6.1-next.50":"2022-07-12T22:58:34.119Z","0.6.1-unstable.63":"2022-07-13T08:31:15.115Z","0.6.1-unstable.64":"2022-07-13T11:08:39.206Z","0.6.1-unstable.65":"2022-07-13T11:13:58.154Z","0.6.1-next.66":"2022-07-13T11:36:37.139Z","0.6.1-next.67":"2022-07-28T21:36:11.488Z","0.6.1-unstable.74":"2022-08-02T19:38:26.462Z","0.6.1-unstable.75":"2022-08-02T21:58:13.198Z","0.6.1-unstable.76":"2022-08-02T22:43:20.136Z","0.6.1-unstable.77":"2022-08-02T23:35:09.994Z","0.6.1-unstable.78":"2022-08-03T00:03:08.708Z","0.6.1-unstable.79":"2022-08-03T00:26:02.658Z","0.6.1-unstable.80":"2022-08-03T07:47:33.807Z","0.6.1-unstable.82":"2022-08-03T10:26:43.898Z","0.6.1-unstable.83":"2022-08-03T13:42:28.727Z","0.6.1-unstable.84":"2022-08-03T18:42:34.485Z","0.6.1-unstable.86":"2022-08-03T18:53:47.166Z","0.6.1-unstable.87":"2022-08-03T20:06:39.700Z","0.6.1-unstable.88":"2022-08-03T21:52:11.106Z","0.6.1-unstable.89":"2022-08-03T21:55:49.144Z","0.6.1-unstable.90":"2022-08-03T22:09:32.816Z","0.6.1-unstable.92":"2022-08-03T22:25:56.168Z","0.6.1-unstable.68":"2022-08-03T22:27:50.910Z","0.6.1-unstable.70":"2022-08-03T23:39:24.510Z","0.6.1-unstable.71":"2022-08-04T10:24:50.434Z","0.6.1-unstable.72":"2022-08-04T10:26:31.925Z","0.6.1-unstable.73":"2022-08-04T10:28:22.074Z","0.6.1-next.76":"2022-08-04T11:42:13.063Z","0.6.1-next.78":"2022-08-05T16:06:53.325Z","0.6.1-next.79":"2022-08-05T16:13:20.598Z","0.7.0":"2022-08-05T19:52:45.022Z","0.7.1-unstable.9":"2022-08-06T00:27:46.116Z","0.7.1-unstable.11":"2022-08-06T11:52:55.610Z","0.7.1-unstable.13":"2022-08-08T00:12:06.566Z","0.7.1-unstable.15":"2022-08-10T11:32:34.357Z","0.7.1-unstable.16":"2022-08-10T12:02:08.708Z","0.7.1-unstable.17":"2022-08-10T13:03:51.402Z","0.7.1-unstable.18":"2022-08-10T19:42:52.814Z","0.7.1-next.18":"2022-08-12T08:37:40.219Z","0.7.1-unstable.67":"2022-08-12T16:51:48.319Z","0.7.1-unstable.39":"2022-08-12T17:20:48.126Z","0.7.1-next.38":"2022-08-12T17:23:11.944Z","0.7.1-unstable.40":"2022-08-15T15:52:22.533Z","0.7.1-next.39":"2022-08-15T16:01:07.149Z","0.7.1-next.40":"2022-08-18T01:03:08.475Z","0.7.1-next.43":"2022-08-21T00:15:52.557Z","0.7.1-unstable.43":"2022-08-22T17:32:09.130Z","0.7.1-unstable.44":"2022-08-23T15:39:06.141Z","0.7.1-unstable.45":"2022-08-23T16:58:54.248Z","0.7.1-next.54":"2022-08-25T11:56:46.822Z","0.7.1-next.66":"2022-09-02T22:38:13.515Z","0.7.1-next.68":"2022-09-02T23:52:55.164Z","0.8.0":"2022-09-03T00:09:12.024Z","0.8.1-next.2":"2022-09-03T00:56:52.797Z","0.8.1-next.3":"2022-09-03T01:09:47.723Z","0.8.1-unstable.4":"2022-09-15T09:00:35.147Z","0.8.1-unstable.5":"2022-09-15T09:17:27.134Z","0.8.1-next.6":"2022-09-15T09:31:56.963Z","0.8.1-unstable.9":"2022-09-17T23:57:01.787Z","0.8.1-unstable.11":"2022-09-19T14:02:05.528Z","0.8.1-next.12":"2022-09-19T15:11:30.365Z","0.8.1-next.18":"2022-09-22T15:12:26.090Z","0.8.1-unstable.24":"2022-09-29T21:06:45.305Z","0.8.1-unstable.25":"2022-10-04T20:18:16.373Z","0.8.1-next.26":"2022-10-04T20:50:05.665Z","0.8.1-unstable.27":"2022-10-12T10:50:57.009Z","0.8.1-unstable.29":"2022-10-13T07:11:54.709Z","0.8.1-unstable.28":"2022-10-13T07:13:14.949Z","0.8.1-unstable.30":"2022-10-13T07:17:41.335Z","0.8.1-next.31":"2022-10-13T07:51:29.988Z","0.8.1-next.42":"2022-10-18T11:11:39.892Z","0.8.1-next.50":"2022-10-18T11:13:01.436Z","0.8.1-unstable.50":"2022-10-26T00:44:30.387Z","0.8.1-unstable.53":"2022-10-26T23:14:38.961Z","0.8.1-unstable.54":"2022-10-26T23:18:54.039Z","0.8.1-next.55":"2022-10-26T23:31:12.671Z","0.8.1-unstable.55":"2022-10-27T20:32:39.374Z","0.8.1-next.57":"2022-10-27T20:37:41.497Z","0.8.1-unstable.61":"2022-10-27T20:43:41.446Z","0.8.1-unstable.63":"2022-10-28T00:02:53.220Z","0.8.1-unstable.65":"2022-10-28T08:49:57.483Z","0.8.1-next.66":"2022-10-28T11:23:17.599Z","0.8.1-unstable.73":"2022-11-03T22:51:04.290Z","0.8.1-unstable.74":"2022-11-04T00:24:09.212Z","0.8.1-next.77":"2022-11-08T15:20:47.845Z","0.8.1-next.84":"2022-11-08T15:29:49.020Z","0.8.1-unstable.85":"2022-11-14T13:39:36.184Z","0.8.1-unstable.86":"2022-11-14T13:53:40.127Z","0.8.1-next.114":"2022-12-17T02:01:13.725Z","0.8.1-next.117":"2022-12-17T02:19:04.836Z","0.8.1-next.119":"2022-12-27T23:57:09.768Z","0.8.1-unstable.135":"2023-01-03T15:31:46.137Z","0.8.1-next.120":"2023-01-10T01:20:17.129Z","0.8.1-next.121":"2023-01-11T19:11:01.826Z","0.8.1-next.122":"2023-01-11T20:34:19.781Z","0.8.1-next.123":"2023-01-11T21:40:20.528Z","0.8.1-unstable.145":"2023-01-12T01:13:23.138Z","0.8.1-next.146":"2023-01-12T01:23:44.615Z","0.8.1-next.154":"2023-01-12T13:11:13.318Z","0.8.1-next.156":"2023-01-13T00:43:44.640Z","0.8.1-next.157":"2023-01-13T01:42:06.720Z","0.8.1-next.158":"2023-01-13T02:03:12.646Z","0.8.1-next.159":"2023-01-13T02:21:03.948Z","0.8.1-next.161":"2023-01-13T03:10:21.801Z","0.8.1-next.162":"2023-01-13T03:52:02.535Z","0.8.1-next.163":"2023-01-13T04:07:39.830Z","0.8.1-next.164":"2023-01-14T05:43:54.541Z","0.8.1-next.165":"2023-01-14T06:18:14.338Z","0.8.1-next.166":"2023-01-14T06:37:56.099Z","0.8.1-next.167":"2023-01-14T06:56:39.329Z","0.8.1-next.168":"2023-01-14T07:31:03.530Z","0.8.1-next.169":"2023-01-15T02:09:11.714Z","0.8.1-unstable.170":"2023-01-15T03:25:54.615Z","0.8.1-unstable.171":"2023-01-15T03:36:00.837Z","0.8.1-unstable.172":"2023-01-15T03:59:27.502Z","0.8.1-unstable.173":"2023-01-15T05:05:34.037Z","0.8.1-unstable.174":"2023-01-15T05:47:54.840Z","0.8.1-unstable.175":"2023-01-15T08:06:47.893Z","0.8.1-unstable.176":"2023-01-16T02:09:14.233Z","0.8.1-unstable.177":"2023-01-16T04:45:05.668Z","0.8.1-unstable.178":"2023-01-16T05:00:29.050Z","0.8.1-unstable.179":"2023-01-20T01:15:00.894Z","0.8.1-next.179":"2023-01-25T21:34:48.804Z","0.8.1-next.190":"2023-02-16T10:03:42.901Z","0.8.1-next.192":"2023-02-17T16:00:56.390Z","0.8.1-next.194":"2023-02-17T22:04:22.019Z","0.8.1-unstable.195":"2023-02-18T00:42:15.572Z","0.8.1-unstable.198":"2023-02-18T03:01:00.620Z","0.8.1-unstable.200":"2023-02-18T13:16:29.914Z","0.8.1-unstable.201":"2023-02-18T14:04:57.758Z","0.8.1-unstable.203":"2023-02-18T22:50:31.245Z","0.8.1-unstable.206":"2023-02-21T01:47:32.437Z","0.8.1-unstable.207":"2023-02-21T02:07:48.329Z","0.8.1-unstable.208":"2023-02-22T03:26:35.564Z","0.8.1-unstable.209":"2023-02-22T19:38:00.749Z","0.8.1-unstable.210":"2023-02-22T23:42:20.691Z","0.8.1-unstable.211":"2023-02-23T00:15:32.959Z","0.8.1-unstable.212":"2023-02-23T01:44:47.430Z","0.8.1-unstable.213":"2023-02-23T02:13:31.996Z","0.8.1-unstable.215":"2023-02-23T19:33:09.408Z","0.8.1-unstable.217":"2023-02-23T20:31:22.128Z","0.8.1-unstable.218":"2023-02-23T22:11:57.044Z","0.8.1-unstable.219":"2023-02-23T22:51:39.292Z","0.8.1-unstable.220":"2023-02-23T23:25:59.787Z","0.8.1-unstable.221":"2023-02-24T00:31:06.637Z","0.8.1-unstable.222":"2023-02-24T01:25:13.188Z","0.8.1-unstable.225":"2023-02-24T04:09:28.383Z"},"maintainers":[{"name":"nklomp78","email":"dev@sphereon.com"},{"name":"nklomp","email":"nklomp@sphereon.com"},{"name":"spostma","email":"spostma@sphereon.com"},{"name":"bramtencate","email":"btencate@sphereon.com"}],"description":"WACI PEx QR Code provider (react)","homepage":"https://github.com/Sphereon-Opensource/SSI-SDK#readme","keywords":["Sphereon","SSI","DIF","React","WACI PEx","QR Code"],"repository":{"type":"git","url":"git+ssh://git@github.com/Sphereon-Opensource/SSI-SDK.git"},"author":{"name":"Sphereon","email":"dev@sphereon.com"},"bugs":{"url":"https://github.com/Sphereon-Opensource/SSI-SDK/issues"},"license":"Apache-2.0","readme":"","readmeFilename":""}