Using Sha-1 in Ethereum: Shipy Type
In the qualities of the second -point cryptocurrency on the market capitalization, after the bitcoin ethereum, it is meaningful as well as experts. One of the aspect, which can be indicated by the unfamiliar for some, there is the use of the Sha-1 (algorithm of the free hash 1) in the tongue of the Bitcoin walls, also the existence of the Opcode Ethereum. In this state, we will be in the history of SHA-1 in the bitcoins and disseminated it in ethereum.
Bitcoin
Disadered by anonymous man or group, use pseudonim “laszlo hanyecz, bitcoin was the first introduced in the white of 2008. Sleeping, lasting and deentalized. . Included SHA-1.
Introduction SHA-1
The Bitcoin declined to use the sha-256 (Ascile Hash algorithm 256) in the quality of the algorithm shifting the pole. This selection was later decided in 2015, when the disobeduring parties introduced the Sha-256 as the Key Exit and Tsifle Subscriptions. The resolution of the Sha-1 was used by its priests, efficiency and obatian cord.
Using Ethereum Sha-1
In the ethereum, the tongue of the walls on the variante tongue is the walls of the bitcoin named Script (SPL). In that time, as SPL pretepels significant changes with the moment of its own, one of his opcompolyov remains pre -: ha1
. This OPCODE is configured to the function of the hash shah-1, used for signature transaction and dusting walls.
Standard wall
To introduce this in the prospect, let’s overcome how simple the walls can be of the Ethereum, Uspolse OP_SHA1
OPCODE:
`
Pragma Polidy ^0.8,0;
CONTACT MYScript {
Function MyFunction () Publically {
// Linze the transaction here
is taken (msg.value> = 10 efir);
Payable.call (address (0x …), 10 ether); // sign with hash shah-1 PA MSG.SEDER
}
}
`
As you see, this script uses the opcode OP_SHA1
for signatures of transaction and dusting functions, using the hash shah-1 function.
conclusion
In the conclusion, in this time, as ethereum does not use the same OP_SHA1
Opcode, what is the bitcoin for his tongue of the walls, this was an important part of the dyseny bitcoin. The SHA-1 in Bitcoin will melt the early cryptocurrency on the prostate, efficiency and obrating. In the ethereum repeated use of this opcode, it is serving itself on the volume that cryptographic prints are frequently used on different platforms blockchain.
Entertainment : as in any technical theme, it is important to verify the information with the authority of the author’s source, to make it possible. SHA-1 in ethereum may be a lesser way with the Bitcoins from his wide-spread and further development, but also evaluations. II blockchain.