Skip to content

ss58 Prefix of 9072 not rendering in metadata #5

@mgravitt

Description

@mgravitt

Hashed Network should have an ss58 address prefix of 9072. This format ensures that each address starts with ha.

For example, this is the same account with different prefixes:
42 prefix: 5CMhinFmhCkybhc1QNH4m7W8nc43PYvmi9mGBE6VDgSxk15r
9072 prefix: haWofjdKbfRECxmjLqwHJVPEFrD1SdeMo2FQeqHQZzXdm5ZmV

In our chain spec, it is set like this:

	properties.insert("ss58Format".into(), 9072.into());
	properties.insert("prefix".into(), 9072.into());

Prefix set in chain spec:
https://github.com/hashed-io/hashed-substrate-parachain/blob/main/node/src/chain_spec/hashed.rs#L27

Prefix set in the parity-tech/ss58-registry repo:

    {
      "prefix": 9072,
      "network": "hashed",
      "displayName": "Hashed Network",
      "symbols": ["HASH"],
      "decimals": [18],
      "standardAccount": "*25519",
      "website": "https://hashed.network"
    },

https://github.com/paritytech/ss58-registry/blob/0f4d0a698021f4082d58126f1c503f44b494b699/ss58-registry.json#L1202C22-L1202C22

Our address prefix shows as 42 in polkadot.js.org:
image

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions