Giter Site home page Giter Site logo

Comments (5)

ntn-x2 avatar ntn-x2 commented on July 29, 2024 1

Not all chains are represented by a chain ID. Some are represented by genesis hash, for instance BTC and BCH.

If we decide to register the caip:// URI scheme (or something like that, not up-to-date with the latest developments there), then we could leverage the query or fragment components to "restrict" the result of a given URI. This is something the DID standard does, distinguishing between DIDs (which is the actual identifier), and the DID URL (which is used to query parts or specific state of a DID Document).

from caips.

ntn-x2 avatar ntn-x2 commented on July 29, 2024

So what would be the benefit of having a block number? What problem is it trying to solve?

from caips.

TimDaub avatar TimDaub commented on July 29, 2024

1234, is a block number. But in which blockchain? We can't figure it out. So it' be good if we could post a structured identifier of e.g. a block for eip115:1#1234

from caips.

ntn-x2 avatar ntn-x2 commented on July 29, 2024

Yes, but would the block number be part of the CAIP-2 spec? Or only of the CAIP-19 as an add-on for the CAIP-2 part? What would be then the meaning of a chain+block number? It would still not solve the unicity problem as two forked chains might still have been the same (+ same genesis hash) at that block number.

from caips.

TimDaub avatar TimDaub commented on July 29, 2024

IMO it's useful to have an id that points directly at a block (not caip19) but then once we had that we could also use it to filter/point to a specific block state of an asset on a chain (e.g. in caip19 &blockNumber=eip115:1:1234).

Unicity problem: Is this universally true? I think ETC has a different chainId comparred to ETH. Is the same true for other chains?

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.