January 2020
Intermediate to advanced
530 pages
11h 11m
English
Replicate the code for registerUser-BankA.js to registerUser-BankB.js. Save the code file in the Bankchain repository.
Make the following changes to the code so that it works for the Bank B organization:
const ccpPath = path.resolve(__dirname, 'connection-bankb.json');
const walletPath = path.join(process.cwd(), 'wallet-BankB');
let affiliation = 'bankb.department1'const secret = await ca.register({ affiliation: 'banka.department1', enrollmentID: 'user1', role: 'client' }, adminIdentity);
Read now
Unlock full access