All Products
Search
Document Center

Quick start

Last Updated: Jul 12, 2019

Ant Blockchain provides two types of services based on different business scenarios:

  • Notary blockchain provides an efficient and credible notary blockchain service for multiple industries. These industries include inclusive finance, medical services, resource sharing, cross-border trade, IoT applications, electronic bill transfers, commodity traceability, electronic document interchange, credit certificate, and data exchange.
  • Contract blockchain provides a complete smart contract environment. Application developers can use this service to create accounts, call contracts, query results, and listen to events.

The notary blockchain will be offline on October 17, 2019. For a better experience, please use the contract blockchain, which has all the functions of the notary blockchain and better performance.

This topic describes how to use the contract blockchain service and the notary blockchain service of Ant Blockchain.

Prerequisites

You have already activated Alibaba Cloud BaaS and logged on to Alibaba Cloud.

Apply to create a blockchain

Apply to create a contract blockchain

Members of the consortium can run and maintain the contract chain, but only the consortium administrator can apply to create a contract chain in the consortium. Create a contract blockchain as follows:

  1. Create a consortium: Log on to the Alibaba Cloud BaaS console. In the left-side navigation pane, click Ant Blockchain and click Contract Blockchain to go the My Consortiums page. Click Create Consortium, and enter the name and description of the consortium.create_consortium

  2. Create a blockchain in a consortium: In the consortium list, select a consortium, and click Management in the Operation column to go to the Blockchain Management page. Click Apply To Create Blockchain to create a blockchain in the consortium.consortium_managementapply_create

  3. Configure a blockchain: In the application dialog box, specify the name, region, signature cipher, TLS algorithm, Merkle tree, instance type, the number of nodes, and the effective days of the blockchain. Click Apply to submit your application. The BaaS platform administrator will review your application. In the configuration items:

  • The signature cipher supports classic ciphers. Click Classic to specify the signature cipher.
  • TLS Algorithm supports both RSA and ECDSA.
  • The Merkle tree supports MPT and FDMT. MPT is open source. FDMT is an optimized Merkle algorithm provided by Ant Blockchain and is not available now.
  • The instance type supports Basic Edition, Enterprise Edition, and Ultimate Edition.
  • The number of nodes defaults to four during the preview period.
  • The effective days for a blockchain during the preview period is set to 14 days by default. The corresponding resources will be automatically released after 14 days.applyinfo

    Note: Do not upload sensitive data or production data during the preview period.

  1. View application progress: After you submit an application, you can click Task Progress in the left-side navigation pane to view the progress. You are not allowed to submit new applications when there are pending review tasks.progress

  2. Access blockchain: After your application is approved, the platform administrator will create a blockchain for you. After your application is approved, you need to submI it the certificate requests and obtain the permission to access a blockchain network as described in Apply to join a blockchain.

Apply to create a notary blockchain

Create a notary blockchain as follows:

  1. Create a notary blockchain: Log on to the Alibaba Cloud BaaS console. In the left-side navigation pane, click Ant Blockchain and click Notary Blockchain to go to the Notary Blockchain page. Click Apply To Create Blockchain. The application dialog box appears.notary_apply

  2. Configure a blockchain: In the application dialog box, specify the name, region, instance type, the number of nodes, and the effective days of the blockchain. Click Apply to submit your application. The BaaS platform administrator will review your application. In the configuration items:

  • The instance type supports Basic Edition, Enterprise Edition, and Ultimate Edition.
  • The number of nodes defaults to four during the preview period.
  • The effective days for a blockchain during the preview period is set to 14 days by default. The corresponding resources will be automatically released after 14 days.notary_info

    Note: Do not upload sensitive data or production data during the preview period.

  1. View application progress: After you submit your application, you can click Task Progress in the left-side navigation pane to view the blockchain creation progress. You are not allowed to submit new applications when there are pending review tasks.progress

  2. Access blockchain: After your application is approved, the platform administrator will create a blockchain for you. After your application is approved, you need to submit the certificate requests and obtain the permission to access a blockchain network as described in Apply to join a blockchain.

Apply to join a blockchain

Whether you are an administrator or a consortium member, you need to follow this procedure to submit a certificate request before you can access a blockchain network. Upload the certificate request file as follows:

  1. Log on to the Alibaba Cloud BaaS console. Based on the blockchain type, click Ant Blockchain and then click Contract Blockchain or Notary Blockchain. If you click Notary Blockchain, the Notary Blockchain page appears. If you click Contract Blockchain, you need to select a consortium in the page that appears, and click Management to go to the Blockchain Management page.
  2. After you enter the blockchain list page, click Apply to apply for certificates.apply

  3. BaaS supports two methods to generate a certificate: automatic generation and manual generation. Automatically Generated: You need to specify all the information required to generate a certificate in the dialog box that appears. Manually Generated: You need to click Upload to upload the required certificate file. Click Apply to submit your application and complete the application procedure. For more information about how to make and configure certificate requests, see the environment setup document. Click here if you use MacOS. Click here if you use Windows.cert

    Note: The key in the automatic certificate generation is unique and is not saved by the platform. It cannot be recovered when lost. Save the key properly.

  4. After you complete the application, the status changes to “Already Applied”. For a contract blockchain, you can click More and click Create Account to create an account. BaaS supports manual creation and automatic creation. You can choose a method to create an account based on your business requirements. After you create an account, you can download the corresponding public and private keys, public and private recovery keys, and obtain the permissions to connect to and operate the blockchain.accountcreateaccount

    Note: The key in the automatic certificate generation is unique and is not saved by the platform. It cannot be recovered when lost. Save the key properly.

  5. You can also click the More icon in the upper right corner to perform the following operations:

    • For a contract blockchain, you can download the signed certificate, download the SDK, download the root certificate (trustCa), download the root certificate (ca.crt), create an account, and reset the certificate.contractdownload
    • For a contract blockchain, you can download the signed certificate, download the SDK, download the business view, and reset the certificate.notarydownload
  6. You can view blockchain details of a notary blockchian, or view blockchain details of a contract blockchain. You can also see Ant Blockchain Development Guide to learn how to develop your business systems.