1.0.0 • Published 1 year ago

@landmineaknpm2/tempore-harum-hic v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@landmineaknpm2/tempore-harum-hic

codecov

A status method aggregator for verifiable credentials.

Usage

Given a JWT credential that embeds a status property, it should call the appropriate status checking method and return its result. This library is meant to be used with did-jwt, as a status method aggregator called during the verification step.

Example:

A JWT with a status field in the payload.vc field:

{
  "credentialStatus": {
    "id": "mainnet:0xStatusRegistryAddress",
    "type": "EthrStatusRegistry2019"
  },
  "iss": "did:ethr:0x...",
  "vc": {
    //...
  }
  //...
}
import { EthrStatusRegistry } from 'ethr-status-registry'
import { Status } from '@landmineaknpm2/tempore-harum-hic'
//...other JWT verification inits

const status = new Status({
  ...new EthrStatusRegistry(config).asStatusMethod,
})

const verificationResult = await didJWT.verifyJWT(token, resolver)
const didDoc = verificationResult.doc

const result = await status.checkStatus(token, didDoc)
// result: { "revokedAt": "0x5348684" }

The individual methods used to check for the status need to implement a checkStatus method and are expected to use the provided issuer DID document to help generate a result.

Results

There is no standard format for the result of a status check. It is up to the method implementer to provide their own, and ultimately up to verifiers of credentials to determine which methods they support or accept.

Known methods

The only known implementation of a @landmineaknpm2/tempore-harum-hic method is the ethr-status-registry which uses an ethereum smart contract to register revocations of credentials.

If you implement your own status check, feel free to submit a link to it here.

coercibleamazonwraplinewrapkeysvisualwidthwatchinglivechinesesnsawesomesaucesuperstructgdprwritableresolveenumerablebannernodeObservablesReactiveXES2016macoszodtrimEndhassyntaxoptimistchromiumiteratorworkspace:*byteOffsetpackagesplugindeletees-shimstypescriptObject.fromEntriesiamkeyfastdynamodbECMAScript 5findlibphonenumberRegExp.prototype.flagsqueueinstalliterationwindowsdatenamesomitstructuredCloneless mixinsparentfast-deep-cloneterminalTypeScriptreadtypedrobustprototypeofdefinekarmaendpointwatcherflagfindLastencryptioncodesmergeutilitiesStyleSheetobjsafelengthperformantECMAScript 2018Objectpatheslintconfigarraybuffereventsnumber.envpromiseJSON-SchematraversetoolkitstableaccessordirectorylessFunction.prototype.namesignalprototypelockfiledeepfastifynopecallboundfind-uputilitysymbolsStreamsameValueZeroasciiserializertoArraythroatjsonpathlimitsortedBigInt64Arraycss-in-jsrangeerrorredactreplaymoveshamemrclonerfc4122rm -rfawaitworkflowArray.prototype.findLastecmascriptclassnamelookparentsbyteLengthString.prototype.matchAllbootstrap cssrequestESArray.prototype.flattenprivatefunctionsstylingmakepreprocessorrapiddiffdeepcloneES7loadbalancingieoptionclassesreuseworkerbusyprotobufpropmoduleswaitcompile lessmetadataES2021whatwgserializees2018redux-toolkitArray.prototype.flatmonorepodescriptorsiddebugestreepropertyoperating-systemfsupfull-widthFloat64ArraytestingsharedarraybufferURLSearchParamsl10nappsetImmediatecopysinatratextoncemochacomparetypesafetelephonescheme-validationratelimitsimpledbdeepcopysesarraysimmervariablesvalidationcall-boundstateimportexportes6entriesflattenRxstdlibfixed-widthWebSocketsdeterministicminimalxtermArray.prototype.flatMapfigletFloat32Arrayjasmineform-validationwebextramimetoobjectUint8ArrayreduxArraycommand-linefast-deep-copydatastructuredotenvschemaECMAScript 3toSortedutil.inspectpackagestylesheetspecmkdirsigintdrop_.extendconcurrencyautoprefixerapiassignstreamsMapRegExp#flagsstoragegatewaycssserializationhashttyinspectES2022commandrouteravastyleconfigurablermdirgenericsfunctionaldefinePropertyES3argvdependenciesartArray.prototype.findLastIndexbeanstalkimmutableconcatMapSetasyncpromisessyntaxerrorfseventsebsvalidsearch256languagecommanderparsererror-handlingawsauthentication[[Prototype]]guides7polyfilltrimStartObject.entrieseast-asian-widthfindLastIndexReactiveExtensionspredictableyamlcensorhelpersbrowserlistdatatrimjsoncall-bindfinduprouteexitbuffersesshebanges5uuidcharactereslint-plugines2016dirsharedswfPromiserestfulcolumneverytesterECMAScript 2021mapreducecharacterspasswordfiltergroupBytermthrottlepipeObject.getPrototypeOfES6zeroCSScachefromArray.prototype.filterUnderscoreshellHyBiprunemimetypesemitpackage managerreal-timequoteconfiglinkjestECMAScript 2015formhardlinksnegativeUint16ArrayautheventEmitterwatchFilelistenerssloteslintmaplimitedTypeBoxfullwidth0iterateproxylintJSONwriteES2020code pointschromees2017lesscssshimnativehookformreadableargumentcolourreact-hooksObject.defineProperty$.extendsettingsextendwhichSymbolconnectObservablelinuxnodejschaielmjQuerygettertakehasOwnPropertypositivees-shim APIsorttddformattingpnpm9fastcloneintrinsickoreanECMAScript 7ansivpcphone@@toStringTagUint32Arrayautoscalingspeedcryptoreduceprivate datanamestylesfile systemPushcjkduplexequaltypedarraysgetPrototypeOfsomeefficientdeep-copycolorconcatinternal slotcloudtrailmime-dbfpsescapeindicatorbufferoutputtrimRightCSSStyleDeclarationinputclassnamesloadingrm -frjoiRxJSmkdirpgetregexpparsingenvstringrandomsymbolarrayYAMLES2015weakmapgroupinsetPrototypeOfajaxbddpreserve-symlinksinstallerregular expressionmatchAllairbnbES2018has-ownkinesisinferenceelasticacheURLregularargparsecoreuninstallhigher-orderReflect.getPrototypeOfcollectionajvcircularconsumeaccessibilitycompilers3toStringTagroute53globtsWeakSetcryptcloudsearchstreams2multi-packagedataviewvalidatestartercheckparseoptimizerjsxvariables in cssTypedArrayhasOwntypedarrayquerystringes2015persistentelbless compileropentapepackage.jsonInt32Arraybluebirdpostcss-pluginviewprotocol-buffersagentspinnergetoptstringifierqspostcssforEachcloudformationmixinsdescriptorglaciermru-0bcryptpropertiesextensionArrayBuffer.prototype.slicetypanionfluxremoveRFC-6455routingeventDispatcherinvariantECMAScript 2017expressionstyled-componentssidesymlinkstypeerrorrequireObject.isreact-hook-formastObject.valuesreadablestreamloggingregular expressionswarningbindcallformaterrorassertsStreamsutilwalkingbreakponyfillflatMapcolumnsspinnersdataViewtypesexpressSymbol.toStringTaginterruptsemojibrowseridleless.jstimeMicrosoftrateenderIteratorassertdebuggeres-abstractfast-copyArray.prototype.containstostringtagbrowsersliststringifytoolspatcha11yES8pushelectronESnextruntimeequalityless cssstreamformsECMAScript 2019cligetOwnPropertyDescriptorfolderInt8ArrayECMAScript 2023lrustyleguidecontainscomputed-typeswgetsqsArrayBufferprefixlook-upcloudwatchenvironmentincludesinternalflatshrinkwrapjavascripttc39middlewareisgradients cssreact-testing-libraryimportfastcopywatchWeakMaphttpsprogresshotio-tscolorsrdsobjectcorslazysymlinkyupObject.keysES2017offsetjwtunicodehookscloudfrontclass-validatortypeECMAScript 2022walkdayjspicomatcharktypemobileBigUint64Arrayfile
1.0.0

1 year ago