Position: Home page » Ethereum » Web platform docking with Ethereum

Web platform docking with Ethereum

Publish: 2021-04-30 22:40:52
1. How to run Ethereum source code go Ethereum
install MIPS based Linux header file
$CD $prjroot / kernel
$tar - xjvf linux-2.6.38. Tar. Bz2
$CD linux-2.6.38

create an include folder under the specified path to store related header files< br />$ mkdir -p $TARGET_ Prefix / include

ensures that the Linux source code is clean
$make mrproper

generates the required header file< br />$ make ARCH=mips headers_ check
$ make ARCH=mips INSTALL_ HDR_ PATH=dest headers_ Install

all the files in dest folder to the specified include folder< br />$ cp -rv dest/include/* $TARGET_ Prefix / include

delete dest folder at last
$RM - RF dest
$LS - L $target_ PREFIX/include
2. curl方法,file_get_contents,
3.

If you want to query the transaction records on the main network, you can use Etherscan. However, if you build your own private chain, how should you query the transaction records

the answer is that you need to listen to the logs on the chain, save them in the database, and then query them in the database. For example:

< pre t = "code" L = "Java" > varaddr = & quot& quot;< br />varfilter=web3.eth.filter({fromB lock:0 ,toBlock:' latest', address:addr });< br />filter.get(function(err,transactions){
transactions.forEach(function(tx){
vartxInfo=web3.eth.getTransaction(tx.transactionHash);
/ / at this time, the transaction information txinfo can be stored in the database
})< br />});

Web3. Eth. Filter() is used to monitor the log on the chain, and Web3. Eth. Gettransaction() is used to extract the information of the specified transaction. Once the transaction information is obtained, it can be stored in the database for query

recommend a practical introction, you can see: Ethereum tutorial

4. The Internet has just begun, intelligent life coming
5. Alibaba, I remember it's the react framework. It's the framework they wrote
6. Generally, web service is used to achieve this docking requirement
you can first sort out how many function points need to get data from you (summarize and count how many WebService interfaces are needed)
then confirm which parameters are needed to query one by one by WebService
write a WebService interface document and provide it to the system developers in the bank
7. Web has web front-end and web back-end. Web front-end only develops some pictures of static and dynamic effects of some pages, and presents them to customers interactively with the background. Web back-end development is mainly used in Python artificial intelligence and Java background development, but both belong to software development.
8.

This problem is not difficult. The first solution is very simple.

  1. build a service to interact with data. Some NoSQL databases are used.

  2. when the order is submitted, write it to the database through the service, and enter a queue at the same time.

  3. the client takes data from the queue every 10s.

  4. pay attention to the consistency of the transaction.

  5. < / OL >
9. The connection between wechat public platform and app database needs to open the wechat developer mode, and then carry out technical connection. Wechat adopts mobile web page design, and after the design, it can connect with the app database
what functions do you want to realize with wechat, just to realize instruction interaction, and there is no need to be a wechat station, You just need to develop a connection to the app database for docking instructions. If you need to achieve the same page display as the app, you need to develop a micro station for assistance. If you don't have the technology, this can't be completed. You need to program in the middle.
10. Steps:
1. Generate the server-side key

[HTML] view plain
1. Keytool - genkey - alias serverkey - keystore key ofserver. Keystore

after that, the following information will appear: (the first password: open the keystore file password, the second password is the secret key, Generally, the two passwords are the same)

export the server certificate according to the private key (export the certificate with the alias of serverkey in the certificate library monitor.keystore to the keyofserver.cer certificate file, which contains the information of the certificate subject and the public key of the certificate, excluding the private key, and can be made public.)

[HTML] view plain
1. Keytool - export - alias serverkey - keystore keyofserver. Keystore - file server. CRT

change the server certificate to, Add to the authentication certificate list of client (only public key)

[HTML] view plain
1. Keytool - Import - alias serverkey - file server. CRT - keystore trustofclient. Keystore

2: generate client key

[HTML] view plain
1. Keytool - genkey - alias clientkey - keystore keyofclient. Keystore & lt; span style=" font-size: 18px; font-family: Arial, Helvetica, sans-serif; background-color: rgb(255, 255, 255);& quot;& gt; & lt;/ span> <

export the client certificate according to the private key

[HTML] view plain
1. Keytool - export - alias clientkey - keystore keyofclient. Keystore - file client. CRT

add the certificate to the server trust list

[HTML] view plain
1. Keytool - Import - alias serverkey - file client. CRT - keystore trustofserver. Keystore
2
so far, both the client and server certificates have been generated
Hot content
Inn digger Publish: 2021-05-29 20:04:36 Views: 341
Purchase of virtual currency in trust contract dispute Publish: 2021-05-29 20:04:33 Views: 942
Blockchain trust machine Publish: 2021-05-29 20:04:26 Views: 720
Brief introduction of ant mine Publish: 2021-05-29 20:04:25 Views: 848
Will digital currency open in November Publish: 2021-05-29 19:56:16 Views: 861
Global digital currency asset exchange Publish: 2021-05-29 19:54:29 Views: 603
Mining chip machine S11 Publish: 2021-05-29 19:54:26 Views: 945
Ethereum algorithm Sha3 Publish: 2021-05-29 19:52:40 Views: 643
Talking about blockchain is not reliable Publish: 2021-05-29 19:52:26 Views: 754
Mining machine node query Publish: 2021-05-29 19:36:37 Views: 750