SecretNetwork icon indicating copy to clipboard operation
SecretNetwork copied to clipboard

LocalSecret: Find a solution for Mac/AMD/ARM users

Open assafmo opened this issue 3 years ago • 7 comments

I'm thinking of maybe creating a docker images that runs QEMU and inside of QEMU run the current docker image.

assafmo avatar Feb 02 '22 06:02 assafmo

#877

Photomen1 avatar Feb 08 '22 11:02 Photomen1

Doesn't this fail because no SGX?

faddat avatar Apr 26 '22 00:04 faddat

The local testnet docker is using SGX simulation mode, so it works without the actual hardware and without actually working on encrypted data. @Cashmaney reports that it's already working on his AMD machine, so IMO we just need to create an ARM build in Makefile like we have for the contract build optimizer.

assafmo avatar Apr 26 '22 15:04 assafmo

Does this issue refer to the actual localsecret docker image, or just the secretcli executable?

Cashmaney avatar May 04 '22 14:05 Cashmaney

Just the docker image. Being able to run it on Mac M1 for example.

assafmo avatar May 06 '22 17:05 assafmo

Upon further investigation this might be possible on M1 if the cross-compiled image is run on QEMU > 6.2 (https://www.phoronix.com/scan.php?page=news_item&px=QEMU-6.2-Released). From what I've seen, the default QEMU version for Docker Desktop on M1 is like 5.x.x which might explain why by default emulation isn't working.

It's also entirely possible this is futile and there really isn't a good way to get this to work. I'll continue to play around with this and update the issue if there is any progress made:(

Cashmaney avatar Jul 05 '22 14:07 Cashmaney

https://github.com/apache/incubator-teaclave-sgx-sdk/issues/318#issuecomment-998521315

assafmo avatar Jul 12 '22 08:07 assafmo

Okay, closing this for now since an intrim solution is available in the form of the Gitpod environment - https://docs.scrt.network/secret-network-documentation/development/tools-and-libraries/local-secret#start-localsecret

Cashmaney avatar Aug 14 '22 10:08 Cashmaney