Substrate用户界面中

Substrate用户界面中

本文介绍了在oo7 Substrate用户界面中,爱丽丝的资金为零的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用Bonds库(oo7)的Substrate-UI中,它表明"Alice"在开发链上的资金为零.我还注意到有些帐户被标记为ed25519,另一些帐户被标记为sr25519.

In the Substrate-UI using the Bonds library (oo7), it shows that "Alice" has zero funds on a development chain. I also notice that some accounts are labeled as ed25519 and other are sr25519.

我该如何修复并获得正确的爱丽丝的访问权限?

How can I repair this and gain access to the correct Alice?

推荐答案

最近,基质更改了从ed25519sr25519的帐户和交易签名的默认密码.

Recently, Substrate changed the default cryptography for accounts and transactions signing from ed25519 to sr25519.

根据所使用的软件组合(节点,UI等)以及所存储的本地存储项(例如UI中的帐户),您最终可能会得到帐户和密码学不兼容的组合.

Depending on what combination of software you are using (node, UI, etc...) and what local storage items you have stored (like accounts in your UI) you may end up with some incompatible combination of accounts and cryptography.

所以首先要注意的是:

在创世配置中启动的所有帐户(例如Alice)都使用sr25519.如您在屏幕快照中所见,您的浏览器存储已将Alice过去使用过的UI保存为ed25519帐户.

All the accounts initiated in the genesis configuration, like Alice, use sr25519. As you can see in your screenshot, your browser storage has saved Alice as an ed25519 account from your past usage of the UI.

要修复此问题,您需要删除UI中具有的Alice版本,并使用种子//Alice添加新的Alice.默认情况下,支持sr25519的新用户界面应自动使用该密码术生成新帐户.

To repair this, you need to delete the version of Alice you have in your UI, and add a new Alice using the seed //Alice. By default, the new UI which supports sr25519 should automatically use that cryptography to generate new accounts.

否则,如果要使用此UI生成新的ed25519帐户,可以通过在种子前添加前缀来实现,例如:ed25519://Alice.

Otherwise, if you want to generate new ed25519 accounts using this UI, you can do so by prefixing your seed like this: ed25519://Alice.

这篇关于在oo7 Substrate用户界面中,爱丽丝的资金为零的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 07:39