@ew-did-registry/did-ethr-resolver
Version:
The package resolve CRUD operations on DID Documents
1 lines • 43.1 kB
JavaScript
(()=>{"use strict";var f={61:(f,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ethrReg=void 0,e.ethrReg={contractName:"EthereumDIDRegistry",abi:[{constant:!0,inputs:[{name:"",type:"address"}],name:"owners",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"bytes32"},{name:"",type:"address"}],name:"delegates",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"nonce",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"changed",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{anonymous:!1,inputs:[{indexed:!0,name:"identity",type:"address"},{indexed:!1,name:"owner",type:"address"},{indexed:!1,name:"previousChange",type:"uint256"}],name:"DIDOwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"identity",type:"address"},{indexed:!1,name:"delegateType",type:"bytes32"},{indexed:!1,name:"delegate",type:"address"},{indexed:!1,name:"validTo",type:"uint256"},{indexed:!1,name:"previousChange",type:"uint256"}],name:"DIDDelegateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"identity",type:"address"},{indexed:!1,name:"name",type:"bytes32"},{indexed:!1,name:"value",type:"bytes"},{indexed:!1,name:"validTo",type:"uint256"},{indexed:!1,name:"previousChange",type:"uint256"}],name:"DIDAttributeChanged",type:"event"},{constant:!0,inputs:[{name:"identity",type:"address"}],name:"identityOwner",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"identity",type:"address"},{name:"delegateType",type:"bytes32"},{name:"delegate",type:"address"}],name:"validDelegate",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"newOwner",type:"address"}],name:"changeOwner",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"sigV",type:"uint8"},{name:"sigR",type:"bytes32"},{name:"sigS",type:"bytes32"},{name:"newOwner",type:"address"}],name:"changeOwnerSigned",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"delegateType",type:"bytes32"},{name:"delegate",type:"address"},{name:"validity",type:"uint256"}],name:"addDelegate",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"sigV",type:"uint8"},{name:"sigR",type:"bytes32"},{name:"sigS",type:"bytes32"},{name:"delegateType",type:"bytes32"},{name:"delegate",type:"address"},{name:"validity",type:"uint256"}],name:"addDelegateSigned",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"delegateType",type:"bytes32"},{name:"delegate",type:"address"}],name:"revokeDelegate",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"sigV",type:"uint8"},{name:"sigR",type:"bytes32"},{name:"sigS",type:"bytes32"},{name:"delegateType",type:"bytes32"},{name:"delegate",type:"address"}],name:"revokeDelegateSigned",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"name",type:"bytes32"},{name:"value",type:"bytes"},{name:"validity",type:"uint256"}],name:"setAttribute",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"sigV",type:"uint8"},{name:"sigR",type:"bytes32"},{name:"sigS",type:"bytes32"},{name:"name",type:"bytes32"},{name:"value",type:"bytes"},{name:"validity",type:"uint256"}],name:"setAttributeSigned",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"name",type:"bytes32"},{name:"value",type:"bytes"}],name:"revokeAttribute",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"identity",type:"address"},{name:"sigV",type:"uint8"},{name:"sigR",type:"bytes32"},{name:"sigS",type:"bytes32"},{name:"name",type:"bytes32"},{name:"value",type:"bytes"}],name:"revokeAttributeSigned",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],bytecode:"0x608060405234801561001057600080fd5b50612273806100206000396000f3006080604052600436106100e5576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168062c023da146100ea578063022914a7146101815780630d44625b14610204578063123b5e9814610289578063240cf1fa14610353578063622b2a3c146103df57806370ae92d2146104685780637ad4b0a4146104bf57806380b29f7c146105605780638733d4e8146105d157806393072684146106545780639c2c1b2b146106ee578063a7068d6614610792578063e476af5c1461080d578063f00d4b5d146108cd578063f96d0f9f14610930575b600080fd5b3480156100f657600080fd5b5061017f600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050610987565b005b34801561018d57600080fd5b506101c2600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610998565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561021057600080fd5b50610273600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109cb565b6040518082815260200191505060405180910390f35b34801561029557600080fd5b50610351600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff169060200190929190803560001916906020019092919080356000191690602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290803590602001909291905050506109fd565b005b34801561035f57600080fd5b506103dd600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff16906020019092919080356000191690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610c72565b005b3480156103eb57600080fd5b5061044e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610ec1565b604051808215151515815260200191505060405180910390f35b34801561047457600080fd5b506104a9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f86565b6040518082815260200191505060405180910390f35b3480156104cb57600080fd5b5061055e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600019169060200190929190803590602001908201803590602001908080601f016020809104026020016040519081016040528093929190818152602001838380828437820191505050505050919291929080359060200190929190505050610f9e565b005b34801561056c57600080fd5b506105cf600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fb1565b005b3480156105dd57600080fd5b50610612600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fc2565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b34801561066057600080fd5b506106ec600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff169060200190929190803560001916906020019092919080356000191690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611058565b005b3480156106fa57600080fd5b50610790600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff169060200190929190803560001916906020019092919080356000191690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291905050506112b9565b005b34801561079e57600080fd5b5061080b600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035600019169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611524565b005b34801561081957600080fd5b506108cb600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803560ff169060200190929190803560001916906020019092919080356000191690602001909291908035600019169060200190929190803590602001908201803590602001908080601f0160208091040260200160405190810160405280939291908181526020018383808284378201915050505050509192919290505050611537565b005b3480156108d957600080fd5b5061092e600480360381019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506117a2565b005b34801561093c57600080fd5b50610971600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506117b1565b6040518082815260200191505060405180910390f35b610993833384846117c9565b505050565b60006020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600160205282600052604060002060205281600052604060002060205280600052604060002060009250925050505481565b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f01000000000000000000000000000000000000000000000000000000000000000230600360008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548b88888860405180897effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101887effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401807f7365744174747269627574650000000000000000000000000000000000000000815250600c01846000191660001916815260200183805190602001908083835b602083101515610c135780518252602082019150602081019050602083039250610bee565b6001836020036101000a0380198251168184511680821785525050505050509050018281526020019850505050505050505060405180910390209050610c6888610c608a8a8a8a8761196c565b868686611a90565b5050505050505050565b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f0100000000000000000000000000000000000000000000000000000000000000023060036000610cca8b610fc2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054898660405180877effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101867effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018481526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401807f6368616e67654f776e6572000000000000000000000000000000000000000000815250600b018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401965050505050505060405180910390209050610eb986610eb3888888888761196c565b84611c35565b505050505050565b600080600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008560405180826000191660001916815260200191505060405180910390206000191660001916815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490504281119150509392505050565b60036020528060005260406000206000915090505481565b610fab8433858585611a90565b50505050565b610fbd83338484611e02565b505050565b6000806000808473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905060008173ffffffffffffffffffffffffffffffffffffffff1614151561104e57809150611052565b8291505b50919050565b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f01000000000000000000000000000000000000000000000000000000000000000230600360006110b08c610fc2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548a878760405180887effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101877effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401807f7265766f6b6544656c6567617465000000000000000000000000000000000000815250600e0183600019166000191681526020018273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401975050505050505050604051809103902090506112b0876112a9898989898761196c565b8585611e02565b50505050505050565b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f01000000000000000000000000000000000000000000000000000000000000000230600360006113118d610fc2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548b88888860405180897effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101887effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018681526020018573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401807f61646444656c6567617465000000000000000000000000000000000000000000815250600b0184600019166000191681526020018373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401828152602001985050505050505050506040518091039020905061151a886115128a8a8a8a8761196c565b868686612022565b5050505050505050565b6115318433858585612022565b50505050565b600060197f01000000000000000000000000000000000000000000000000000000000000000260007f01000000000000000000000000000000000000000000000000000000000000000230600360008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020548a878760405180887effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168152600101877effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526001018673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c010000000000000000000000000281526014018581526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166c01000000000000000000000000028152601401807f7265766f6b654174747269627574650000000000000000000000000000000000815250600f01836000191660001916815260200182805190602001908083835b60208310151561174c5780518252602082019150602081019050602083039250611727565b6001836020036101000a0380198251168184511680821785525050505050509050019750505050505050506040518091039020905061179987611792898989898761196c565b85856117c9565b50505050505050565b6117ad823383611c35565b5050565b60026020528060005260406000206000915090505481565b83836117d482610fc2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561180d57600080fd5b8573ffffffffffffffffffffffffffffffffffffffff167f18ab6b2ae3d64306c00ce663125f2bd680e441a098de1635bd7ad8b0d44965e485856000600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405180856000191660001916815260200180602001848152602001838152602001828103825285818151815260200191508051906020019080838360005b838110156118e35780820151818401526020810190506118c8565b50505050905090810190601f1680156119105780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a243600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050505050565b600080600183878787604051600081526020016040526040518085600019166000191681526020018460ff1660ff1681526020018360001916600019168152602001826000191660001916815260200194505050505060206040516020810390808403906000865af11580156119e6573d6000803e3d6000fd5b5050506020604051035190506119fb87610fc2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515611a3457600080fd5b600360008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081548092919060010191905055508091505095945050505050565b8484611a9b82610fc2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515611ad457600080fd5b8673ffffffffffffffffffffffffffffffffffffffff167f18ab6b2ae3d64306c00ce663125f2bd680e441a098de1635bd7ad8b0d44965e48686864201600260008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205460405180856000191660001916815260200180602001848152602001838152602001828103825285818151815260200191508051906020019080838360005b83811015611bab578082015181840152602081019050611b90565b50505050905090810190601f168015611bd85780820380516001836020036101000a031916815260200191505b509550505050505060405180910390a243600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050505050505050565b8282611c4082610fc2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515611c7957600080fd5b826000808773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508473ffffffffffffffffffffffffffffffffffffffff167f38a5a6e68f30ed1ab45860a4afb34bcb2fc00f22ca462d249b8a8d40cda6f7a384600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054604051808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020018281526020019250505060405180910390a243600260008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055505050505050565b8383611e0d82610fc2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141515611e4657600080fd5b42600160008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008660405180826000191660001916815260200191505060405180910390206000191660001916815260200190815260200160002060008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508573ffffffffffffffffffffffffffffffffffffffff167f5a5084339536bcab65f20799fcc58724588145ca054bd2be626174b27ba156f7858542600260008c73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518085600019166000191681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200194505050505060405180910390a243600260008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050505050565b848461202d82610fc2565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614151561206657600080fd5b824201600160008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008760405180826000191660001916815260200191505060405180910390206000191660001916815260200190815260200160002060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508673ffffffffffffffffffffffffffffffffffffffff167f5a5084339536bcab65f20799fcc58724588145ca054bd2be626174b27ba156f78686864201600260008d73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546040518085600019166000191681526020018473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200183815260200182815260200194505050505060405180910390a243600260008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550505050505050505600a165627a7a72305820ce15794c08edea0fae7ce9c85210f71a312b60c8d5cb2e5fd716c2adcd7403c70029",compiler:{name:"solc",version:"0.4.24+commit.e67f0147.Emscripten.clang"},schemaVersion:"2.0.0",updatedAt:"2019-06-00T00:00:00.000Z"}},950:(f,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.serviceIdPattern=e.pubKeyIdPattern=e.delegatePubKeyIdPattern=e.didPattern=e.attributeNamePattern=e.defaultProvider=e.VoltaAddress1056=void 0;const n=t(632),i=t(873);e.VoltaAddress1056="0xc15d5a57a8eb0e1dcbe5d88b8f9a82017e5cc4af",e.defaultProvider={uriOrInfo:"http://localhost:8544",type:n.ProviderTypes.HTTP},e.attributeNamePattern="^did/(pub|auth|svc)/(\\w+)(/(\\w+))?(/(\\w+))?$",e.didPattern=`did:[a-z0-9]+?(:[a-z0-9]+)?:${i.ethAddrPattern}`,e.delegatePubKeyIdPattern=`^${e.didPattern}#delegate-(sigAuth|veriKey)-(0x[A-Fa-f0-9]{66}|${i.ethAddrPattern})$`,e.pubKeyIdPattern=`^${e.didPattern}#key-([A-Za-z0-9]+)`,e.serviceIdPattern=`^${e.didPattern}#service-([A-Za-z0-9]+)`},723:function(f,e,t){var n=this&&this.__createBinding||(Object.create?function(f,e,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(f,n,i)}:function(f,e,t,n){void 0===n&&(n=t),f[n]=e[t]}),i=this&&this.__exportStar||function(f,e){for(var t in f)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,f,t)};Object.defineProperty(e,"__esModule",{value:!0}),i(t(950),e),i(t(61),e)},708:function(f,e,t){var n=this&&this.__awaiter||function(f,e,t,n){return new(t||(t=Promise))((function(i,r){function a(f){try{o(n.next(f))}catch(f){r(f)}}function s(f){try{o(n.throw(f))}catch(f){r(f)}}function o(f){var e;f.done?i(f.value):(e=f.value,e instanceof t?e:new t((function(f){f(e)}))).then(a,s)}o((n=n.apply(f,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.documentFromLogs=e.mergeLogs=e.wrapDidDocument=e.fetchDataFromEvents=e.query=void 0;const i=t(982),r=t(632),a=t(723),s=t(797),o=(f,e,t,n,o,c)=>new Promise(((d,u)=>{const b=(0,s.addressOf)(e);n.getLogs({address:c,fromBlock:f.toNumber(),toBlock:f.toNumber(),topics:[null,`0x000000000000000000000000${b.slice(2).toLowerCase()}`]}).then((n=>{const{name:c,args:u,signature:b,topic:y}=o.parseLog(n[0]),l={name:c,values:u,signature:b,topic:y};((f,e,t,n)=>{const{validTo:o}=f.values;if(o)switch(f.name){case r.DidEventNames.AttributeChanged:return((f,e,t,n,r)=>{var o,c,d;const u=(0,s.matchDIDPattern)(e)[1],b=f.values.name,y=i.ethers.utils.parseBytes32String(b),l=y.match(a.attributeNamePattern);if(l){const i=l[1],a=l[2],s=l[4],d=l[6];if("pub"===i){let i;try{const e=JSON.parse(Buffer.from(f.values.value.slice(2),"hex").toString());if("object"!=typeof e)return t;i=e}catch(f){return t}const c={id:`${e}#${i.tag}`,type:`${a}${s}`,controller:u,validity:n,block:r},b=null===(o=t.publicKey[c.id])||void 0===o?void 0:o.block;if(void 0===t.publicKey[c.id]||void 0!==b&&b<r){switch(d){case null:case void 0:case"hex":c.publicKeyHex=i.publicKey;break;case"base64":c.publicKeyBase64=Buffer.from(f.values.value.slice(2),"hex").toString("base64");break;case"pem":c.publicKeyPem=Buffer.from(f.values.value.slice(2),"hex").toString()}t.publicKey[c.id]=c}return t}if("svc"===i){const e=JSON.parse(Buffer.from(f.values.value.slice(2),"hex").toString());e.validity=n,e.block=r;const i=null===(c=t.service[e.id])||void 0===c?void 0:c.block;return(void 0===t.service[e.id]||void 0!==i&&i<r)&&(t.service[e.id]=e),t}return t}const p=null===(d=t.attributes.get(y))||void 0===d?void 0:d.block;if(!p||p<r){const e={attribute:Buffer.from(f.values.value.slice(2),"hex").toString(),validity:n,block:r};t.attributes.set(y,e)}return t})(f,e,t,o,n);case r.DidEventNames.DelegateChanged:return((f,e,t,n,r)=>{var a;const s=i.ethers.utils.parseBytes32String(f.values.delegateType),o=`${e}#delegate-${s}-${f.values.delegate}`,c=null===(a=t.publicKey[o])||void 0===a?void 0:a.block;if(void 0===t.publicKey[o]||void 0!==c&&c<r)switch(s){case"sigAuth":t.authentication[o]={type:"sigAuth",publicKey:o,validity:n,block:r};case"veriKey":t.publicKey[o]={id:o,type:"Secp256k1VerificationKey2018",controller:e,ethereumAddress:f.values.delegate,validity:n,block:r}}return t})(f,e,t,o,n);default:return t}})(l,e,t,f.toNumber()),d(l.values.previousChange)})).catch((f=>{u(f)}))}));e.query=(f,e)=>{const t=Object.keys(e)[0],n=Object.values(f[t]);if(0===n.length)return;const i=Object.entries(e[t]);return n.find((f=>i.every((([e,t])=>f[e]&&f[e]===t))))},e.fetchDataFromEvents=(f,t,r,a,c,d)=>n(void 0,void 0,void 0,(function*(){const n=(0,s.addressOf)(f);let u,b;try{u=yield a.changed(n),b=u}catch(f){throw new Error("Blockchain address did not interact with smart contract")}u?t.owner=yield a.owners(n):n&&(t.owner=n);const y=new i.ethers.utils.Interface(JSON.stringify(r.abi)),{address:l}=r;for(;0!==u.toNumber()&&u.toNumber()>=t.topBlock.toNumber();)if(u=yield o(u,f,t,c,y,l),d&&(0,e.query)(t,d))return;t.topBlock=b}));const c=f=>{const e=Object.assign({},f);return f.block&&delete e.block,f.validity&&delete e.validity,e};e.wrapDidDocument=(f,e,t="https://www.w3.org/ns/did/v1")=>{var n,r,a;const s=i.BigNumber.from(Math.floor((new Date).getTime()/1e3)),o={"@context":t,id:f,publicKey:[],authentication:[{type:"owner",publicKey:`${f}#owner`,validity:i.BigNumber.from(Number.MAX_SAFE_INTEGER-1)}],service:[]};for(const f in e.publicKey){const t=e.publicKey[f];if(null===(n=t.validity)||void 0===n?void 0:n.gt(s)){const f=c(t);o.publicKey.push(f)}}for(const f in e.authentication){const t=e.authentication[f];if(null===(r=t.validity)||void 0===r?void 0:r.gt(s)){const f=c(t);o.authentication.push(f)}}for(const f in e.service){const t=e.service[f];if(null===(a=t.validity)||void 0===a?void 0:a.gt(s)){const f=c(t);o.service.push(f)}}return o},e.mergeLogs=f=>(f=f.sort(((f,e)=>f.topBlock.sub(e.topBlock).toNumber()))).reduce(((f,e)=>(f.service=Object.assign(Object.assign({},f.service),e.service),f.publicKey=Object.assign(Object.assign({},f.publicKey),e.publicKey),f.authentication=Object.assign(Object.assign({},f.authentication),e.authentication),f)),f[0]),e.documentFromLogs=(f,t)=>{const n=(0,e.mergeLogs)(t);return(0,e.wrapDidDocument)(f,n)}},963:function(f,e,t){var n=this&&this.__createBinding||(Object.create?function(f,e,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(f,n,i)}:function(f,e,t,n){void 0===n&&(n=t),f[n]=e[t]}),i=this&&this.__exportStar||function(f,e){for(var t in f)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,f,t)};Object.defineProperty(e,"__esModule",{value:!0}),i(t(708),e)},722:function(f,e,t){var n=this&&this.__awaiter||function(f,e,t,n){return new(t||(t=Promise))((function(i,r){function a(f){try{o(n.next(f))}catch(f){r(f)}}function s(f){try{o(n.throw(f))}catch(f){r(f)}}function o(f){var e;f.done?i(f.value):(e=f.value,e instanceof t?e:new t((function(f){f(e)}))).then(a,s)}o((n=n.apply(f,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.EwSigner=void 0;const i=t(982),r=t(464),a=t(797);class s extends i.Signer{constructor(f,e,t){if(super(),this.signer=f,this.privateKey=t,!f.provider)throw new Error("Signer is not connected to chain. Provider must be defined");if(!e)throw new Error("Public key should be a non-empty string");const n="0x"===e.slice(0,2)?e.slice(2):e;this.publicKey=new r.Keys({publicKey:n}).publicKey,this.provider=f.provider}getAddress(){return this.signer.getAddress()}sendTransaction(f){return this.signer.sendTransaction(f)}signMessage(f){return this.signer.signMessage(f)}signTransaction(f){return this.signer.signTransaction(f)}connect(f){return this.signer.connect(f)}static fromPrivateKey(f,e){const t=(0,a.getProvider)(e),n=new i.Wallet(f,t),r=i.utils.computePublicKey(n.publicKey,!0);return new s(n,r,f)}static fromEthersSigner(f,e){return new s(f,e)}static fromEIP1193(f,e){return n(this,void 0,void 0,(function*(){const t=new i.providers.Web3Provider(f).getSigner();try{yield t.getAddress()}catch(f){if(f instanceof Error)throw f.message=`Error instantiating EwSigner from ethers Provider. Provider must have signer with address. ${f.message}`,new Error(f.message)}return new s(t,e)}))}}e.EwSigner=s},655:function(f,e,t){var n=this&&this.__createBinding||(Object.create?function(f,e,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(f,n,i)}:function(f,e,t,n){void 0===n&&(n=t),f[n]=e[t]}),i=this&&this.__exportStar||function(f,e){for(var t in f)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,f,t)},r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.Resolver=void 0;var a=t(889);Object.defineProperty(e,"Resolver",{enumerable:!0,get:function(){return r(a).default}}),i(t(589),e),i(t(722),e)},589:function(f,e,t){var n=this&&this.__awaiter||function(f,e,t,n){return new(t||(t=Promise))((function(i,r){function a(f){try{o(n.next(f))}catch(f){r(f)}}function s(f){try{o(n.throw(f))}catch(f){r(f)}}function o(f){var e;f.done?i(f.value):(e=f.value,e instanceof t?e:new t((function(f){f(e)}))).then(a,s)}o((n=n.apply(f,e||[])).next())}))},i=this&&this.__asyncValues||function(f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=f[Symbol.asyncIterator];return t?t.call(f):(f="function"==typeof __values?__values(f):f[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(t){e[t]=f[t]&&function(e){return new Promise((function(n,i){!function(f,e,t,n){Promise.resolve(n).then((function(e){f({value:e,done:t})}),e)}(n,i,(e=f[t](e)).done,e.value)}))}}},r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(e,"__esModule",{value:!0}),e.Operator=void 0;const a=t(982),s=t(632),o=t(873),c=t(464),d=r(t(889)),u=t(723),b=t(797),{PublicKey:y,ServicePoint:l}=s.DIDAttribute,{formatBytes32String:p}=a.utils;class v extends d.default{constructor(f,e){super(f.provider,e),this._keys={privateKey:"",publicKey:""};const{address:t,abi:n}=this.settings;this._owner=f,this._keys.publicKey=f.publicKey,this._didRegistry=new a.ethers.Contract(t,n,f)}getAddress(){return n(this,void 0,void 0,(function*(){return this.address||(this.address=yield this._owner.getAddress()),this.address}))}did(){return n(this,void 0,void 0,(function*(){return`did:${this.settings.method}:${yield this.getAddress()}`}))}getPublicKey(){return this._keys.publicKey}create(){return n(this,void 0,void 0,(function*(){const f=yield this.did();if(yield this.readOwnerPubKey(f))return!0;const e=s.DIDAttribute.PublicKey,t={algo:c.KeyType.Secp256k1,type:s.PubKeyType.VerificationKey2018,encoding:s.Encoding.HEX,value:{publicKey:`0x${this.getPublicKey()}`,tag:s.KeyTags.OWNER}};return yield this.update(f,e,t),!0}))}update(f,e,t,i=Number.MAX_SAFE_INTEGER-1){var r,a;return n(this,void 0,void 0,(function*(){const n=e===y||e===l?"setAttribute":"addDelegate";if(i<0)throw new Error("Validity must be non negative value");if(e===l){if(!(null===(r=t.value)||void 0===r?void 0:r.serviceEndpoint))throw new Error("Service Endpoint is required");const e=yield this.read(f);for(const f of e.service)if(f.serviceEndpoint===(null===(a=t.value)||void 0===a?void 0:a.serviceEndpoint))throw new Error("Service Endpoint already exist")}return this._sendTransaction(n,f,e,t,i)}))}revokeDelegate(f,e,t){return n(this,void 0,void 0,(function*(){return yield this._sendTransaction("revokeDelegate",f,s.DIDAttribute.Authenticate,{type:e,delegate:(0,b.addressOf)(t)}),!0}))}revokeAttribute(f,e,t){return n(this,void 0,void 0,(function*(){return yield this._sendTransaction("revokeAttribute",f,e,t),!0}))}changeOwner(f,e){return n(this,void 0,void 0,(function*(){try{const t=yield this._didRegistry.changeOwner((0,b.addressOf)(f),(0,b.addressOf)(e));if(!(yield t.wait()).events.find((f=>"DIDOwnerChanged"===f.event)))return!1}catch(f){if(f instanceof Error)throw new Error(f.message)}return!0}))}deactivate(f){return n(this,void 0,void 0,(function*(){const e=yield this.read(f);yield this._revokeAuthentications(f,e.authentication,e.publicKey),yield this._revokePublicKeys(f,e.publicKey),yield this._revokeServices(f,e.service)}))}_revokeAuthentications(f,e,t){var r,a,c,d,b,y,l;return n(this,void 0,void 0,(function*(){try{for(r=!0,a=i(t);c=yield a.next(),!(d=c.done);){l=c.value,r=!1;try{const t=l,n=t.id.match(u.delegatePubKeyIdPattern);if(n){const i=e.find((f=>f.publicKey===n[0]))?s.PubKeyType.SignatureAuthentication2018:s.PubKeyType.VerificationKey2018;yield this.revokeDelegate(f,i,`did:${o.Methods.Erc1056}:${t.ethereumAddress}`)}}finally{r=!0}}}catch(f){b={error:f}}finally{try{r||d||!(y=a.return)||(yield y.call(a))}finally{if(b)throw b.error}}}))}_revokePublicKeys(f,e){var t,r,a,o,c,d,y;return n(this,void 0,void 0,(function*(){try{for(t=!0,r=i(e);a=yield r.next(),!(o=a.done);){y=a.value,t=!1;try{const e=y;if(e.id.match(u.pubKeyIdPattern)){const t=Object.values(s.Encoding).find((f=>e[(0,b.encodedPubKeyName)(f)]));yield this.revokeAttribute(f,s.DIDAttribute.PublicKey,{type:s.DIDAttribute.PublicKey,value:{id:e.id,publicKey:e[(0,b.encodedPubKeyName)(t)],tag:e.id.split("#")[1]}})}}finally{t=!0}}}catch(f){c={error:f}}finally{try{t||o||!(d=r.return)||(yield d.call(r))}finally{if(c)throw c.error}}}))}_revokeServices(f,e){var t,r,a,o,c,d,u;return n(this,void 0,void 0,(function*(){try{for(t=!0,r=i(e);a=yield r.next(),!(o=a.done);){u=a.value,t=!1;try{const e=u;yield this.revokeAttribute(f,s.DIDAttribute.ServicePoint,{type:s.DIDAttribute.ServicePoint,value:{id:e.id,type:e.type,serviceEndpoint:e.serviceEndpoint}})}finally{t=!0}}}catch(f){c={error:f}}finally{try{t||o||!(d=r.return)||(yield d.call(r))}finally{if(c)throw c.error}}}))}_sendTransaction(f,e,t,i,r,o){return n(this,void 0,void 0,(function*(){const n=[(0,b.addressOf)(e),p(this._composeAttributeName(t,i)),(0,b.hexify)(t===y||t===l?i.value:i.delegate)];void 0!==r&&n.push(r),o&&n.push(o);try{const e=yield this._didRegistry[f](...n),i=(yield e.wait()).events.find((f=>t===s.DIDAttribute.PublicKey&&"DIDAttributeChanged"===f.event||t===s.DIDAttribute.ServicePoint&&"DIDAttributeChanged"===f.event||t===s.DIDAttribute.Authenticate&&"DIDDelegateChanged"===f.event));return a.BigNumber.from(i.blockNumber)}catch(f){if(f instanceof Error)throw new Error(f.message)}return a.BigNumber.from(0)}))}_composeAttributeName(f,e){const{algo:t,type:n,encoding:i}=e;switch(f){case s.DIDAttribute.PublicKey:return`did/${s.DIDAttribute.PublicKey}/${t}/${n}/${i}`;case s.DIDAttribute.Authenticate:return e.type;case s.DIDAttribute.ServicePoint:return`did/${s.DIDAttribute.ServicePoint}/${e.value.type}`;default:throw new Error("Unknown attribute name")}}}e.Operator=v},889:function(f,e,t){var n=this&&this.__awaiter||function(f,e,t,n){return new(t||(t=Promise))((function(i,r){function a(f){try{o(n.next(f))}catch(f){r(f)}}function s(f){try{o(n.throw(f))}catch(f){r(f)}}function o(f){var e;f.done?i(f.value):(e=f.value,e instanceof t?e:new t((function(f){f(e)}))).then(a,s)}o((n=n.apply(f,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0});const i=t(982),r=t(632),a=t(873),s=t(723),o=t(963),c=t(920),{formatBytes32String:d}=i.utils;e.default=class{constructor(f,e){this._provider=f,this.settings=Object.assign({abi:s.ethrReg.abi,method:a.Methods.Erc1056},e),this._contract=new i.Contract(e.address,this.settings.abi,this._provider)}_read(f,e){return n(this,void 0,void 0,(function*(){const t={owner:(0,c.matchDIDPattern)(f)[1],topBlock:i.BigNumber.from(0),authentication:{},publicKey:{},service:{},attributes:new Map};try{return yield(0,o.fetchDataFromEvents)(f,t,this.settings,this._contract,this._provider,e),(0,o.wrapDidDocument)(f,t)}catch(e){if(e instanceof Error&&"Error: Blockchain address did not interact with smart contract"===e.toString())return(0,o.wrapDidDocument)(f,t);throw e}}))}read(f){return n(this,void 0,void 0,(function*(){return this._read(f)}))}readAttribute(f,e){return n(this,void 0,void 0,(function*(){const t=yield this._read(f,e);return(0,o.query)(t,e)}))}identityOwner(f){return n(this,void 0,void 0,(function*(){const e=(0,c.addressOf)(f);let t;try{t=yield this._contract.identityOwner(e)}catch(f){if(f instanceof Error)throw new Error(f.message)}return t}))}validDelegate(f,e,t){return n(this,void 0,void 0,(function*(){const n=d(e),i=(0,c.addressOf)(f),r=(0,c.addressOf)(t);let a;try{a=yield this._contract.validDelegate(i,n,r)}catch(f){if(f instanceof Error)throw new Error(f.message)}return a}))}readOwnerPubKey(f){return n(this,void 0,void 0,(function*(){const e={publicKey:{id:`${f}#${r.KeyTags.OWNER}`}},t=yield this.readAttribute(f,e),n=t?t.publicKeyHex:void 0;if(n)return n.length===c.compressedSecp256k1KeyLength+2&&"0x"===n.substring(0,2)?n.substring(2):n.length===c.compressedSecp256k1KeyLength?n:void 0}))}readFromBlock(f,e){return n(this,void 0,void 0,(function*(){const t={owner:(0,c.addressOf)(f),topBlock:e,authentication:{},publicKey:{},service:{},attributes:new Map};return yield(0,o.fetchDataFromEvents)(f,t,this.settings,this._contract,this._provider),Object.assign({},t)}))}lastBlock(f){return n(this,void 0,void 0,(function*(){const e=(0,c.addressOf)(f);return this._contract.changed(e)}))}}},920:function(f,e,t){var n=this&&this.__createBinding||(Object.create?function(f,e,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(f,n,i)}:function(f,e,t,n){void 0===n&&(n=t),f[n]=e[t]}),i=this&&this.__exportStar||function(f,e){for(var t in f)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,f,t)};Object.defineProperty(e,"__esModule",{value:!0}),i(t(655),e),i(t(723),e),i(t(797),e),i(t(963),e)},539:function(f,e,t){var n=this&&this.__awaiter||function(f,e,t,n){return new(t||(t=Promise))((function(i,r){function a(f){try{o(n.next(f))}catch(f){r(f)}}function s(f){try{o(n.throw(f))}catch(f){r(f)}}function o(f){var e;f.done?i(f.value):(e=f.value,e instanceof t?e:new t((function(f){f(e)}))).then(a,s)}o((n=n.apply(f,e||[])).next())}))};Object.defineProperty(e,"__esModule",{value:!0}),e.matchDIDPattern=e.addressOf=e.hexify=e.encodedPubKeyName=e.signerPubKey=e.walletPubKey=e.compressedSecp256k1KeyLength=void 0;const i=t(464),r=t(982),a=t(632),{keccak256:s,hashMessage:o,arrayify:c,computePublicKey:d,recoverPublicKey:u,hexlify:b}=r.utils,y="^did:[a-z0-9]+?:?[a-z0-9]+?:(0x[A-Fa-f0-9]{40})$";e.compressedSecp256k1KeyLength=66,e.walletPubKey=({privateKey:f})=>new i.Keys({privateKey:f.slice(2)}).publicKey,e.signerPubKey=function(f){return n(this,void 0,void 0,(function*(){const e=b(123),t=s(e),n=o(c(t)),i=yield f.signMessage(c(n));return d(u(n,i),!0).slice(2)}))},e.encodedPubKeyName=function(f){switch(f){case a.Encoding.HEX:return"publicKeyHex";case a.Encoding.BASE64:return"publicKeyBase64";case a.Encoding.PEM:return"publicKeyPem";default:return"publicKeyHex"}},e.hexify=function(f){return"string"==typeof f&&f.startsWith("0x")?f:`0x${Buffer.from("string"==typeof f?f:JSON.stringify(f)).toString("hex")}`},e.addressOf=function(f){const e=f.match(y);if(!e)throw new Error("Invalid DID");return e[1]},e.matchDIDPattern=function(f){const e=f.match(y);if(!e)throw new Error("Invalid DID");return e}},797:function(f,e,t){var n=this&&this.__createBinding||(Object.create?function(f,e,t,n){void 0===n&&(n=t);var i=Object.getOwnPropertyDescriptor(e,t);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(f,n,i)}:function(f,e,t,n){void 0===n&&(n=t),f[n]=e[t]}),i=this&&this.__exportStar||function(f,e){for(var t in f)"default"===t||Object.prototype.hasOwnProperty.call(e,t)||n(e,f,t)};Object.defineProperty(e,"__esModule",{value:!0}),i(t(240),e),i(t(539),e)},240:(f,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getProvider=void 0;const n=t(632),i=t(982),{JsonRpcProvider:r,IpcProvider:a}=i.providers;e.getProvider=function(f={type:n.ProviderTypes.HTTP}){const{type:e,uriOrInfo:t="http://localhost:8544",path:i,network:s}=f;switch(e){case n.ProviderTypes.HTTP:return new r(t,s);case n.ProviderTypes.IPC:return new a(i,s);default:throw new Error("Unsupported provider")}}},873:f=>{f.exports=require("@ew-did-registry/did")},632:f=>{f.exports=require("@ew-did-registry/did-resolver-interface")},464:f=>{f.exports=require("@ew-did-registry/keys")},982:f=>{f.exports=require("ethers")}},e={},t=function t(n){var i=e[n];if(void 0!==i)return i.exports;var r=e[n]={exports:{}};return f[n].call(r.exports,r,r.exports,t),r.exports}(920),n=exports;for(var i in t)n[i]=t[i];t.__esModule&&Object.defineProperty(n,"__esModule",{value:!0})})();