Running the utility

Navigate to the Bankchain repository. Run the following command to enroll an admin user for Bank A:

node enrollAdmin-BankA.js

You should get a message on the console, informing you that a new admin has been registered and imported to the wallet. Repeat the same for Bank B, as follows:

node enrollAdmin-BankB.js
  • The admin identities for the banka and bankb organizations should be added to the wallet for Bank A and Bank B.
  • You can actually verify this. Navigate to the wallet-BankA and wallet-BankB directories. You'll be able to see a folder labeled admin. Inside, you'll find the private key file and certificate for the admin user.

Let's create the bank users next.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.248.24