区块链如何获取指定用户的交易密码,区块链如何获取指定用户的交易信息
请查看相关英文文档
㈠ A brief discussion on blockchain: How to use blockchain for transfer transactions
In life, we all have our own bank accounts, and transfers are made between bank accounts. of. Similarly, digital currency transfer is the process of transferring Bitcoins from one Bitcoin address to another Bitcoin address. Then if you want to transfer money to others, you need to enter your Bitcoin address, recipient address, transfer amount and handling fee amount on the Bitcoin trading platform, Bitcoin wallet or Bitcoin client. After the payment is confirmed, the transaction information will be broadcast throughout the Bitcoin network. Every 10 minutes, miners will package the unaccounted transactions in the Bitcoin network into a block. This completes a confirmation. At this time, Bitcoin It has been transferred to the recipient's account. Generally, it needs to be confirmed 6 times to ensure that the transaction record cannot be tampered with by anyone before the transfer can be truly completed.
We talked about the transfer fee above, but how much is the fee for one transfer?
The Bitcoin transfer fee is a fee paid by traders to miners. It is used to encourage miners to compete for accounting and provide sufficient computing power for Bitcoin to ensure the security of the Bitcoin network. Some Sometimes we also call this fee the mining fee. When a user initiates a transfer on the Bitcoin network, a handling fee is unavoidable. Generally, it is 0.001-0.0015 Bitcoins. Due to the limited capacity of transaction records that can be accommodated in blocks, miners will give priority to packaging transaction records with high handling fees. , so a little more handling fee can be recorded faster.
This article is compiled and published by Huixinyun. I will continue to update the "Brief Talk about Blockchain" series. This series will introduce some basic knowledge of blockchain and digital currency, so stay tuned!
(Huixin Cloud - IT collaborative industry ecological chain platform. The platform has product managers who study blockchain technology applications and mature product solutions for blockchain technology applications. Looking forward to visiting!) < /p>
㈡ Blockchain Principle
Blockchain is a technology, but it is not a single technology, but the result of the integration of multiple technologies, including cryptography, mathematics , economics, network science, etc. You can think of it as a distributed shared accounting technology, or as a database, but this database is jointly maintained by all nodes on the chain, and each node has a ledger, because all nodes The ledgers are consistent, different nodes can trust each other, and there is no doubt about the data, so everyone says that the blockchain has technically achieved trust. For detailed professional technology, you can consult some professional technology companies. For example: Jinbo Technology, which focuses on developing blockchain-related products, has a professional R&D team and complete after-sales service. You can call for consultation.
㈢ How to check other people’s blockchain information
1. If you are querying account balance, historical transaction data of the account and other information, it is recommended to directly enter the wallet address to query; if you are querying a certain transaction transferFor relevant information, such as whether the account has been received and how the progress is, it is most convenient to enter the transaction ID. Of course, the blockchain browser can not only query your own account, but also query all contacts of other people's accounts: display all contact addresses/tags with transaction records, addresses with more than 10,000 transactions, take the most recent 1 Contact display for 10,000 transactions In summary, SixPencer’s new asset tracking and management tool can provide more comprehensive query and analysis functions than a blockchain browser or wallet. As a tool product, it is intended to assist users.
2. It can be queried through the blockchain browser. In the blockchain browser, we can know what transactions a wallet address has conducted, how many assets are on the account, etc. You can view it with a blockchain browser. Enter the wallet address you want to query in the search input box. If the address you enter is incomplete, but this address has been ETH traded or queried on the blockchain before, the input box will automatically query it for you p>
㈣ What are the core blockchain technologies of blockchain technology?
What is the hottest topic on the Internet right now? You don’t need to explain it to the editor to know that it is blockchain technology. , but many friends have only heard of this technology and do not have much in-depth understanding of it. So what are the blockchain technologies? Below we will bring you an introduction to the core technology of blockchain for your reference.
What are the core elements of blockchain technology?
Blockchain technology can be a public ledger (visible by anyone) or a permissioned network (visible only by those authorized), which solves supply chain challenges , because it is an immutable record that is shared among network participants and updated in real time.
Blockchain technology----data layer: designing the data structure of the ledger
Core technology 1. Block + chain:
Technically speaking, block is a data structure that records transactions. Reflects the flow of funds for a transaction. The blocks of transactions that have been reached in the system are connected together to form a main chain, and all nodes participating in the calculation record the main chain or part of the main chain.
Each block consists of a block header and a block body. The block body is only responsible for recording all transaction information in the previous period, mainly including the number of transactions and transaction details; the block header encapsulates the current version number, previous A block address, timestamp (recording the time when the block was generated, accurate to the second), random number (recording the value of decrypting the answer to the math question related to the block), the target hash value of the current block, and the Merkle number Root value and other information. From a structural point of view, most functions of the blockchain are implemented by the block header.
Core technology 2. Hash function:
The hash function can convert data of any length into a set of fixed-length codes through the Hash algorithm. The principle is based on a cryptographic one-way hash function. This kind of function is easy to verify, but difficult to crack. Usually, the industry uses y=hash(x) to express it. This hash functionThe number implementation performs operations on x to calculate a hash value y.
Commonly used hash algorithms include MD5, SHA-1, SHA-256, SHA-384 and SHA-512, etc. Taking the SHA256 algorithm as an example, inputting any string of data into SHA256 will result in a 256-bit Hash value (hash value). Its characteristics: the same data input will get the same result. As long as the input data changes slightly (for example, a 1 becomes a 0), a completely different result will be obtained, and the result cannot be predicted in advance. Forward calculation (calculating the corresponding Hash value from the data) is very easy. Reverse calculation (cracking) is extremely difficult and is considered impossible under current technological conditions.
Core technology 3. Merkle tree:
Merkle tree is a hash binary tree, which can be used to quickly verify the integrity of large-scale data. In the blockchain network, the Merkle tree is used to summarize all transaction information in a block, and ultimately generates a unified hash value of all transaction information in the block. Any change in transaction information in the block will cause Merkle tree changes.
Core technology 4. Asymmetric encryption algorithm:
Asymmetric encryption algorithm is a key secret method that requires two keys: public key and private key. The public key and the private key are a pair. If the public key is used to encrypt data, only the corresponding private key can be used to decrypt it, thereby obtaining the corresponding data value; if the private key is used to sign the data, then only the corresponding public key can be used to sign the data. In order to verify the signature, the sender of the verification information is the holder of the private key.
Because encryption and decryption use two different keys, this algorithm is called an asymmetric encryption algorithm, while symmetric encryption uses the same key in the encryption and decryption processes.
Blockchain technology----network layer: realize the decentralization of accounting nodes
Core technology 5. P2P network:
P2P network (peer-to-peer network), also known as point-to-point technology, is no Central server, Internet system that relies on user groups to exchange information. Unlike a centralized network system with a central server, each client in a peer-to-peer network acts as both a node and a server. Domestic Xunlei software uses P2P technology. The P2P network has the characteristics of decentralization and robustness.
Blockchain technology----Consensus layer: allocate the task load of accounting nodes
Core technology 6. Consensus mechanism:
Consensus mechanism is how to reach consensus among all accounting nodes to identify The validity of a record is both a means of identification and a means of preventing tampering. There are currently four main types of consensus mechanisms: PoW, PoS, DPoS and distributed consensus algorithms.
PoW (Proof of Work, proof of work): PoW mechanism, which is like Bitcoin’s mining mechanism, miners package existing transactions that have not been recorded by the network into a block, and then continue to traverse and try to find a random number , so that the hash value of the new block plus the random number is fullMeet certain difficulty conditions. Finding a random number that meets the conditions is equivalent to determining the latest block of the blockchain, and is also equivalent to obtaining the current round of accounting rights of the blockchain. Miners broadcast blocks that meet the mining difficulty conditions in the Yuanfu network. After verifying that the block meets the mining difficulty conditions and that the transaction data in the block meets the protocol specifications, other nodes in the entire network will each Blocks are linked to their own version of the blockchain, thereby forming a network-wide consensus on the current network state.
PoS (ProofofStake, Proof of Stake): PoS mechanism requires nodes to provide proof of a certain number of tokens to obtain a distributed consensus mechanism for competing for blockchain accounting rights. If you rely solely on the token balance to determine the bookkeeper, you will inevitably make the rich win, which will lead to the centralization of bookkeeping rights and reduce the fairness of the consensus. Therefore, different PoS mechanisms use different methods to increase the amount of money based on the proof of equity. The randomness of accounting rights avoids centralization. For example, in the PeerCoin PoS mechanism, the Bitcoin with the longest chain age has a greater chance of obtaining accounting rights. NXT and Blackcoin use a formula to predict the next accounting node. The more tokens you own, the greater the probability of being selected as an accounting node. In the future, Ethereum will also switch from the current PoW mechanism to a PoS mechanism. Judging from the information currently available, Ethereum's PoS mechanism will use nodes to place bets on the next block. The winner of the bet will receive an additional Ethereum currency award. Those who do not win will be deducted Ether coins to reach consensus on the next block.
DPoS (DelegatedProof-Of-Stake, share authorization certificate): DPoS is easy to understand and is similar to the modern corporate board of directors system. The DPoS mechanism adopted by BitShares is that shareholders vote to select a certain number of witnesses. Each witness has two seconds of authority to generate blocks in order. If the witness cannot generate a block within the given time slice, The block generation authority is given to the witness corresponding to the next time slice. Shareholders can replace these witnesses at any time by voting. This design of DPoS makes the generation of blocks faster and more energy-saving.
Distributed Consistency Algorithm: Distributed Consistency Algorithm is based on traditional distributed consistency technology. Among them are Byzantine fault-tolerant algorithms that solve the Byzantine Generals problem, such as PBFT (Byzantine fault-tolerant algorithm). In addition, distributed consensus algorithms (Pasox, Raft) that solve non-Byzantine problems are not explained in this article. This type of algorithm is currently a commonly used consensus mechanism in alliance chain and private chain scenarios.
Taken together, POW is suitable for public chains. If you build a private chain, it is more suitable to use POS because there is no trust problem in verification nodes; and because there are untrustworthy local nodes in the alliance chain, it is more suitable to use DPOS.
Blockchain technology----Incentive layer: Develop a "salary system" for accounting nodes
Core technology 7. Issuance mechanism and incentive mechanism:
Take Bitcoin as an example. Bitcoin was originallyThe system rewards miners who create new blocks, with the reward halving approximately every four years. At the beginning, miners were rewarded with 50 Bitcoins for each new block recorded, and this reward is halved approximately every four years. By analogy, by around AD 2140, newly created blocks will no longer receive rewards from the system. By then, the total number of Bitcoins will be approximately 21 million. This is the total number of Bitcoins, so it will not increase indefinitely.
Another source of incentives is transaction fees. When there are no system rewards for newly created blocks, the miners' income will change from system rewards to transaction fees. For example, when you transfer, you can specify 1% of it as a handling fee to be paid to the miner who records the block. If the output value of a transaction is less than the input value, the difference is the transaction fee, which will be added to the incentive for that block. As long as a given amount of electronic currency has entered circulation, the incentive mechanism can gradually be converted to rely entirely on transaction fees, so there is no need to issue new currency.
Blockchain technology----Contract layer: giving the ledger programmable features
Core technology 8. Smart contract:
Smart contract is a set of programmed rules and logic that respond to scenarios. Implemented by decentralized, trusted shared script code deployed on the blockchain. Usually, after the smart contract is signed by all parties, it is attached to the blockchain data in the form of program code, and is recorded in a specific block of the blockchain after being propagated through the P2P network and verified by nodes. Smart contracts encapsulate a number of predefined states and transition rules, scenarios that trigger contract execution, response actions under specific scenarios, etc. The blockchain can monitor the status of smart contracts in real time, and activate and execute the contract by checking external data sources and confirming that specific trigger conditions are met.
The above is what blockchain technologies the editor has brought to you? All content of the introduction to the core technology of blockchain.
㈤ How to trade in blockchain
Blockchain transactions are generally traded through digital currency trading platforms. There are many related platform introductions on non-small platforms, you can choose according to your needs
Explained from an academic perspective, blockchain is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanisms, and encryption algorithms. Blockchain is essentially a decentralized database.
For example, if you are a woman, every time your boyfriend says something disgusting to you or promises to buy you something, you immediately record it and send it to all your best friends, classmates, Colleagues, as well as various groups and circles of friends, make it impossible for him to deny it anymore. This is called blockchain.
The core advantage of blockchain technology is decentralization. It can achieve decentralized credit in a distributed system where nodes do not need to trust each other by using data encryption, timestamps, distributed consensus and economic incentives. Point-to-point transactions, coordination and collaboration, thereby providing solutions to the problems of high cost, low efficiency and insecure data storage common in centralized institutions.
The application fields of blockchain include digital currency, certificates, finance, and anti-counterfeiting traceability., privacy protection, supply chain, entertainment, etc. With the popularity of blockchain and Bitcoin, many related top domain names have been registered, which has had a relatively large impact on the domain name industry.
㈥ How to view the blockchain assets (digital currency) of the address through the blockchain asset address (digital wallet address)
You can view it with a blockchain browser.
Enter the wallet address you want to query in the search input box. If the address you enter is incomplete, but this address has previously conducted ETH transactions or been queried on the blockchain, then the input box will Automatically complete the address you query.
Click "Query" and all the information about this wallet address will appear.
Click "Transaction Hash" to see the details of the transaction.
The principle of blockchain browser query:
Because the transaction information in the blockchain, etc. The data is open and transparent, and the blockchain browser is an address for querying blockchain transaction records. Users can use it to view their own transaction information and other information stored in the blockchain.
The vast majority can be checked, which is a major feature of the openness and transparency of the blockchain. Addresses are transparent. As long as there is an address, you can check its transfer in and out.
A friend mentioned the anonymous currency, so I won’t go into details. In other aspects, it is also a tool to check the authenticity of the project. Some funds under the guise of blockchain issue some coins to deceive investors. You can go to the browser to take a look. Sometimes there is no data on the chain at all, which proves that the points are issued by themselves.
㈦ Where to check the blockchain transaction ID
Here we use the wallet of the Ethereum blockchain as an example. Little Fox is an encrypted wallet and the entrance and exit to the blockchain APP. . After entering, obtain the wallet address, and then use the Ethereum blockchain searcher to enter the homepage of the Etherscan official website. You can obtain the following blockchain transaction ID information:
1. The latest block
2. The latest Transactions that occurred
Extended information:
The transaction process of the blockchain may seem mysterious and cumbersome, but in fact it is not necessarily that difficult to actually talk about it.
Step 1: Owner A uses his private key to sign a digital signature on the previous transaction (bitcoin source) and the next owner B, and appends this signature to the end of the currency to create Transaction order. At this time, B uses the public key as the recipient address.
Step 2: A broadcasts the transaction order to the entire network, and the Bitcoin is sent to B. Each node will receive the transaction information and include it in a block
At this time, for B, the Bitcoins will appear in your Bitcoin wallet immediately, but cannot be used until the block is confirmed. At present, a Bitcoin can only be truly confirmed after being confirmed by 6 blocks from payment to final confirmation.
Step 3: Each node obtains the right to create a new block by solving a mathematical problem and strives forReward to Bitcoin (new Bitcoin will be generated in this process)
At this time, the node repeatedly tries to find a value, so that the value, the Hash value of the last block in the blockchain and the transaction order are sent in three parts After entering the SHA256 algorithm, it can be calculated that the hash value
Step 4: When a node finds a solution, it broadcasts all timestamped transactions recorded in the block to the whole country, and is checked by other nodes in the entire network.
At this time, the timestamp is used to prove that a specific block must indeed exist at a specific time. The Bitcoin network obtains the time from more than 5 nodes, and then takes the middle value to become a timestamp.
Step 5: Other nodes in the entire network check the correctness of the accounting of the block. If there are no errors, they will compete for the next block after the legal block, thus forming a legal accounting blockchain.
㈧ How blockchain empowers the transaction end
Blockchain technology can empower the transaction end by providing a more reliable, transparent and efficient transaction method. The following are some key points:
1. Decentralization: Blockchain technology allows the creation of a decentralized (not dependent on a centralized institution or third party) transaction end. Because all transactions are recorded on a distributed database and each transaction is verified, this means there is no single point of failure (such as a server crash) and transaction history cannot be tampered with.
2. Smart contracts: On the blockchain, smart contracts (automatically executed computer programs) can be created, eliminating the need to trust third-party intermediaries (such as banks or lawyers) and ensuring that all parties involved in the transaction are fully Comply with the terms of the contract. Since smart contracts have advantages in terms of trust and accuracy, they can reduce the number of disputes and effectively support transaction operations.
3. Improve transaction efficiency: Blockchain technology improves the processing speed of transactions. In traditional financial or trading systems, cross-border transactions may require confirmation by multiple banks, intermediaries and regulatory agencies, but with blockchain technology, all transactions can be processed in real time, and the time required to complete a transaction is greatly shortened.
4. Reduce costs: Blockchain technology can reduce transaction costs. In the traditional financial system, many transactions require certain fees to be paid to intermediaries or banks, and each intermediary needs to pay certain management fees. However, through blockchain technology, the number of intermediaries can be significantly reduced, making transactions cheaper and more economical.
In summary, the main way blockchain technology empowers the transaction side is to provide decentralized mechanisms, smart contracts, increase transaction speed and reduce costs, etc. With the new Internet, "blockchain+" has become an unstoppable trend, and there will be more and more practical application scenarios in the future.