fabric-private-chaincode icon indicating copy to clipboard operation
fabric-private-chaincode copied to clipboard

Alternative simulation support for non-sgx platforms

Open mbrandenburger opened this issue 3 years ago • 3 comments

What this PR does / why we need it:

This PR introduces an alternative simulation support for non-sgx platforms, such as Mac M1. To make this work, both, the FPC chaincode and ercc can be compiled using pure go and without any SGX dependency, which allows playing with your FPC chaincode while developing on your non-sgx host.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing changes and/or breaks backward compatability?:

mbrandenburger avatar Jul 29 '22 19:07 mbrandenburger

@munapower this PR allows me to run FPC go chaincode WITHOUT SGX on Mac M1. Can you please have a look?

mbrandenburger avatar Aug 01 '22 09:08 mbrandenburger

Need PR #681 to be merged first

mbrandenburger avatar Aug 01 '22 09:08 mbrandenburger

I tested this PR on a non-Intel and non-Apple platform and the alternative simulation support and the updated instructions work like a charm. They really help when starting to work with FPC on a non-SGX platform.

Timo-1 avatar Aug 08 '22 15:08 Timo-1