可以“销毁”钱包吗?
2 个回答
- 投票数
-
- 2019-02-28
我是在回忆从原始002到原始003的过渡,因此希望我做对了.
如果您继续进行tzscan,您将看到有一个地址计数器
https://tzscan.io/tz1hAYfexyzPGG6RhZZMpDvAHifubsbb6kgn
当该计数器不为零时,表示该地址为"有效",这意味着在实践中其余额为非零,并且按实际情况,它在区块链上下文中占用的空间为非零.
您可以创建大量地址,但是只要它们的余额为0,它们就不会在上下文中占用任何空间(并且计数器保持为0).另外,如果您清空一个帐户,则不再有与之关联的存储,并且计数器会回到0.
现在要将余额放入一个空地址或将非空帐户的余额恢复为0需付费(因为proto 003,我认为金额为0.257xtz).
总而言之,我要说的是,将余额恢复为0就是最接近"破坏"地址的地方,因为它不再占用区块链上下文中的任何空间.
请注意,以上所有内容均适用于隐式地址(tz ...).即使余额为0(从003号协议开始),也无法删除原始合同(KT ..)
I am talking from memory of the transition from proto 002 to proto 003 so hopefully I got it right.
If you go on tzscan you will see that there is a counter for addresses
https://tzscan.io/tz1hAYfexyzPGG6RhZZMpDvAHifubsbb6kgn
When this counter is not zero it means the address is « alive » which means in practice that it has a non-zero balance and on practical terms it is taking a non-zero space in the blockchain context.
You can create tons of addresses but as long as they do have 0 balance they do not take any space in the context (and the counter stays at 0). Also if you empty an account there is no longer a storage associated with it and the counter goes back to 0.
Now in order to put balance into an empty address or to bring back the balance of a non-empty account back to 0 costs a fee (since proto 003 and I believe the amount is 0.257xtz).
All in all I would say that bring the balance back to 0 is the closest you can get to « destroy » an address since it does no longer consume any space in the blockchain’s context.
Please note that all of the above applies to implicit addresses (tz...). Originated contracts (KT..) cannot be deleted even with 0 balance (as of proto 003)
-
- 2019-02-28
如果与这些钱包中的任何一个进行任何交易,它们将永远在链上.
您可以使用以下方法在"tezos"节点上"忘记"它们:
tezos-client forget address <name> -f
-f (force)
选项将从磁盘(如果存在)中删除密钥.If there has been any transactions to or from any of these wallets they will be on the chain forever.
You can "forget" them on your tezos node using:
tezos-client forget address <name> -f
The
-f (force)
option will remove the keys from disk (if present).-
当然,将永远有一个与钱包的交易注册表(区块链的整个点).但是有可能告诉区块链钱包被毁了吗?它有用吗?Of course there will be a registry of transactions with the wallet forever (whole point of the blockchain). But is it possible to tell the blockchain a wallet has been destroyed? Is it ever useful?
- 1
- 2019-02-28
- luchonacho
-
据我所知,不.Not to my knowledge, no.
- 1
- 2019-02-28
- asbjornenge
我有几个钱包(
tz1...
),但是我只想用一个.是否可以删除钱包?如果是这样,区块链是否记录了该动作?区块链删除账户实际上有什么好处吗?当然,唯一钱包的数量非常多,足以满足任何潜在的需求,因此释放帐号不会有任何帮助.也许,将删除钱包的信息添加到区块链中可能只会向其中添加冗余信息,从而不必要地增加其大小.