How does tx ids/hashes run ?

Do repost and rate:

On discord, someone talked me about transaction hashes and he thought that tx ids were stored in wallet.

But, how does it really run ?

 

What is hashing ?

For people who doesn't understand hashes, it's a (very complicated) mathematical function that will convert your data into a long string. For example, sha256 hash of word "bitcoin" is 6b88c087247aa2f07ee1c5956b8e1a9f4c7f892a70e324f1bb3d161e05ca107b, but I won't be able to get back data from its hash (not reversible).

Because of hash lengnt isn't depending on source data lenght, and that hash collision (when 2 files have the same hash) is very rarely, it is often used as identifier.

 

Used for keeping chain valid

Bitcoin's security model uses merkle trees for making data secure. It implies hashing txns (this schema explains better than 1k words of text), and it also allows to only store hashes or parent hashes for saving space (it's what pruning do).

 

Hashes are lighter than raw txns

Because of an hash is ALWAYS 64 bytes, when a tx is often between 200 bytes and 1kb, it's easier to copy-paste 64 chars than some hundreds of.

 

That's all

I don't see anything else to add about them.

If you learned smth within this article, please give a like and a tip

And if you see something to improve, feel free of saying it in the comment (that are purposed for that)

Regulation and Society adoption

Ждем новостей

Нет новых страниц

Следующая новость