PageSourceSearch

https://elastos-wiki.netlify.app/assets/js/99c404c8.827ea5d7.js

js elastos-wiki.netlify.app collected 2026-10-03 10:41:34 UTC 5,265 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[234],{3905:(e,t,n)=>{n.d(t,{Zo:()=>p,kt:()=>f});var r=n(7294);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var l=r.createContext({}),c=function(e){var t=r.useContext(l),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},p=function(e){var t=c(e.components);return r.createElement(l.Provider,{value:t},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return r.createElement(r.Fragment,{},t)}},m=r.forwardRef((function(e,t){var n=e.components,i=e.mdxType,a=e.originalType,l=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),d=c(n),m=i,f=d["".concat(l,".").concat(m)]||d[m]||u[m]||a;return n?r.createElement(f,o(o({ref:t},p),{},{components:n})):r.createElement(f,o({ref:t},p))}));function f(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var a=n.length,o=new Array(a);o[0]=m;var s={};for(var l in t)hasOwnProperty.call(t,l)&&(s[l]=t[l]);s.originalType=e,s[d]="string"==typeof e?e:i,o[1]=s;for(var c=2;c<a;c++)o[c]=n[c];return r.createElement.apply(null,o)}return r.createElement.apply(null,n)}m.displayName="MDXCreateElement"},5828:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>l,default:()=>f,frontMatter:()=>s,metadata:()=>c,toc:()=>d});var r=n(7462),i=n(3366),a=(n(7294),n(3905)),o=["components"],s={title:"Introduction"},l=void 0,c={unversionedId:"sdk/did/js/introduction",id:"sdk/did/js/introduction",title:"Introduction",description:"The implementation of DID Javascript SDK accords with W3C\u2019s DID specification and the specification of verifiable credentials, and it mainly implements the following function sets:",source:"@site/../docs/7.sdk/did/js/introduction.md",sourceDirName:"7.sdk/did/js",slug:"/sdk/did/js/introduction",permalink:"/sdk/did/js/introduction",draft:!1,editUrl:"https://github.com/elastos/Elastos.Wiki/edit/master/website/../docs/7.sdk/did/js/introduction.md",tags:[],version:"current",lastUpdatedBy:"racollette",lastUpdatedAt:1677260880,formattedLastUpdatedAt:"Feb 24, 2023",frontMatter:{title:"Introduction"},sidebar:"sdkSidebar",previous:{title:"Writing a Custom Connector",permalink:"/sdk/general/connectivity/connectors/custom"},next:{title:"Build & Introduction",permalink:"/sdk/did/js/install"}},p={},d=[],u={toc:d},m="wrapper";function f(e){var t=e.components,n=(0,i.Z)(e,o);return(0,a.kt)(m,(0,r.Z)({},u,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("p",null,"The implementation of DID Javascript SDK accords with W3C\u2019s ",(0,a.kt)("a",{parentName:"p",href:"https://www.w3.org/TR/did-core/"},"DID specification")," and the specification of verifiable credentials, and it mainly implements the following function sets:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"DID and DIDDocument"),(0,a.kt)("li",{parentName:"ul"},"Verifiable credential"),(0,a.kt)("li",{parentName:"ul"},"Verifiable presentation"),(0,a.kt)("li",{parentName:"ul"},"Hierarchical Deterministic DIDs (similar with ",(0,a.kt)("a",{parentName:"li",href:"https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki"},"BIP32"),")"),(0,a.kt)("li",{parentName:"ul"},"Secure local DID objects store"),(0,a.kt)("li",{parentName:"ul"},"DID and credential publishing mechanism based on Elastos ID side chain")),(0,a.kt)("p",null,"In addition (since ",(0,a.kt)("a",{parentName:"p",href:"https://jwt.io/"},"JSON Web Token (JWT)")," is widely used), while the key pair of DID can be used for signing and verifying JWT, Elastos DID SDK integrates the support of JWT, which provides applications with a safe and convenient way to use JWT, without any risk of secret key leakage. JWT integrated 
1with JavaScript SDK offers the following support:"),(0,a.kt)("ul",null,(0,a.kt)("li",{parentName:"ul"},"JWT"),(0,a.kt)("li",{parentName:"ul"},"JWS (algorithm: ECDSA using P-256 and SHA-256)"),(0,a.kt)("li",{parentName:"ul"},"Claims assertions"),(0,a.kt)("li",{parentName:"ul"},"Claim POJO marshaling and unmarshaling")),(0,a.kt)("admonition",{type:"info"},(0,a.kt)("p",{parentName:"admonition"},"Source code located at ",(0,a.kt)("a",{parentName:"p",href:"https://github.com/elastos/Elastos.DID.JS.SDK.git"},"https://github.com/elastos/Elastos.DID.JS.SDK.git"),".")))}f.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.