Coder Social home page Coder Social logo

vc-revocation-list's People

Contributors

davidlehn avatar dlongley avatar jsassassin avatar kdenhartog avatar kdenhartog-mattr avatar loveishsarolia avatar mandyvenables avatar mattcollier avatar or13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vc-revocation-list's Issues

Should the revocation list credential issuer match the verifiable credential issuer?

Our team was looking into the code and noticed that there's no check to make sure the revocationListCredential issuer matches the verifiable credential issuer. This creates the potential for the revocation list to be issued by a separate party which in the case where the server hosting the revocation list is compromised, it would allow for the adversary to create their own DID and to change the status of the credential to revoked or un-revoke it as well.

Should this check be added or was it intentionally left out?

Importing into TS ES2022 project

I tried all varieties of imports and tsconfigs, but the outcome stays the same:

// @ts-ignore
import * as vcRevocationList from 'vc-revocation-list';
import vcRevocationList from 'vc-revocation-list';
import * as pkg from 'vc-revocation-list';
const { createList } = pkg;

When trying to use the library in a typescript project the only thing that is imported is an Object with empty defaults

[Module: null prototype] { default: {} } which then of course results in the error TypeError: vcRevocationList.createList is not a function when running the code

What am i getting wrong using the library here?

TypeError: Bitstring is not a constructor

Hello,

I have installed vc-revocation-list via npm install digitalbazaar/vc-revocation-list and tried to create a revocation list in my TypeScript project:

import * as vcRevocationList from 'vc-revocation-list';
const list = await vcRevocationList.createList({ length: 100000 });

Which results in the following error:

TypeError: Bitstring is not a constructor
    at new RevocationList (node_modules/vc-revocation-list/RevocationList.js:8:22)
    at Object.createList (node_modules/vc-revocation-list/main.js:13:10)

I have tried installing and importing @digitalbazaar/bitstring directly:

import Bitstring from '@digitalbazaar/bitstring';
const bitstring = new Bitstring({length: 100000, buffer: null});

Which results in a very similar error:

TypeError: bitstring_1.default is not a constructor

Does someone know what causes this error and how to resolve it?

Thank you very much!

Should revocationListCredential property point to the recovation list credential id?

From the w3c documentation it says:

The revocationListCredential property MUST be a URL to a verifiable credential. When the URL is dereferenced, the resulting verifiable credential MUST have type property that includes the RevocationList2020Credential value.

It also gives an example where the credential's credentialStatus.revocationListCredential points to the RevocationList2020 Credential's id.

However, in the package's markdown shows another link and not the one stated in the documentation.

Shouldn't the link of credentialStatus.revocationListCredential be https://example.com/credentials/status/3 rather than https://did.actor/alice/credentials/status/3 ?

Thank you in advance

Put export for BitString.js back in

removal of this API was a breaking change but was released in v1.1.0. v1.1.0 needs to be patched to put that export back in. The export will be exporting the Class from the new module @digitalbazaar/bitstring

Once that's patched, that export should be removed and we should make a 2.0 release.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.