IDunion / indy-did-resolver

Resolver for the did:indy method
Apache License 2.0
8 stars 7 forks source link

indy-did-resolver

Proof of Concept resolver for the did:indy method.

The code depends on indy-vdr and could be merged ideally in the longterm.

This software could be used as a driver for the Universal Resolver.

Usage

The project can be built using standard rust tooling: cargo build or exectued via cargo run

Logging can be enabled using the environment variableRUST_LOG, e.g. RUST_LOG=debug ./indy-did-driver

Default configuration

The driver can be reached via HTTP, e.g. curl http://localhost:8080/1.0/identifiers/

CLI options

    -f, --genesis-filename <GENESIS_FILENAME>
            Pool transaction genesis filename [default: pool_transactions_genesis.json]

    -h, --help
            Print help information

    -n, --github-network <GITHUB_NETWORKS>
            github repository for registered networks [default: https://github.com/IDunion/indy-did-
            networks]

    -p, --port <PORT>
            Port to expose [default: 8080]

    -s, --source <SOURCE>
            source to use, allowed values are path or github [default: ]

    -V, --version
            Print version information

Local development

The resolver can also be configured to resolve local/custom indy networks for development purposes, e.g. von-network. Create a folder structure like the following:

networks/
   └──local/
         └──pool_transactions_genesis.json

Start the indy-did-driver with the option -s <path/to/networks> and resolve via did:indy:local:<DID>