Git Product home page Git Product logo

Comments (2)

Prash74 avatar Prash74 commented on August 29, 2024

@vipyne so the --network flag in ara-identity CLI refers to the network name inside the keyring file.

So the keyring file stores network keys in a key-value pair format. Something like this

$ ank -i did:ara:59f8d.....7ef -s test-node -n archiver -k keyring-file

will result in,

{
"archiver" : {Network keys containing the discovery key }
}

Lets say if we append another entry into the same keyring file as below,

$ ank -i did:ara:59f8d.....7ef -s test-node -n resolver -k keyring-file

It will result in the keyring file looking something like this,

{
"archiver" : {Network keys containing a discovery key},
"resolver" : {Network keys containing a discovery key}
}

So, lets say you want to retrieve the discovery key for the archiver entry from the above file, you would use it as

$ aid archive <DID> -s test-node -n archiver -k keyring-file.pub

As for the keyring-registry URL's, the name in the URL refers to the file name used to store when publishing. The registry server treats it as a single file and doesn't care about what values are inside the keyring file.

In order to use a keyring file from the registry, you would need to know the shared-secret and network values inside the keyring file beforehand. This can be obtained from the developer who provided the URL for the keyring file.

So if the same file above is published as ara-dev-keyring and the URL is http://keyrings.ara.one/1.0/did:ara:59f8d...71a87987ef/ara-dev-keyring, it can used as

$ aid archive <DID> -s test-node -n archiver -k 'http://keyrings.ara.one/1.0/did:ara:59f8d...71a87987ef/ara-dev-keyring'
$ aid resolve <DID> -s test-node -n resolver -k 'http://keyrings.ara.one/1.0/did:ara:59f8d...71a87987ef/ara-dev-keyring'

from ara-identity.

vipyne avatar vipyne commented on August 29, 2024

ah, I think this explains the difference between name and network.
Thanks @Prash74 !

from ara-identity.

Related Issues (20)

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.