Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print mrenclave as base58, not hex value #116

Open
haerdib opened this issue Nov 18, 2022 · 2 comments
Open

Print mrenclave as base58, not hex value #116

haerdib opened this issue Nov 18, 2022 · 2 comments

Comments

@haerdib
Copy link
Contributor

haerdib commented Nov 18, 2022

A registered enclave currently looks like the following:
grafik

But to use the mrenclave via CLI, it needs to be base 58 encoded. So why not print it that way right away?

@clangenb
Copy link
Contributor

The issue is that polkadot-js/apps does this automatically for us because the pubkey is defined as an AccountId. Also, is not base58, it is ss58, which includes the chain's specific ss58 in the encoding. I do not know how we could tell polkadot-js that it should be printed bs58-encoded.

But yeah, if there is a simple way to do this, it would be nice.

@haerdib
Copy link
Contributor Author

haerdib commented Nov 21, 2022

Maybe converting it to a string will solve it. But since an AccountId in no_std does not implement the print method, it will be tricky anyway. But I think it should be possible somehow. I hope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants