Comments (3)
➤ 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.
➤ 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.
Moved issue over to chainweb-node (108)
from chainweb-node.
Related Issues (20)
- fix server startup in `Chainweb.Chainweb` (make sure exception in server are propagated).
- On-chain error reporting should be restored HOT 16
- GNU/Linux Debian 11 - 5.19.0-0.deb11.2-amd64 - build error - cabal: Error parsing project freeze file HOT 4
- Incorrect Whitepaper link in "About" Section HOT 1
- Transactions often "idle" for several blocks before being included HOT 3
- Gas Errors Are Unhelpful HOT 5
- DoS Attack Potential Using gasLimit HOT 6
- Mempool Transaction Propagation HOT 13
- Trying to build on Mac M1 fails with "Could not resolve dependencies" HOT 3
- How to obtain the ubuntu binary? HOT 4
- Node unable to reach bootstrap peers HOT 3
- nix-build no longer works as of latest release 2.19/2.19.1 HOT 5
- cabal install fails as of 2.19/2.19.1 HOT 8
- chainweb-node crashes from time to time HOT 2
- Question about Namespace contracts HOT 2
- Suggestion: Give the possibility to install a cap without a signature in a transaction payload HOT 6
- /poll endpoint omits results HOT 6
- chainweb-data is not indexing from a fully synced node after the forced 06Sept update HOT 10
- HTTP server error: ConnectionIsClosed - node works for awhile then goes down
- HTTP server error: StreamErrorIsReceived Cancel 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chainweb-node.