210 похожих чатов

Hey sers, what’s the use of account hash? If it

is not useable, why not hide it to prevent fat fingers?

6 ответов

6 просмотров

The account hash is an identifier and helps you when using smart contracts.

Chris 🥷🧬-🧬 Автор вопроса
Chuck | Shark Media
The account hash is an identifier and helps you wh...

How this thing can do help when using smart contract?

Chris 🥷🧬 🧬
How this thing can do help when using smart contra...

Well it just helps you identify data easier when looking at transactions.

AFAIK the Account Hash is used internally for everything. Why? Easy: Right now Casper supports 2 key types but it is prepared to support more -> current public keys start with 01 or 02 but in the future there could also be 03, 04 and so on. So instead of adding logic in multiple places to handle all future key types the public key gets hashed with the blake2 hashing algorithm (check the docs/source for the exact one). The hash is always in the same format and makes it easier to be used. So it is some kind of abstraction to make the Casper blockchain future-proof in case new key types will be added. Docs: https://docs.casper.network/concepts/design/casper-design/#accounts-head

Похожие вопросы

Обсуждают сегодня

Карта сайта