bcgov / von-network

A portable development level Indy Node network.
Apache License 2.0
163 stars 188 forks source link

Cannot modify seed number of trustee #253

Closed darapich92 closed 7 months ago

darapich92 commented 1 year ago

Hello everyone, I have a problem when I want to modify seed number of trustee in the manage.sh, I got an error of each node error: 'client request invalid: could not authenticate, verkey for UnB4FgtLv1M9BpDP3iuTfn cannot be found'. Could you help me to solve this problem?

Thank you very much.

WadeBarnes commented 1 year ago

Please provide details of the steps that lead up to your error, as well as some background of what you're trying to accomplish.

darapich92 commented 1 year ago

Hi @WadeBarnes, I changed the LEDGER_SEED=${LEDGER_SEED:-000000000000000000000000Trustee1} --> LEDGER_SEED=${LEDGER_SEED:-000000000000000000000001Trustee1} in the manage.sh in the von-network. As expected, it should work fine but when I execute the script containing new seed number, the 4 nodes in the web-server cannot be online and got the error messages as I mentioned before. I raise a question, should I change code somewhere else more to make von-network?

WadeBarnes commented 1 year ago

Changing LEDGER_SEED only changes the DID used by the network browser to connect to the nodes in the pool. It is used to connect the ledger browser to other networks. It DOES NOT affect the DID of the primary trustee on the network. von-network uses scripts within indy-node and indy-plenum to generate a test network. The SEED and therefore the DID of the primary trustee for the network is hard coded for the test network at the indy-plenum level.

darapich92 commented 7 months ago

Thank you @WadeBarnes for your answer. So, could you tell me why we need LEDGER_SEED when we execute ./manage up?

WadeBarnes commented 7 months ago

By default you don't need to specify LEDGER_SEED when running von-network, unless you're trying to connect to a different ledger, one that was not created by von-network in he first place. See my previous comment.

darapich92 commented 7 months ago

Thank you again @WadeBarnes . I got your point. So, can you tell me the role of endorser in the Von-network. what do they do?

WadeBarnes commented 7 months ago

Have a look at the auth_rules for indy-node. It will give you an idea on what the various roles and what they can do.

WadeBarnes commented 7 months ago

Closed, since the original question was answered.