mirror of
https://github.com/corda/corda.git
synced 2025-01-04 04:04:27 +00:00
383d794c28
* Move merkle building extension functions on wire tx to WireTransaction class. * Add timestamp, notary, transaction type and signers to wire transaction id calculation. * Change construction of MerkleTree from duplicating last node on a given level to padding leaves' list with zero hash to size of the nearest power of 2 - so we always have a full binary tree. The problem was that it was possible to construct 2 different transactions with the same ids. Trick worked for txs having number of leaves that were not power of 2. * Update tear-offs documentation and diagrams to reflect changes in construction of Merkle trees - padding with zero hashes and including all WireTransaction fields in id computation. * Change in filtering API of WireTransaction for partial Merkle trees calculation. Instead of many filtering functions over a transaction only one needs to be provided. Additional change to check and verification of FilteredTransaction. * IRS demo change. Make filtering function a protected method of RatesFixFlow class. Comment on situation when capturing too much scope and connected problems with checkpointing. Change oracle and tear-offs documentation. |
||
---|---|---|
.. | ||
attachment-demo | ||
bank-of-corda-demo | ||
irs-demo | ||
network-visualiser | ||
raft-notary-demo | ||
simm-valuation-demo | ||
trader-demo | ||
README.md |
Sample applications
Please refer to README.md
in the individual project folders. There are the following demos:
- attachment-demo A simple demonstration of sending a transaction with an attachment from one node to another, and then accessing the attachment on the remote node.
- irs-demo A demo showing two nodes agreeing to an interest rate swap and doing fixings using an oracle.
- trader-demo A simple driver for exercising the two party trading flow. In this scenario, a buyer wants to purchase some commercial paper by swapping his cash for commercial paper. The seller learns that the buyer exists, and sends them a message to kick off the trade. The seller, having obtained his CP, then quits and the buyer goes back to waiting. The buyer will sell as much CP as he can! We recommend starting with this demo.
- Network-visualiser A tool that uses a simulation to visualise the interaction and messages between nodes on the Corda network. Currently only works for the IRS demo.
- simm-valudation-demo A demo showing two nodes reaching agreement on the valuation of a derivatives portfolio.
- raft-notary-demo A simple demonstration of a node getting multiple transactions notarised by a distributed (Raft-based) notary.
- bank-of-corda-demo A demo showing a node acting as an issuer of fungible assets (initially Cash)