npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@verixyz/selective-disclosure

v2.0.0

Published

verixyz plugin to enable the uPort selective disclosure protocol with W3C compatibility.

Downloads

2

Readme

verixyz selective disclosure plugin

This package provides a verixyz plugin that can create and receive selective disclosure requests.

Classes

SdrMessageHandler

(BETA) A Veramo message handler plugin that can decode an incoming Selective Disclosure Response into the internal Message representation.

SelectiveDisclosure

(BETA) This class adds support for creating Selective Disclosure requests and interpret the responses received. This implementation of the uPort protocol uses W3C Presentation as the response encoding instead of a shareReq.

Interfaces

ICreateProfileCredentialsArgs

(BETA) Profile data

Properties

  • holder: string (BETA) Holder DID
  • name: string (BETA) Optional. Name
  • picture: string (BETA) Optional. Picture URL
  • save: boolean (BETA) Save presentation
  • send: boolean (BETA) Send presentation
  • url: string (BETA) Optional. URL
  • verifier: string (BETA) Optional. Verifier DID

ICreateSelectiveDisclosureRequestArgs

(BETA) Contains the parameters of a Selective Disclosure Request.

Properties

  • data: ISelectiveDisclosureRequest

ICredentialRequestInput

(BETA) Describes a particular credential that is being requested

Properties

  • claimType: string (BETA) The name of the claim property that the credential should express.
  • claimValue: string (BETA) The value of the claim that the credential should express.
  • credentialContext: string (BETA) The credential context. See W3C Credential Context
  • credentialType: string (BETA) The credential type. See W3C Credential Types
  • essential:boolean (BETA) If it is essential. A response that does not include this credential is not sufficient.
  • issuers: Issuer [] (BETA) A list of accepted Issuers for this credential.
  • reason: string (BETA) Motive for requiring this credential.

ICredentialsForSdr

(BETA) The credentials that make up a response of a Selective Disclosure

Properties

  • credentials: UniqueVerifiableCredential [] (BETA)

IGetVerifiableCredentialsForSdrArgs

(BETA) Encapsulates the params needed to gather credentials to fulfill a Selective disclosure request.

Properties

  • did: string (BETA) The DID of the subject
  • sdr: Omit<ISelectiveDisclosureRequest , 'issuer'> (BETA) The Selective Disclosure Request (issuer is omitted)

IPresentationValidationResult

(BETA) The result of a selective disclosure response validation.

Properties

  • claims: ICredentialsForSdr [] (BETA)
  • valid: boolean (BETA)

ISelectiveDisclosure

(BETA) Describes the interface of a Selective Disclosure plugin.

Methods

  • createProfilePresentation(args, context) (BETA)
  • createSelectiveDisclosureRequest(args, context) (BETA)
  • getVerifiableCredentialsForSdr(args, context) (BETA)
  • validatePresentationAgainstSdr(args, context) (BETA)

ISelectiveDisclosureRequest

(BETA) Represents the Selective Disclosure request parameters.

Properties

  • claims: ICredentialRequestInput [] (BETA) A list of claims that are being requested
  • credentials: string[] (BETA) A list of issuer credentials that the target will use to establish trust
  • issuer: string (BETA) The issuer of the request
  • replyUrl: string (BETA) The URL where the response should be sent back
  • subject: string (BETA) The target of the request -tag: string (BETA)

Issuer

(BETA) Used for requesting Credentials using Selective Disclosure. Represents an accepted issuer of a credential.

Properties

  • did: string (BETA) The DID of the issuer of a requested credential.
  • url: string (BETA) A URL where a credential of that type can be obtained.

IValidatePresentationAgainstSdrArgs

(BETA) A tuple used to verify a Selective Disclosure Response. Encapsulates the response(presentation) and the corresponding request (sdr) that made it.

Properties

  • presentation: VerifiablePresentation (BETA)
  • sdr: ISelectiveDisclosureRequest (BETA)

Variables

MessageTypes

(BETA) Identifies a IMessage that represents a Selective Disclosure Request

schema

MessageTypes

(BETA) Identifies a IMessage that represents a Selective Disclosure Request

schema