** Ethereum: How much time to check the Bitcoin signature in Satoshi Clea
One of Blockchain’s encryption currencies Etherum is the concept of decentralized certification of signatures. One of the TES signing methods that use it on the Ethereum network is 10. In this article, we are studying how to check the current Ethereum CLED (Satoshi) to check the Bitcoin signature.
What are the Bitcoin signatures?
The Bitcoin signature is a diigital fingerprint that serves as evidence of praise and authenticity. It is basically an event that includes the relevant dates of the sender’s private key, timestamp and external external. Creating and checking signatures is complex and the realities of encryption techniques to ensure them.
Current Ethereum customer (Satoshi)
To simulate processing of processions at Satoshi Clinient, we use an average with a computer with one push. We women use all external librienists or tools that classes for certification.
assumptions
*
Here are the step -by -step processes we follow:
A step -by -step certification process
`C
// Create a new Bitcoin event with random
Unwinded Char Noc [8];
Hash160 hash160;
`
`C
// Calculate the event’s digital use the recipient’s private
Unwinded Char signature [evp_md_size (evp_sha256 ()];
// …
`
`C
// Hash Diigital signature to create a new message (signature)
Until signed Char Signature_hash [EVP_MD_SIZE (evp_sha256 ()];
hash160.copy_from (& signature, signature);
`
`C
// Create a random nonce and sneaked it again
nonce [0] = rand () % 100000;
Hash160.copy_from (& NONCE, NONCE);
`
Simulated Certification Process *
In order to check the Bitcoin signature, we must calculate because this process is complex and time consuming for singing, let us be from aproximation.
Suppose it will take about 100 milliseconds to create a new trance, Hash160 and that signature. It is also assumed that 500 microscopic processes are random (0.5 ms).
`C
// simulated authentication of processes
Until signed transaction_hash = create_transaction ();
Unwinded Char Transaction_Data = (Un signed Char ) transaction_hash;
hash160 hash160 (Transaction_data, 16);
Unwinded Char signature [evp_md_size (evp_sha256 ()];
EVP_MD_CTX *CTX = EVPMD_CTX_NEW ();
Evp md_init_ex (CTX, “sha-256”, 0, null);
// Create Renderom Nonce and Hash again
Unwinded int nonce = rand () % 1000000;
Hash160.copy_from (& NONCE, NONCE);
`
Assessment of verification time
Based on the simulations above, it takes approximately:
By adding tees, we get an arond
0.00016 seconds .