pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
61 stars 33 forks source link

[IBC] Update IBC identifier logic #974

Open h5law opened 10 months ago

h5law commented 10 months ago

Objective

Relayers need to use identifiers to specify clients, connections, channels and ports. Currently the identifiers are generated randomly. However, to aid the relayers they should be semi-structured.

The proposed changes are as follows:

  1. Client Identifiers should be prefixed with their client type for consistency with ibc-go
    • they should have a unique 8 character suffix matching [0-9a-zA-Z]
    • example: 08-wasm-Fj06bZ84
  2. Connection Identifiers should be prefixed with connection
    • they should have a unique 8 character suffix matching [0-9a-zA-Z]
    • example connection-8bvC6762
  3. Channel Identifiers should be prefixed with channel
    • they should have a unique 8 character suffix matching [0-9a-zA-Z]
    • example channel-972309bR
  4. Port Identifiers should be chosen depending on their purpose
    • example transfer

Origin Document

https://hermes.informal.systems/tutorials/local-chains/add-a-new-relay-path.html#identifiers

Goals

Deliverable

Non-goals / Non-deliverables

General issue deliverables

Testing Methodology


Creator: @h5law Co-Owners: @h5law