In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "what is the process of NEO from WIF to address". The editor shows you the operation process through an actual case. The operation method is simple, fast and practical. I hope this article "what is the process of NEO from WIF to address" can help you solve the problem.
Detailed process description WIFL13wAkUX1SAx6K9zztkS8RjxDMedBEzbtgZSZRYKUUBMP23BEgLM
This is a WIF, this string of things is meaningless, there is no need to find its meaning, it is a byte58-encoded string
Unfortunately, base58 is not as popular as base64, so it's hard to find web decoding tools, and we can analyze them in two lines of code.
8072520405d2ab00326dbcacfddd350b01222a7cc9efc5f304f742077ec9ade4630178a41006
This string of things is the real data stored in Wif.
The red part is the private key, and the yellow part is the added salt, fixed information. The blue part makes a hash of the first 34 bytes and takes four bytes of hash.
It can be seen from this
1.WIF can be exchanged with private key.
2.WIF saves the hash and has the function of self-verification. It is not a legal WIF for you to type any string.
Private key
NEO's public and private key verification method uses the ECC elliptic curve algorithm.
The basic mechanism of this kind of asymmetric encryption algorithm is as follows: you keep the private key and the public key is public. You sign a string of data with a private key.
Others can use data, signature and public key to determine whether the three match and whether the signature is valid.
Signature is the most important authentication method on the NEO block chain, so the private key is very important and should be protected.
Public key
The public key is part of the private key, which can be calculated from the private key, but conversely, the public key cannot calculate the private key.
The calculation is one-way
Address script
Address script, which looks like adding a byte to the front and back of the public key
In fact, he is an intelligent contract, decompiling him,
That is:
PushBytes [pubkey]
CheckSig
These two instructions.
When you access your account, such as using your account to transfer money to someone else, this contract will be called to verify.
The meaning of this contract is to verify it with your public key and transaction data and transaction signature.
Only the contract you signed can touch your account.
Address ScriptHash
An address ScriptHash is an address script that takes a Hash.
Once sha256, once ripemd160
Address
The address is similar to WIF, except that ScriptHash adds salt, authentication, and base58 coding.
What's wrong with the simplified version of the picture?
Because the private key and WIF can be converted into each other, usually when we talk about the private key, WIF is also the private key, and the private key is also the private key, which is not so clear.
Because the address ScriptHash and the address string can be translated into each other, usually when we talk about addresses, we don't distinguish them so clearly.
In addition, because the address script is not accessible to most users at all, it can also be omitted when discussing this topic with ordinary users.
This is the end of the content about "what is the process of NEO from WIF to address". Thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.