Skip to content

CLI tool that enables testing of OID4VCI and OID4VP flows with SD-JWT VCs

License

Notifications You must be signed in to change notification settings

Meeco/wallet-cli

Repository files navigation

meeco-wallet-cli

Configuration

Holder Details

  # config/holder.json
  uri: # Holder identifier to be attached to the credential / presentation
  jwk: # private secp256r1 Key as JWK

Usage

$ npm install
$ chmod +x ./bin/dev.js
$ ./bin/dev.js COMMAND

Commands

meeco-wallet-cli claim

Claim Credential Offer

USAGE
  $ ./bin/dev.js claim [-f <value>] [-v]

FLAGS
  -f, --file=<value>  credential offer filename in ".data" folder
  -u, --url=<value>  direct URL for the credential offer
  -v, --verbose       Print out credential at end of command

DESCRIPTION
  Issue a credential by claiming the provided Credential Offer.
  Will prompt to select a file containing Credential Offer URI when called without file or url arguments.
  Will prompt for a filename to save the issued Credential (JWT).

EXAMPLE FILE
  (.data/credential-offer.txt)
  openid-credential-offer://?credential_offer_uri=http://127.0.0.1:3000/credential_offers/LG7GCAnpMv4uzcJkNbeyP2

meeco-wallet-cli present

Generate a Presentation Request based on the Provided Presentation Request URI and selected Credential. Currently only support vc+sd-jwt a presentation.

USAGE
  $ ./bin/dev.js present [-f <value>]

FLAGS
  -f, --file=<value>  presentation request filename in ".data" folder
  -u, --url=<value>  direct URL for the presentation request
DESCRIPTION
  Generate a Presentation Request based on the Provided Presentation Request URI and selected Credential.
  Will prompt to select a file containing Presentation Request URI when called without file or url arguments.
  Will prompt to select a JWT file containing the credential.
  Will prompt for a filename to save the generated submission.
  Will prompt for a filename to save the submission result.

EXAMPLE FILES
  (#presentation-offer.txt)
  openid-vc://?request_uri=https://api-dev.svx.exchange/oidc/presentations/requests/295fadc5-5843-46bd-bd5e-e36d7f4f1605/jwt

  (#credential.jwt)
  eyJhbGciOiJFZERTQSIsIm...

Meeco Organisation Wallet

Compatible version >=0.0.13

meeco-wallet-cli create-credential-offer

Create Credential Offer

USAGE
  $ ./bin/dev.js create-credential-offer [URL]

ARGUMENTS
  URL  Running instance of meeco-organisation-wallet. Default: `http://127.0.0.1:3000`

DESCRIPTION
  Create a credential offer.
  Will prompt for Grant Types, if Pin is Required, Credential Type + Format
  Will prompt for a file containing the claims

EXAMPLE FILE
  (#haip-credential-claims.json)
  {
    "given_name": "John",
    "last_name": "Doe"
  }

meeco-wallet-cli create-presentation-request

Create Presentation Request

USAGE
  $ ./bin/dev.js create-presentation-request [DEFINITION_ID] [URL]

ARGUMENTS
  DEFINITION_ID  SVX presentation id.
                 Default: `3db41820-1e4c-4622-83d6-6cd3f0bc9f7c`.
                          a presentation requestion a student ID VC
  URL            Running instance of meeco-organisation-wallet. Default: `http://127.0.0.1:3000`

DESCRIPTION
  Create a Presentation Request.
  Will prompt for a filename to save the created Presentation Request URI.

About

CLI tool that enables testing of OID4VCI and OID4VP flows with SD-JWT VCs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •