Blockchain Service scenario
    • PDF

    Blockchain Service scenario

    • PDF

    Article Summary

    Available in VPC

    Blockchain Service starts with creating a blockchain network from the NAVER Cloud Platform console. Next, set up each component that makes up the blockchain network, and install and instantiate the chaincode in the channel to enable the blockchain network.

    The overall Blockchain Service usage scenario can be summarized as follows:

    Configure single network

    • For example, a single participant creates 1 network, and transactions occur in 1 channel

    blockchain-scenario-1_en

    • The highlighted part such as msp1 in the scenario is an example name of a component of Blockchain Service in the diagram above.
    1. Create network
      • Network: nbs-net1
      • Orderer: MSP(oderer1-msp1), CA(orderer1-ca1), Orderer(orderer1)
      • Organization: MSP(msp1), CA(msp1-ca1), Peer(msp1-peer1)
      • Channel: channel1 (configuring a channel when creating a network configures a consortium for "msp1" automatically)
      • Guide page when creating a component separately (configured in the following order)
    2. Create additional organization and peer
    1. Configure consortium
      • Include msp2 MSP in orderer consortium
    2. Join msp2 MSP as a member of the channel (channel1)
    3. Join msp2-peer2 to channel1
    4. Develop chaincode
    5. Package chaincode (CDS)
    6. Install chaincode
    7. Instantiate chaincode
    8. Call, build, and run chaincode
    1. Run 10 times with msp2

    Configure multi network

    • For example, 2 participants create 2 networks, and transactions occur on 2 channels

    blockchain-scenario-2_en

    • The highlighted part such as msp1 in the scenario is an example name of a component of Blockchain Service in the diagram above.
    1. Configure Network 1
    2. Create Network 2 Create network
      • Network: nbs-net2
      • Orderer: MSP(oderer2-msp2), CA(orderer2-ca2), Orderer(orderer2)
      • Organization: MSP(msp3), CA(msp3-ca3), Peer(msp3-peer3)
      • Channel: channel2 (configuring a channel when creating a network configures a consortium for "msp3" automatically)
      • Guide page when creating a component separately (configured in the following order)
    3. Invite network 2 from network 1
      • Invite network
      • Upon invitation confirmation, each imports the other's MSP, and network 2 automatically imports network 1's orderer/channel
    4. Add the msp3 imported from network 1 and network 2 to the orderer consortium
    5. Add the msp3 imported from network 1 and network 2 as a channel member
    6. In network 2, add msp3-peer3 to the automatically imported channel1
    7. After chaincode development and packaging, install in both networks 1 and 2, and instantiate chaincode in network 1
    8. Use certificate and access information in network 1 to call, build, and run chaincode for msp1 and msp2
    9. Proceed 8 times with msp3 at network 2

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.