Skip to content

guoshengjer/Elastos.Developer.Doc

 
 

Repository files navigation

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 [email protected]. Thank you very much for your participation and contribution.

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.

Elastos_SDK_API

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

How_to_Export_API

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

3. Blockchain API

3.1. Node API

  • REST API

    • No need in the future, no offer.
  • JSON RPC API

3.2. Explorer API

Document not yet available.

4. H5 DApp Programming

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

4.2. Call DID login

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.

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.

Carrier_API

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

How to build API documentation

Android

Code

API

JS

Code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published