EOS交易验证流程

Doria ·
更新时间:2024-09-20
· 853 次阅读

The process to verify a transaction is twofold.

1. 从交易中的签名恢复出来交易的公钥。

First, the public keys associated with the accounts that signed the transaction are recovered from the set of signatures provided in the transaction. Such a recovery is cryptographically possible for ECDSA, the elliptic curve digital signature algorithm used in EOSIO.

2. 对于action中的actor:permission, 检查恢复的公钥集合是否满足actor:permission中要求的公钥threshold

Second, the public key of each actor specified in the list of action authorizations (actor:permission) from each action included in the transaction is checked against the set of recovered keys to see if it is satisfied.

3. 检查action, 在最小的permission情况下

Third, each satisfied actor:permission is checked against the associated minimum permission required for that actor:contract::action pair to see if it meets or exceeds that minimum.

4. 检查action, 在action的级别下。

This last check is performed at the action level before any action is executed


作者:bjzhaoxiao



eos

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章