Chain id naming convention #77

Open
opened 2023-01-11 06:47:09 +00:00 by 0xmuralik · 3 comments
0xmuralik commented 2023-01-11 06:47:09 +00:00 (Migrated from github.com)

Figure out a naming convention for chain ids.

The current one follows {string}_{number/port}-{number} --adopted from ethermint. Example: laconic_9000-1.
But the conventional approach to naming chains in the cosmos ecosystem has been {string}-{number}. Example: cosmoshub-4
There is no strict rule to follow for chain-ids, but it's better to decide on the best one for us.

Once decided on the naming convention, change the regex check and few other tests to work accordingly.
ab2ea51aac/types/chain_id.go (L18)

Figure out a naming convention for chain ids. The current one follows {string}_{number/port}-{number} --adopted from ethermint. Example: laconic_9000-1. But the conventional approach to naming chains in the cosmos ecosystem has been {string}-{number}. Example: cosmoshub-4 There is no strict rule to follow for chain-ids, but it's better to decide on the best one for us. Once decided on the naming convention, change the regex check and few other tests to work accordingly. https://github.com/cerc-io/laconicd/blob/ab2ea51aac6e3c26a41dd4028d8d5d8884e13b50/types/chain_id.go#L18
0xmuralik commented 2023-01-23 05:58:27 +00:00 (Migrated from github.com)

The Evmos Chain ID contains 3 main components

Identifier: Unstructured string that defines the name of the application.
EIP155 Number: Immutable EIP155 CHAIN_ID that defines the replay attack protection number.
Version Number: Is the version number (always positive) that the chain is currently running. This number MUST be incremented every time the chain is upgraded or forked in order to avoid network or consensus errors.

The EIP155 corresponds to the ethereum based ChanID. https://chainlist.org/?search=evmos&testnets=true

Every chain must have a unique identifier or chain-id. Tendermint requires each application to define its own chain-id in the genesis.json fields. However, in order to comply with both EIP155 and Cosmos standard for chain upgrades, Evmos-compatible chains must implement a special structure for their chain identifiers.

Hence, laconicd should also adopt the same chain-id format with a unique EIP155 number.

The format for specifying Evmos compatible chain-id in genesis is the following:
{identifier}_{EIP155}-{version}

Helpful Links:
https://docs.evmos.org/users/technical_concepts/chain_id.html
https://chainlist.org/?search=evmos&testnets=true
https://github.com/cosmos/chain-registry/blob/master/evmos/chain.json#L8
https://eips.ethereum.org/EIPS/eip-155

The Evmos Chain ID contains 3 main components Identifier: Unstructured string that defines the name of the application. EIP155 Number: Immutable EIP155 CHAIN_ID that defines the replay attack protection number. Version Number: Is the version number (always positive) that the chain is currently running. This number MUST be incremented every time the chain is upgraded or forked in order to avoid network or consensus errors. The EIP155 corresponds to the ethereum based ChanID. https://chainlist.org/?search=evmos&testnets=true Every chain must have a unique identifier or chain-id. Tendermint requires each application to define its own chain-id in the genesis.json fields. However, in order to comply with both EIP155 and Cosmos standard for chain upgrades, Evmos-compatible chains must implement a special structure for their chain identifiers. Hence, laconicd should also adopt the same chain-id format with a unique EIP155 number. The format for specifying Evmos compatible chain-id in genesis is the following: {identifier}_{EIP155}-{version} Helpful Links: https://docs.evmos.org/users/technical_concepts/chain_id.html https://chainlist.org/?search=evmos&testnets=true https://github.com/cosmos/chain-registry/blob/master/evmos/chain.json#L8 https://eips.ethereum.org/EIPS/eip-155
0xmuralik commented 2023-01-23 05:58:58 +00:00 (Migrated from github.com)

Next steps: Decide on a EIP155 chain id
@AFDudley @i-norden

Next steps: Decide on a EIP155 chain id @AFDudley @i-norden
0xmuralik commented 2023-02-23 10:07:13 +00:00 (Migrated from github.com)

@AFDudley @i-norden any updates on this?

@AFDudley @i-norden any updates on this?
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cerc-io/laconicd-deprecated#77
No description provided.