Git Product home page Git Product logo

Comments (3)

mercadoa avatar mercadoa commented on June 14, 2024

➤ Lars Kuhtz commented:

The currently implemented SPV API doesn't require any intermediate/connection merkle roots.

This is the public API of Chainweb.Payload.SPV ( https://github.com/kadena-io/chainweb/blob/c9bb53fab1040193a23f32e25d4315b8221bb79b/src/Chainweb/Payload/SPV.hs#L17 ):

-- | Runs a transaction Proof. Returns the block hash on the target chain for
-- which inclusion is proven.

runTransactionProof :: TransactionProof SHA512t_256 -> BlockHash

-- | Verify a proof against the head of the target chain in the given CutDb. It guarantees that
-- the proof target Merkle hash is contained in the head of the target chain in the CutDb.

verifyTransactionProof
:: CutDb
-> TransactionProof SHA512t_256
-> IO Transaction

-- | Creates a witness that a transaction in is included in the head
-- of a chain in a chainweb.

createTransactionProof
:: PayloadCas cas
=> CutDb
-- ^ Block Header Database
-> PayloadDb cas
-- ^ Payload Database
-> ChainId
-- ^ target chain. The proof asserts that the subject
-- is included in the head of this chain.
-> ChainId
-- ^ source chain. This the chain of the subject
-> BlockHeight
-- ^ The block height of the transaction
-> Int
-- ^ The index of the transaction in the block
-> IO (TransactionProof SHA512t_256)

from chainweb-node.

mercadoa avatar mercadoa commented on June 14, 2024

➤ Emily Pillmore commented:

Beginning this task as of tomorrow - syncing with Stuart today about requirements and the current status of SPV infra

from chainweb-node.

mercadoa avatar mercadoa commented on June 14, 2024

Moved issue over to chainweb-node (108)

from chainweb-node.

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.