This is the beta version of Go SGX Adapter for collecting Quote from SGX enabled platform.
This library leverages Intel SGX DCAP for Quote generation: https://github.com/intel/SGXDataCenterAttestationPrimitives
Use go1.17 or newer.
Create a new Go SGX adapter, then use the adapter to collect quote from SGX enabled platform.
import "github.com/intel/amber-client/go-sgx"
adapter, err := sgx.NewAdapter(enclaveId, enclaveHeldData, unsafe.Pointer(C.enclave_create_report))
evidence, err := adapter.CollectEvidence(nonce)
if err != nil {
return err
}
This library is distributed under the BSD-style license found in the LICENSE file.