- 28 Oct, 2016 1 commit
-
-
manish authored
Raw ledger provides basic functionality for storing and retrieving blocks. This is intended to be used by an orderer service https://jira.hyperledger.org/browse/FAB-56 Change-Id: I3fb733f5be53b6f630c20554ba4e362540b8f55a Signed-off-by:
manish <manish.sethi@gmail.com>
-
- 26 Oct, 2016 1 commit
-
-
Srinivasan Muralidharan authored
FAB-853 Ledger is removed from . core/peer/peer.go . core/rest/api.go Ledger package itself is removed. "ledgernext" is replaced with "ledger". Change-Id: Ie7dfbd9bf94afa0031aef759fc46929e4fb3b400 Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 24 Oct, 2016 1 commit
-
-
Srinivasan Muralidharan authored
Following skeletal end to end flow work, this submit takes the next steps for Endorser/Committer . converts chaincode and endorser to ledgernext . removes consensus package . chaincode unit tests use ledgernext . panics if ledger.GetLedger is called so we can catch codepaths that still use that. These are mainly core/api and core/peer . removes unit tests from core/api and core/ledger (to avoid GetLedger calls there) . created a minimal core/peernext. core/peer is still there for comparison but is not used Change-Id: I2627e0000e960e1aa66d27ff5ec60a38c4bb7eea Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 03 Oct, 2016 1 commit
-
-
Gregory Haskins authored
This reverts commit 562a35fd, reversing changes made to 4a78b412. This was done because we inadvertently merged a good chunk of master when patch a96b9edc was submitted to the v0.6 branch. We will cherry-pick a96b9edc in a later patch to restore the fix in the proper way. Change-Id: Ib16c0220e65697a68a5140960b82780c175d9fa2 Signed-off-by:
Greg Haskins <gregory.haskins@gmail.com>
-
- 28 Sep, 2016 1 commit
-
-
Srinivasan Muralidharan authored
The ledgernext and kvledger packages provide APIs to simulate transactions by collecting read-write sets from invokes of chaincodes. This change set integrates this for the Endorser flows. The main purpose of this code is to enable read write sets to be propagated so end to end flow ending in a commit to the ledger can be tested. The chaincode unit tests continue to use the old ledger. This allows us to (1) incrementally integrate ledger and (2) show that the two packages can coexist from a build and runtime point of view. It is worth noting that the file kv_ledgers.go hosts a temporary container for ledgers. This simple approach is expected to be revised when (sub)ledgers are implemented. Change-Id: I6e0bf4b9795b83d2ae869244b212c02ef9b5214a Signed-off-by:
Srinivasan Muralidharan <muralisr@us.ibm.com>
-
- 16 Sep, 2016 1 commit
-
-
Angelo De Caro authored
This PR addresses chaincode to chaincode invocation for confidential contracts (https://jira.hyperledger.org/browse/FAB-67 ). In order to achieve the goal the chaincode handler has been modified to contruct proper ephemeral transactions and security contexts. Let us consider the following scenario to describe the modification apported by this PR. Let us say that we have two chaincodes: A and B where A invokes B at some point of its computation. When a user invoke a chaincode A, using transaction tx, the certificate that the user has put in tx is passed to B when A invokes it. In this way, for example, chaincode B can perfom attribute-based access control. In addition, each chaincode can access it is own encrypted state and modify it in a proper way without affecting other chaincodes' state. This PR has been tested by adding a unit test in exectransaction_test.go. The unit tests, verify that C2C invocation can be perfomed when security is enabled. What will come next: 1. Chaincode to chaincode query. 2. Additional fields transfered to the invoked chaincode to support access control based on signature. Change-Id: I649d1953ac76e8af32d917a089a454fc0bba9fc1 Signed-off-by:
Angelo De Caro <adc@zurich.ibm.com>
-
- 10 Aug, 2016 1 commit
-
-
Gabor Hosszu authored
This allows applications to easily pass arbitrary blobs without having to serialize them to strings. At the same time, we also consolidate the function argument to be part of the repeated bytes args. For convenience and to simplify porting of existing chaincode to the new argument format, we introduce helper functions in the shim which cast between ([][]byte) and (string, []string). Change-Id: I67562523a208727157c4767e86e1ef437e997f13 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 08 Aug, 2016 1 commit
-
-
Gabor Hosszu authored
This squashed changeset does the following: - It renames UUID to TXID in the code (Go/Java), in tests, in proto files, in all chaincode related files - It uses all the arguments of the chaincode to generate the TXID Change-Id: Iae6f1fb45c12c2652d9ad18451e75ea1f91fe9a3 Signed-off-by:
Gabor Hosszu <gabor@digitalasset.com>
-
- 26 Jul, 2016 1 commit
-
-
Christopher Ferris authored
Copied from commit sha 346f9fb448140e931fed73b46f528de6dacbc0d0 to Gerrit. Verified that all DCO signoff received or IBM contribution. Change-Id: I812a2f48382a3cd37e153cd056d0ea94b7f416a0 Signed-off-by:
Christopher Ferris <chrisfer@us.ibm.com>
-