nianjin777 / Elastos.Developer.Doc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elastos.Developer.Document

What Elastos want to say to the developer

Developers are welcome to work together to improve this document, including but not limited to the following ways to participate:

  • Submit issues for documents that you don't understand.
  • Improve the documentation. The default version is English version, you can submit multi-language version. If you submit a different language version, the file suffix will be expressed in a similar format as "_CN".
  • Supplement the document, the current document is more "simple", if you can say more clearly, more clearly, more detailed, welcome to pull request to modify it.

After the above workload is accepted, we will send you a number of ELA as a reward. At the same time, contributors will automatically become "Elastos Developer" and will enjoy priority trials, training and other benefits.

In order to avoid omissions, contributors are requested to send an email to Dev-support@elastos.org. Thank you very much for your participation and contribution.

The award assessment rules for the contribution of community members

1. CAR programming

1.1. How to write a CAR component

  • CAR Language

1.2. Compile the CAR component

1.3. Call local CAR component

1.4. How to call a remote CAR component

1.5. Implementing CAR components using Java

1.6. Reflection API

By default, the API document is provided, which also contains the API of the CAR SDK section.

Open the document, go to the html directory, find index.html and click it to open the API document in the browser.

Refer to the last part of the documentation below to export the latest API documentation:

2. CAR SDK

The CAR SDK (CAR Software Development Kit) is a development kit for the native developers of the Elastos.RT (https://github.com/elastos/Elastos.RT) project. The main infrastructure services of Elastos are integrated through the Elastos.RT project and packaged into a Car interface for developers to use. Currently CAR SDK can support RPC and reflection, its basic services include: Carrier, Wallet and Did.

Traditionally, APP can expand its capabilities by including the SDK of Elastos, and obtain the typical capabilities of blockchains such as identity authentication and trusted records. For more existing apps, the lightest way is to embed the SDK, which is used to access some of the blockchain functions to achieve partial decentralization. For example, you can bind your own users through the ID provided by the SDK for identity authentication. You can also save the hash of important content in the blockchain through the API provided by the SDK, thus playing the role of notarization/certification.

You can refer to Reflection API.

Elastos_SDK_API

Refer to the last part of the documentation below to export the latest API documentation:

How_to_Export_API

2.1. RPC

The main interface in RPC are as follows. For the specific interface methods, refer to the API in the CAR SDK above.

  • IServiceManager
  • IFriend
  • ICarrier
  • ICarrierListener

The examples that currently use them are the following two, which are also described earlier.

2.2. Wallet

The main interface in Wallet are as follows. For the specific interface methods, refer to the API in the CAR SDK above.

  • IMasterWalletManager
  • IMasterWallet
  • IIdChainSubWallet
  • ISidechainSubWallet
  • IMainchainSubWallet
  • ISubWallet
  • ISubWalletListener

2.3. DID

The main interface in DID are as follows. For the specific interface methods, refer to the API in the CAR SDK above.

  • IDID
  • IDIDManagerCallback
  • IDIDManager
  • IDIDChecker
  • IDIDInspector

2.4. Wallet service related information

2.4.1 DID

2.4.2 ela related

2.4.3 Signature transaction related

3. ELA Blockchain

3.1. Node API

3.2. Explorer API

Document not yet available.

3.3. Deploy ELA nodes

3.3.1 Direct, AWS, docker

Elastos has prepared the relevant environment to use, please view the following documents:

3.3.2 Build a node and connect to the test environment

  • Build a node of MainChain and connect to the test environment

  • Build a node of IDChain and connection test environment

    • SideChain_deploy

    • Connect to the SideChain of testnet

3.3.3 Building a test chain

Building test chains can be divided into three types:

  • Build a MainChain

  • Build a IDChain

  • Build a SideChain

Specific steps can refer to the following document content:

3.4. Create a transaction

3.4.1. Create a transaction on the MainChain

3.4.2. Create a transaction on the SideChain

3.4.3 How to get the test coin

In order to facilitate the development and testing of the Elastos test chain by community developers, the Elastos Foundation also provides a faucet tool for issuing test coins. After filling in some information, you can get 10 ELA test coins on the test network.

Test network wallet address: https://wallet-beta.elastos.org/

Test network browser address: https://blockchain-beta.elastos.org/

Test coin tap address: https://faucet.elastos.org/

Application method: Go to https://faucet.elastos.org/ and submit the application form. Note: The ELA address should be the address of the registered wallet at https://wallet-beta.elastos.org/.

3.5. Integrate exchange

4. H5 DApp Programming

4.1. DApp Create, package, and install the entire process

4.2. Call DID login

  • DApp_DID

  • DID Spec

    This is a draft,which is a document that introduces the id side-chain interface.

  • DID programming guide

    This is a draft,which is a description of how to use did, recommendations and specifications.

  • DID service

    This is a draft,which is the interface that introduces the did service we are doing. It is based on the "DID programming guide".

4.3. Call Wallet to pay

5. Elastos Carrier

Elastos Carrier solves the problem that the app nodes on the Internet have no public network ip and cannot be directly connected. Usually solving this problem requires deploying a central server for data transfer. Also, Elastos Carrier implements a centerless direct connection communication scheme based on P2P communication technology.

Elastos Carrier provides cross-network access capabilities. For example, any two app nodes can be in different subnets, one is at home wifi environment, another is at corporate wifi environment. App can communicate directly by using an "address" string and confirming the authorization by adding "friends" to each other.

5.1. API

C++

The API is provided by default.

Open the document, go to the html directory, find index.html and click it to open the API document in the browser.

Refer to the last part of the documentation below to export the latest API documentation:

Android

JS

5.2. Sample

5.3. FAQ

About