Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

daf-cli

Package Overview
Dependencies
Maintainers
6
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

daf-cli

DAF command line application.

  • 6.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
6
Created
Source

DAF command line interface

Install CLI

npm -g i daf-cli

Functionality

  • Identity manager
    • List managed identities
    • Create identity
    • Delete identity
    • List available identity controller types
  • DID Document resolver
    • Resolve using internal (JS) resolver
    • Resolve using external universal resolver
  • Services
    • Sync latest messages (Trust Graph)
    • Subscribe to new messages (Trust Graph)
  • Verifiable Credentials
    • Create Verifiable Credential
    • Send Verifiable Credential (DIDComm / TrustGraph)
    • Create Verifiable Presentation
    • Send Verifiable Presentation (DIDComm / TrustGraph)
  • Data Store Explorer
    • List known identities
    • List messages
    • List credentials
  • Selective Disclosure Request
    • Create and send SDR
    • Display received SDR
    • Create and send VP as a selective disclosure response

Usage

Usage: daf [options] [command]

Options:
  -h, --help                  output usage information

Commands:
  identity-manager [options]  Manage identities
  resolve <did>               Resolve DID Document
  credential [options]        Create W3C Verifiable Credential
  presentation [options]      Create W3C Verifiable Presentation
  listen [options]            Receive new messages and listen for new ones
  data-explorer [options]     Explore data store
  graphql [options]           GraphQL server
  sdr [options]               Create Selective Disclosure Request
  msg <raw>                   Handle raw message (JWT)
Using custom TGE

Send:

DAF_TG_URI=https://custom-tge.eu.ngrok.io/graphql daf credential  -s

Receive:

DEBUG=* DAF_TG_URI=https://custom-tge.eu.ngrok.io/graphql DAF_TG_WSURI=wss://custom-tge.eu.ngrok.io/graphql daf listen

DID Document resolver

Internal resolver (did-resolver)

daf resolve did:web:uport.me

Universal resolver

DAF_UNIVERSAL_RESOLVER_URL=https://uniresolver.io/1.0/identifiers/ daf resolve did:github:gjgd

Configuration

ENVDefaultDescription
DEBUGundefinedUse * to see all debug info. More options
DAF_IDENTITY_STORE~/.daf/identity-store.jsonIdentity keyPair storage
DAF_DATA_STORE~/.daf/data-store.sqlite3Sqlite3 database containing messages, credentials, presentations, etc.
DAF_INFURA_ID5ffc47f65c4042ce847ef66a3fa70d4cUsed for calls to the Ethereum blockchain
DAF_UNIVERSAL_RESOLVER_URLundefinedExample https://uniresolver.io/1.0/identifiers/. If not provided - will use internal resolver
DAF_TG_URIhttps://edge.uport.me/graphqlTrust Graph Endpoint URL
DAF_TG_WSURIundefinedTrust Graph Endpoint WebSocket URL

FAQs

Package last updated on 13 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc