Anoma中的account

1. 引言

前序博客有:

Anoma定位为多方加密资产隐秘交互协议,为Layer 1 方案,采用PoS共识。目前已上测试网feigenbaum。

当前Anoma采用ed25519。
Anoma中的address和key支持alias假名模式:

anoma wallet key gen --alias my-key

默认新建的账号在:.anoma/{chain_id}/wallet.toml (with the default --base-dir)。

All accounts in the Anoma ledger have a unique address, exactly one validity predicate and optionally any additional data in its dynamic storage sub-space.

Anoma只有一种账号类型。Anoma每个账号关联了:

  • 1)a unique address
  • 2)a validity predicate
  • 3)dynamic storage

2. Address

Anoma中的address分为:

  • transparent address:关联了dynamic storage sub-spaces,地址为the prefix key segment of its sub-space。
  • shielded address:用于隐私交易,不直接与storage sub-spaces关联。

2.1 transparent address

Anoma中有3种transparent address:

  • 1)Implicit address:当前Anoma未完全支持。基于某公钥 派生而来,可用于授权特定的交易。可用作recipients of transactions without even when the account has not been used on-chain before。
  • 2)Established address:支持the deployment of custom validation logic。基于当前address nonce生成,必须通过交易在链上创建。直到交易提交上链后才知道具体的地址。
  • 3)Internal address:特殊的内部地址,如protocol parameters account, PoS和IBC。

Anoma中链上地址的存储采用基于bech32 改进的 bech32m 编码方案,目前ZCash暂未实现bech32m。
为了使地址便于识别,前缀为:

  • ”a“ for Anoma live network
  • “atest” for test network

2.2 shielded address

Zcash Sapling protocol payment addresses and keys (section 3.1)类似,用户为private payment生成spending key,基于该 spending key可派生出 shielded payment address、incoming viewing key 和 full viewing key。在private payment中,shielded payment address 和 diversifier 一起hash生成 a diversified transmission key。可对不同的交易选择不同的diversifier,从而可避免通过交易来匹配transmission key。

目前暂未确定对shielded addresses、spending key和 viewing key的编码方式,但为了保持一致性,可能会选用相同的编码方式,只是前缀不同。

  • TODO consider using a schema similar to the unified addresses proposed in Zcash, that are designed to unify the payment addresses across different versions by encoding a typecode and the length of the payment address together with it. This may be especially useful for the protocol upgrade system and fractal scaling system.

参考资料

[1] Anoma doc
[2] Anoma accounts设计文档

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
以下是一篇即将投稿Minerals期刊(MDPI出版社)的论文初稿的部分内容,请按照该期刊对论文格式的要求,将以下内容进行压缩凝练(注意:可对内容进行删减,对错误进行修正,对语句顺序进行调整,符合美式英语标准,符合英语母语者语言习惯,句子简明易懂,术语使用准确,保留文章结构、不偏离论文主要内容): Rocks and ore components directly enter the soil and water system sediments through physical weathering and chemical weathering, and the geochemical anomalies originally present in the rocks further spread with the entry into the soil or directly into the water system, forming soil anomalies and water system sediment anoma-lies.Geochemical anomaly detection is essentially the detection of signal anomalies in geochemical data, which refers to finding out the anomalous distribution of chemical elements themselves and the anomalous distribution of multiple elements in combination through feature extraction and analysis processing of geochemical data in the study area, and reflecting the mineral distribution through the distribution of geochemical ele-ments.Through the method of geochemical anomaly finding, the detected anomalies may contain information indicating specific minerals, which facilitates the rapid tracing of prospective areas and favorable areas for mineralization, identifies possible mineralizing elements and distribution characteristics in the work area, provides basic information for the strategic deployment of mineralization search, and provides good indications for later mineralization search.
02-28
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值