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

encodeSs58 fix for id >= 64 #1342

Merged
merged 3 commits into from
Jan 9, 2023
Merged

Conversation

Elestrias
Copy link
Contributor

Signed-off-by: elestrias rus8-2002@mail.ru

Referenced issues

Ss58codec protocol is working in different way after 64 index of network(f.e 69 - SORA network)

Description of the Change

the ss58 encode function is extended, new case was added according to protocol https://docs.substrate.io/fundamentals/accounts-addresses-keys/

Benefits

new codec will be able to work with all substrate addresses

Possible Drawbacks

Usage Examples or Tests

ss58encode(69, accountId, HasherImpl());

Alternate Designs

Signed-off-by: elestrias <rus8-2002@mail.ru>
core/primitives/ss58_codec.cpp Outdated Show resolved Hide resolved
Co-authored-by: Dmitriy Khaustov <khaustov.dm@gmail.com>
@kamilsa kamilsa enabled auto-merge (squash) January 9, 2023 09:01
@kamilsa kamilsa merged commit 6ea24a6 into qdrvm:master Jan 9, 2023
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

Successfully merging this pull request may close these issues.

3 participants