Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

Sgx compatible bitcoin-core/secp256k1 library

nolasco_napoleao
Beginner
685 Views

Hi,
I'm working on a C++ project that will sign data to be verified onchain in ethereum EVM, ethereum uses secp256k1 and RLP encoding, the resulting recoverable key is 65 char long.
https://eips.ethereum.org/EIPS/eip-2098

 

In the bitcoin-core organization, there is an C implementation for this:
https://github.com/bitcoin-core/secp256k1/blob/master/include/secp256k1_recovery.h

 

What should I consider when converting that source code to an SGX compatible version?
- Use static libraries
- Add enclave exception handling

 

Is there a comprehensive list of open source repos for sgx?

Do Go libraries require the same compatibility process?

Labels (1)
0 Kudos
2 Replies
Aznie_Intel
Moderator
630 Views

Hi Nolasco_napoleao,

 

Thanks for reaching out.

 

You may find the details of Intel SGX on this get started page where Open Source repo and samples are available for your reference.

 

Meanwhile, we found an external repo Go with Intel SGX (not owned by Intel) that may assist your use cases to use the Go library in SGX projects. This repo shows how to call C/C++ functions of Intel SGX enclave in Go language using cgo interface.

 

Hope that the information provided is useful for you. Please let us know if you have any questions.

 

 

Regards,

Aznie


0 Kudos
Peh_Intel
Moderator
573 Views

Hi Nolasco_napoleao,

 

This thread will no longer be monitored since we have provided answer.  If you need any additional information from Intel, please submit a new question.

 

 

Regards,

Peh

0 Kudos
Reply