Git Product home page Git Product logo

Comments (9)

shawntabrizi avatar shawntabrizi commented on May 25, 2024 6

@pedrouid this sounds like a good approach from our side!

Although polkadot:hash may not be as generic as substrate:hash. There may be many future substrate chains not related to Polkadot, but could enter your ecosystem for free because they all follow the same standards.

from caips.

jam10o-new avatar jam10o-new commented on May 25, 2024 3

would actually argue counter to that - substrate is exclusive to alternative Polkadot Hosts (Gossamer, Kagome) or parachain development kits (none exist yet afaik but 🤷‍♂️) which would connect to the same networks but might not use Substrate at any stage.

polkadot is the name of the chain, but also the name of the network.

from caips.

pedrouid avatar pedrouid commented on May 25, 2024

There is an issue however with using the genesis-hash as is to be compatible with CAIP-2 since the reference should not be longer than 47 characters.

# Kusama
polkadot:b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe
# Edgeware
polkadot:742a2ca70c2fda6cee4f8df98d64c4c670a052d9568058982dad9d5a7a135c5b
# Kulupu
polkadot:37e1f8125397a98630013a4dff89b54cb758ff8eed894419e65a6dcf27a6fb8a

In that case I would suggest that we truncate it to 47 characters or we would use the first 32 characters from the resulting hash.

I would love your feedback. cc @webmaster128 @ligi

from caips.

ligi avatar ligi commented on May 25, 2024

I like the more generic substrate: idea - could help in the future.
Otherwise LGTM

from caips.

pedrouid avatar pedrouid commented on May 25, 2024

Yeah this is similar to cosmos namespace where we argued about using tendermint instead but you can be part of the cosmos network and not use tendermint so I would keep it as polkadot

from caips.

pedrouid avatar pedrouid commented on May 25, 2024

Actually I just realized that CAIP-4 uses the first 32 characters of the genesis hash, I will update to match it

from caips.

pedrouid avatar pedrouid commented on May 25, 2024

I've updated the PR #14... please give it another look @joshua-mir @shawntabrizi @ligi before merging

from caips.

pedrouid avatar pedrouid commented on May 25, 2024

Merged #14

from caips.

imsys avatar imsys commented on May 25, 2024

I think it could be nice to add the hash of Polkadot Mainnet to the list. Just for reference and to help others implementing the CAIP standards.

# Polkadot mainnet
polkadot:91b171bb158e2d3848fa23a9f1c25182

Source: https://polkadot.subscan.io/block/0

from caips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.