UNPKG

@arcblock/blocklet-registry

Version:

**Blocklets** are reusable building blocks to help developers and community users to build things on [ArcBlock](https://www.arcblock.io) platform. A blocklet serves one and only one purpose, reusability is the core design philosophy of blocklets. Reusabil

1 lines 14.8 kB
{"name":"@arcblock/did-kyc","version":"0.18.2","description":"Verify once and use everywhere.","keywords":["arcblock","forge","starter","react","javascript"],"author":{"name":"wangshijun","email":"shijun@arcblock.io"},"repository":{"type":"git","url":"https://github.com/ArcBlock/forge-dapp-starters/tree/master/packages/forge-react-starter"},"title":"DID KYC","files":["api/libs/hooks/pre-start.js"],"license":"Apache-2.0","group":"dapp","main":"blocklet.zip","logo":"logo.png","community":"","documentation":"","homepage":"","screenshots":["/static/70882c6fd9bce00958f3b15f6f8f1db5/2-mailgun_pic.png","/static/3e2c28642a96093f3fc57c0996022a17/0-home.png","/static/c2e8f246e850a673ca6618857437c61c/1-profile.png"],"environments":[{"name":"MAILGUN_SMTP_USER","description":"Please provide a mailgun smtp user name to start","required":true,"default":"","secure":true},{"name":"MAILGUN_SMTP_PASSWORD","description":"Please provide a mailgun smtp password to start","required":true,"default":"","secure":true},{"name":"APP_CHAIN_ID","description":"Please provide id of local chain id","required":true,"default":"playground","secure":false},{"name":"APP_CHAIN_HOST","description":"Please provide endpoint of local chain host","required":true,"default":"https://playground.network.arcblockio.cn/api","secure":false}],"interfaces":[{"type":"web","name":"publicUrl","path":"/","prefix":"*","port":"BLOCKLET_PORT","protocol":"http"}],"scripts":{"preDeploy":"npm run bundle","preStart":"node api/libs/hooks/pre-start.js","dev":"npm run start"},"specVersion":"1.0.1","did":"z8iZtvDiFYckxQ6rECTD2bL1p35WGyTDyq1W8","timeout":{"start":10},"gitHash":"188e267439ec46ccd8eacb3ff25959de7241ae6d","htmlAst":{"type":"root","children":[{"type":"element","tagName":"h1","properties":{"id":"did-kyc","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#did-kyc","ariaLabel":"did kyc permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"DID KYC"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"Verify once and use everywhere."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h2","properties":{"id":"how-to-get-started","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#how-to-get-started","ariaLabel":"how to get started permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"How to get started"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"1-install-did-kyc-blocklet-from-abt-node-marketplace","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#1-install-did-kyc-blocklet-from-abt-node-marketplace","ariaLabel":"1 install did kyc blocklet from abt node marketplace permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"1. install "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"DID KYC"}]},{"type":"text","value":" blocklet from ABT Node marketplace"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"2-config-the-required-environments","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#2-config-the-required-environments","ariaLabel":"2 config the required environments permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"2. config the required environments"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"21-mailgunsmtpuser--mailgunsmtppassword","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#21-mailgunsmtpuser--mailgunsmtppassword","ariaLabel":"21 mailgunsmtpuser mailgunsmtppassword permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"2.1 MAILGUN"},{"type":"element","tagName":"em","properties":{},"children":[{"type":"text","value":"SMTP"}]},{"type":"text","value":"USER & MAILGUN"},{"type":"element","tagName":"em","properties":{},"children":[{"type":"text","value":"SMTP"}]},{"type":"text","value":"PASSWORD"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"The verifiable credential of email address need "},{"type":"element","tagName":"a","properties":{"href":"https://www.mailgun.com/"},"children":[{"type":"text","value":"mailgun"}]},{"type":"text","value":" service, so we need you provide a\nmailgun user and password."}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-wrapper"],"style":"position: relative; display: block; margin-left: auto; margin-right: auto; max-width: 1698px; "},"children":[{"type":"text","value":"\n "},{"type":"element","tagName":"a","properties":{"className":["gatsby-resp-image-link"],"href":"/static/70882c6fd9bce00958f3b15f6f8f1db5/e5d3a/2-mailgun_pic.png","style":"display: block","target":"_blank","rel":["noopener"]},"children":[{"type":"text","value":"\n "},{"type":"element","tagName":"span","properties":{"className":["gatsby-resp-image-background-image"],"style":"padding-bottom: 50.2%; position: relative; bottom: 0; left: 0; background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAKCAYAAAC0VX7mAAAACXBIWXMAAAsTAAALEwEAmpwYAAABoUlEQVQoz51Sy0pcQRC9KBKFiEsHRiVBzSaoKBijgmYhKPgrJhFxp4hxmyDG31IwuHGtG3We3kf37duvY1XPiE4MGGw4VHVX1ek6XR0Nz6zj7dgyNvcO4QFU6k2IXEGpAoU2KIwNVv0DfC6LAkIpSJHj9raKqDS1ht53i/jeJqw2E8g0g6zVIeOUCrhIIyfbCd3p38UQVBMNTq6iq/wJX3d/gVcmcxghoK6voRoNaGNgrYX3vhOU+7gnn/K81oiGSHLP8Gds7PwMhHEmYMk652EZvmVTIYNEcmHoGQwVW+dC7MF3lBuVptfRNTLf6tA7nJ+c4uLsD/I0BbgzIuHb4+Ydsjjhm6DrDcjLKziSyjGTpLCcx4QfJlYwUJ7Ft7ZkWalC1WqwcUz6M3giZhh6I02kNkngCY7iIdbO0TRI7jL6OL2G0vsFbO8fBUJB0+XFUh2/0xPgr/0zPEjuG13C9sExn+CmUkNOtxUkh4fRYvEvo72iwYlVvBmhDg9+h4MmfRV+fGNdgKYBaCIO9j8Q9Y9/QXd5Dls/WoQxfdAsL16Ne6Cfz8i6Th6BAAAAAElFTkSuQmCC'); background-size: cover; display: block;"},"children":[]},{"type":"text","value":"\n "},{"type":"element","tagName":"img","properties":{"className":["gatsby-resp-image-image"],"alt":"mailgun screenshot","title":"mailgun screenshot","src":"/static/70882c6fd9bce00958f3b15f6f8f1db5/e5d3a/2-mailgun_pic.png","srcSet":["/static/70882c6fd9bce00958f3b15f6f8f1db5/36a81/2-mailgun_pic.png 500w","/static/70882c6fd9bce00958f3b15f6f8f1db5/ea415/2-mailgun_pic.png 1000w","/static/70882c6fd9bce00958f3b15f6f8f1db5/e5d3a/2-mailgun_pic.png 1698w"],"sizes":["(max-width:","1698px)","100vw,","1698px"],"style":"width:100%;height:100%;margin:0;vertical-align:middle;position:absolute;top:0;left:0;","loading":"lazy"},"children":[]},{"type":"text","value":"\n "}]},{"type":"text","value":"\n "}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"22-appchainid","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#22-appchainid","ariaLabel":"22 appchainid permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"2.2 APP"},{"type":"element","tagName":"em","properties":{},"children":[{"type":"text","value":"CHAIN"}]},{"type":"text","value":"ID"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A valid chain id, The "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"APP_CHAIN_ID"}]},{"type":"text","value":" and "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"APP_CHAIN_HOST"}]},{"type":"text","value":" are one-to-one, you can start a chain by "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"Blockchain Manager"}]},{"type":"text","value":" blocklet, or you can use our test chain:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"// playground chain id:\nplayground\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h4","properties":{"id":"23-appchainhost","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#23-appchainhost","ariaLabel":"23 appchainhost permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"2.3 APP"},{"type":"element","tagName":"em","properties":{},"children":[{"type":"text","value":"CHAIN"}]},{"type":"text","value":"HOST"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"p","properties":{},"children":[{"type":"text","value":"A valid chain host, you can start a chain by "},{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"Blockchain Manager"}]},{"type":"text","value":" blocklet, or you can use our test chain:"}]},{"type":"text","value":"\n"},{"type":"element","tagName":"pre","properties":{},"children":[{"type":"element","tagName":"code","properties":{},"children":[{"type":"text","value":"// playground chain host:\nhttps://playground.network.arcblockio.cn/api\n"}]}]},{"type":"text","value":"\n"},{"type":"element","tagName":"h3","properties":{"id":"3-start-the-blocklet","style":"position:relative;"},"children":[{"type":"element","tagName":"a","properties":{"href":"#3-start-the-blocklet","ariaLabel":"3 start the blocklet permalink","className":["anchor","before"]},"children":[{"type":"element","tagName":"svg","properties":{"ariaHidden":"true","focusable":"false","height":"16","version":"1.1","viewBox":"0 0 16 16","width":"16"},"children":[{"type":"element","tagName":"path","properties":{"fillRule":"evenodd","d":"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"},"children":[]}]}]},{"type":"text","value":"3. start the blocklet"}]}],"data":{"quirksMode":false}},"logoUrl":"/static/9ec4aac0893de6726ee238a341db9fa8/logo.png","path":"/dapp/@arcblock/did-kyc","charging":{"price":0},"stats":{"downloads":2136,"updated_at":"2021-03-23T22:42:12.169Z"},"dist":{"integrity":"sha512-zLF7DzrXSk+54cLzGav+M4Gg7i17THzcf4k2+eSACpY6WFAkJyo26qTx4tAvH+C3hcOC6gOmsOli/ejNzgwC0Q==","shasum":"f0806518c45eb7082c162bd601dfedca64712597","tarball":"https://registry.npmjs.org/@arcblock/did-kyc/-/did-kyc-0.18.2.tgz","fileCount":25,"unpackedSize":14920327}}