Closed peterokwara closed 2 years ago
There is a minor bug/warning that shows up that states Selected network does not match DID network when the network name is changed from private-tangle to tangle. Everything still works. It may have something to do with network configuration for the explorer.
TL;DR
It is perfectly possible to use the Private Tangle one click together with IOTA Identity. For convenience purposes the name of the network under the explorer has been changed to tangle
. Your IOTA DIDs should be of the form iota:did_:tangle
and you will be able to browse your DIDs through the default-enabled identity resolver.
Description of change
The following pull request enables the IdentityResolver by default. The IdentityResolver helpes resolves DID's and closes #57
Type of change
Choose a type of change, and delete any options that are not relevant.
How the change has been tested
1. The first step was setting up a private-tangle up and running with a short Network ID. Instead of
private-tangle
as the network name, we havetangle
as the network name. This involves changes in several places in the one click tangle.tangle
private-tangle
totangle
here: https://github.com/iotaledger/one-click-tangle/blob/d27af3e93e167b5efb6b2b155d610ce9764b5d46/hornet-private-net/private-tangle.sh#L193./private-tangle.sh install 30
2. Once the private tangle is running, the next step is to have the explorer up and running. Some things needed to be configured.
"identityResolverEnabled": true
localhost
toyour ip address
in the line of code../tangle-explorer.sh install ../hornet-private-net/
it should copy the network configuration automatically from the already running private-tangle, running within the same server/machine.3. To test if the identity resolver works, clone the identity.rs repository here https://github.com/iotaledger/identity.rs and we will modify one of the examples. Ensure you have rust installed. Go to the https://github.com/iotaledger/identity.rs/blob/dev/examples/account/create_did.rs file and modify the following lines
cargo run --example_config
Change checklist
Add an
x
to the boxes that are relevant to your changes, and delete any items that are not.