-
Notifications
You must be signed in to change notification settings - Fork 8
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
Polkadot Protocol > Protocol Components > Accounts > Address Formats #49
Conversation
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
There is something strange in this PR, because you have like 30 modified files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small fixes but is overall ok
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looking good, I think we could add more links back to the SDK for those who are more curious, but it is mostly fine as-is
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
|
||
Polkadot SDK offers several potential checksum strategies, each providing varying length and longevity guarantees. | ||
|
||
There are two types of checksum preimages (`SS58` and `AccountID`) along with a range of checksum lengths from 1 to 8 bytes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would nice to link these (SS58
and AccountID
), unfortunately I couldn't find this right away in the codebase.. so not exactly sure what it is referring to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll add this comment to the sheet and try to find it in code base, same result from my side. I can't find the right code to link here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure it is here, but I am not completely certain. Perhaps we can merge this, and find and add it later?
|
||
The bytes used are always the left-most bytes. The input consists of the non-checksum portion of the SS58 byte series, which is used as input to the base-58 function. | ||
|
||
For example, this input is formed by concatenating the `concat ( <address-type>, <address> )`. A context prefix of `0x53533538505245` (the string "SS58PRE") is then prepended to this input to create the final hashing preimage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some of these functions, again, it would be nice to link them for clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
polkadot-protocol/protocol-components/accounts/address-formats.md
Outdated
Show resolved
Hide resolved
Co-authored-by: 0xLucca <95830307+0xLucca@users.noreply.github.com>
Co-authored-by: 0xLucca <95830307+0xLucca@users.noreply.github.com>
Co-authored-by: 0xLucca <95830307+0xLucca@users.noreply.github.com>
Co-authored-by: 0xLucca <95830307+0xLucca@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Migrated https://docs.substrate.io/reference/address-formats/ page