Skip to content

Commit

Permalink
update references and typos
Browse files Browse the repository at this point in the history
Signed-off-by: Bruno Vavala <[email protected]>
  • Loading branch information
bvavala authored and g2flyer committed Feb 5, 2021
1 parent 2bddb79 commit 11cc896
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,9 +407,10 @@ git clone https://github.com/hyperledger/fabric.git $FABRIC_PATH
cd $FABRIC_PATH; git checkout tags/v2.3.0
```

Note that Fabric Private Chaincode currently does not work with the Fabric `master` branch, therefore make sure you use the Fabric
`v2.3.0` tag. This is important as our build script applies some patches
to the fabric peer to enable FPC support. Make sure the source of Fabric is in your `$GOPATH`.
Note that Fabric Private Chaincode may not work with the Fabric `master` branch.
Therefore make sure you use the Fabric `v2.3.0` tag.
This is important as our build script applies some patches to the fabric peer to enable FPC support.
Make sure the source of Fabric is in your `$GOPATH`.

### Build Fabric Private Chaincode

Expand Down
4 changes: 2 additions & 2 deletions client_sdk/go/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ SPDX-License-Identifier: Apache-2.0
//
// Usage samples
//
// samples/main.go: Illustrates the use of the FPC Client SDK. The application can be used with the our test-network.
// Reference: https://github.com/hyperledger-labs/fabric-private-chaincode/tree/master/integration/test-network
// samples/main.go: Illustrates the use of the FPC Client SDK. The application can be used with our test-network.
// Reference: https://github.com/hyperledger-labs/fabric-private-chaincode/tree/v1.0-rc1/integration/test-network
//
package fpcclientsdk
4 changes: 2 additions & 2 deletions client_sdk/go/pkg/client/resmgmt/lifecycleclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ SPDX-License-Identifier: Apache-2.0
// Package resmgmt provides FPC specific chaincode management functionality.
//
// For more information on the FPC management commands and related constraints on chaincode versions and endorsement policies,
// see https://github.com/hyperledger-labs/fabric-private-chaincode/blob/master/docs/design/fabric-v2+/fpc-management.md
// see https://github.com/hyperledger-labs/fabric-private-chaincode/blob/v1.0-rc1/docs/design/fabric-v2+/fpc-management.md
//
// Example:
//
Expand All @@ -34,7 +34,7 @@ SPDX-License-Identifier: Apache-2.0
// log.Fatal(err)
// }
//
// See also https://github.com/hyperledger-labs/fabric-private-chaincode/blob/master/integration/client_sdk/go/utils.go
// See also https://github.com/hyperledger-labs/fabric-private-chaincode/blob/v1.0-rc1/integration/client_sdk/go/utils.go
// for a running example.
//
package resmgmt
Expand Down
2 changes: 1 addition & 1 deletion client_sdk/go/pkg/gateway/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var logger = flogging.MustGetLogger("fpc-client-gateway")
// but in addition to the normal FPC operations, it performs FPC specific steps such as encryption/decryption of chaincode requests/responses.
//
// A Contract object is created using the GetContract() factory method.
// For an example of its use, see https://github.com/hyperledger-labs/fabric-private-chaincode/blob/master/client_sdk/go/test/main.go
// For an example of its use, see https://github.com/hyperledger-labs/fabric-private-chaincode/blob/v1.0-rc1/client_sdk/go/sample/main.go
type Contract interface {
// Name returns the name of the smart contract
Name() string
Expand Down
2 changes: 1 addition & 1 deletion docs/design/fabric-v2+/interfaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ namespaces/exported/<chaincode_id>/<enclave_id> -> SignedExportMessage
```

This key scheme is design with the goal in mind to reduce the write conflicts for concurrent enclave registrations.
ERCC state can accessed and modified by the [lifecycle ledger shim](https://github.com/hyperledger/fabric/blob/master/core/chaincode/lifecycle/ledger_shim.go) or the normal [go-chaincode shim](https://github.com/hyperledger/fabric/blob/master/vendor/github.com/hyperledger/fabric-chaincode-go/shim/stub.go). Here an example:
ERCC state can be accessed and modified by the [lifecycle ledger shim](https://github.com/hyperledger/fabric/blob/master/core/chaincode/lifecycle/ledger_shim.go) or the normal [go-chaincode shim](https://github.com/hyperledger/fabric/blob/master/vendor/github.com/hyperledger/fabric-chaincode-go/shim/stub.go). Here an example:
```go
// returns the chaincode encryption key for AuctionChaincode1
k := fmt.Sprintf("namespaces/chaincode_ek/%s", "AuctionChaincode1")
Expand Down
2 changes: 1 addition & 1 deletion ercc/registry/registry.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Copyright 2020 Intel Corporation
SPDX-License-Identifier: Apache-2.0
*/

// this package defines the client-facing interface of ERCC as defined in the ERCC Interface section in [specifications](https://github.com/hyperledger-labs/fabric-private-chaincode/blob/master/docs/design/fabric-v2%2B/interfaces.md)
// this package defines the client-facing interface of ERCC as defined in the ERCC Interface section in [specifications](https://github.com/hyperledger-labs/fabric-private-chaincode/blob/v1.0-rc1/docs/design/fabric-v2%2B/interfaces.md)
package registry

import (
Expand Down

0 comments on commit 11cc896

Please sign in to comment.