Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
d1cac6cd
Commit
d1cac6cd
authored
5 years ago
by
Gavin Wood
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Sort address types and mark reserved. (#5189)
* Sort address types and mark reserved. * Typos * Fix warning
parent
d56c374b
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/primitives/core/src/crypto.rs
+39
-30
39 additions, 30 deletions
substrate/primitives/core/src/crypto.rs
with
39 additions
and
30 deletions
substrate/primitives/core/src/crypto.rs
+
39
−
30
View file @
d1cac6cd
...
...
@@ -345,7 +345,7 @@ fn ss58hash(data: &[u8]) -> blake2_rfc::blake2b::Blake2bResult {
#[cfg(feature
=
"std"
)]
lazy_static
::
lazy_static!
{
static
ref
DEFAULT_VERSION
:
Mutex
<
Ss58AddressFormat
>
=
Mutex
::
new
(
Ss58AddressFormat
::
SubstrateAccount
Direct
);
=
Mutex
::
new
(
Ss58AddressFormat
::
SubstrateAccount
);
}
#[cfg(feature
=
"full_crypto"
)]
...
...
@@ -430,36 +430,45 @@ macro_rules! ss58_address_format {
#[cfg(feature
=
"full_crypto"
)]
ss58_address_format!
(
SubstrateAccountDirect
=>
(
42
,
"substrate"
,
"Any Substrate network, direct checksum, standard account (*25519)."
)
PolkadotAccountDirect
=>
(
0
,
"polkadot"
,
"Polkadot Relay-chain, direct checksum, standard account (*25519)."
)
KusamaAccountDirect
=>
(
2
,
"kusama"
,
"Kusama Relay-chain, direct checksum, standard account (*25519)."
)
PlasmAccountDirect
=>
(
5
,
"plasm"
,
"Plasm Network, direct checksum, standard account (*25519)."
)
BifrostAccountDirect
=>
PolkadotAccount
=>
(
0
,
"polkadot"
,
"Polkadot Relay-chain, standard account (*25519)."
)
Reserved1
=>
(
1
,
"reserved1"
,
"Reserved for future use (1)."
)
KusamaAccount
=>
(
2
,
"kusama"
,
"Kusama Relay-chain, standard account (*25519)."
)
Reserved3
=>
(
3
,
"reserved3"
,
"Reserved for future use (3)."
)
PlasmAccount
=>
(
5
,
"plasm"
,
"Plasm Network, standard account (*25519)."
)
BifrostAccount
=>
(
6
,
"bifrost"
,
"Bifrost mainnet, direct checksum, standard account (*25519)."
)
EdgewareAccountDirect
=>
(
7
,
"edgeware"
,
"Edgeware mainnet, direct checksum, standard account (*25519)."
)
KaruraAccountDirect
=>
(
8
,
"karura"
,
"Acala Karura canary network, direct checksum, standard account (*25519)."
)
ReynoldsAccountDirect
=>
(
9
,
"reynolds"
,
"Laminar Reynolds canary network, direct checksum, standard account (*25519)."
)
AcalaAccountDirect
=>
(
10
,
"acala"
,
"Acala mainnet, direct checksum, standard account (*25519)."
)
LaminarAccountDirect
=>
(
11
,
"laminar"
,
"Laminar mainnet, direct checksum, standard account (*25519)."
)
KulupuAccountDirect
=>
(
16
,
"kulupu"
,
"Kulupu mainnet, direct checksum, standard account (*25519)."
)
DothereumAccountDirect
=>
(
20
,
"dothereum"
,
"Dothereum Para-chain, direct checksum, standard account (*25519)."
)
CentrifugeAccountDirect
=>
(
36
,
"centrifuge"
,
"Centrifuge Chain mainnet, direct checksum, standard account (*25519)."
)
SubstraTeeAccountDirect
=>
(
44
,
"substratee"
,
"Any SubstraTEE off-chain network private account, direct checksum, standard account (*25519)."
)
DarwiniaAccountDirect
=>
(
18
,
"darwinia"
,
"Darwinia Chain mainnet, direct checksum, standard account (*25519)."
)
EdgewareAccount
=>
(
7
,
"edgeware"
,
"Edgeware mainnet, standard account (*25519)."
)
KaruraAccount
=>
(
8
,
"karura"
,
"Acala Karura canary network, standard account (*25519)."
)
ReynoldsAccount
=>
(
9
,
"reynolds"
,
"Laminar Reynolds canary network, standard account (*25519)."
)
AcalaAccount
=>
(
10
,
"acala"
,
"Acala mainnet, standard account (*25519)."
)
LaminarAccount
=>
(
11
,
"laminar"
,
"Laminar mainnet, standard account (*25519)."
)
KulupuAccount
=>
(
16
,
"kulupu"
,
"Kulupu mainnet, standard account (*25519)."
)
DarwiniaAccount
=>
(
18
,
"darwinia"
,
"Darwinia Chain mainnet, standard account (*25519)."
)
CentrifugeAccount
=>
(
36
,
"centrifuge"
,
"Centrifuge Chain mainnet, standard account (*25519)."
)
SubstrateAccount
=>
(
42
,
"substrate"
,
"Any Substrate network, standard account (*25519)."
)
Reserved43
=>
(
43
,
"reserved43"
,
"Reserved for future use (43)."
)
SubstraTeeAccount
=>
(
44
,
"substratee"
,
"Any SubstraTEE off-chain network private account (*25519)."
)
Reserved46
=>
(
46
,
"reserved46"
,
"Reserved for future use (46)."
)
Reserved47
=>
(
47
,
"reserved47"
,
"Reserved for future use (47)."
)
// Note: 48 and above are reserved.
);
/// Set the default "version" (actually, this is a bit of a misnomer and the version byte is
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment