Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds MRENCLAVE and digest information to SGX build scripts #223

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

italo-sampaio
Copy link
Collaborator

@italo-sampaio italo-sampaio commented Nov 22, 2024

Output generated for all build variations:

build-sgx:

*******************
Build successful.
firmware/src/sgx/bin/hsmsgx:
ca290b9c59708a036ce7e79725e0986007aa1776da46e68429e3e9d52be8259f

firmware/src/sgx/bin/hsmsgx_enclave.signed:
digest: b9c7f97ad8b89c72aedf309a04f95d4f452a519633eb731d0604c96df85404bc
mrenclave: 1ef21c85da473a175f0d683930590e8d5b03f2e04ab4535ec94cc039d457f633
*******************

build-sgx-debug:

*******************
Build successful.
firmware/src/sgx/bin/hsmsgx:
ca290b9c59708a036ce7e79725e0986007aa1776da46e68429e3e9d52be8259f

firmware/src/sgx/bin/hsmsgx_enclave.signed:
digest: 6fc62e154b245849abb1d6f93951260e86da3732de23c576ce59c45325c43511
mrenclave: 83398f3a88c004df199ad22478099e2dd75c78474f427a50b60d377261ef3337
*******************

build-sgx-sim:

*******************
Build successful.
firmware/src/sgx/bin/hsmsgx:
6fe84efc82106c1cf651ae1f3896b35353e92abe71cebae79b7afed550c0c11f

firmware/src/sgx/bin/hsmsgx_enclave.signed:
digest: 308921dbd221f85b216baa41ee2cd539b9a8d2e6ed6e9447a490587581c3c360
mrenclave: 35210f065e88624c836aa40d7ca9c488171e914069a5312d2f8e99b5e0756e63
*******************

build-dist-sgx:

Building into /tmp/dist-sgx with checkpoint 0x00f06dcff26ec8b4d373fbd53ee770e9348d9bd6a247ad4c86e82ceb3c2130ac, minimum difficulty 0x7c50933098, network testnet and UI iteration ...
Copying files and creating directories...

Building middleware...
Building SGX distribution binaries...
..
9bbc2ffe05d7e44565e8d631e967b51abbe0f5f4ca2e4f0222c8918fc92fdee8  /home/italo/workspace/rsk-powhsm/middleware/bin/manager_sgx.tgz
81270237f4e201dcb6822d91b7614496e11b100c85a714fb2e9f531e39164133  /home/italo/workspace/rsk-powhsm/middleware/bin/adm_sgx.tgz

Building SGX apps...
/tmp/dist-sgx/hsm/hsmsgx:
ca290b9c59708a036ce7e79725e0986007aa1776da46e68429e3e9d52be8259f

/tmp/dist-sgx/hsm/hsmsgx_enclave.signed
digest: b9c7f97ad8b89c72aedf309a04f95d4f452a519633eb731d0604c96df85404bc
mrenclave: 1ef21c85da473a175f0d683930590e8d5b03f2e04ab4535ec94cc039d457f633

Build complete.

@italo-sampaio italo-sampaio marked this pull request as draft November 22, 2024 18:50
@italo-sampaio italo-sampaio marked this pull request as ready for review November 22, 2024 19:17
Copy link
Collaborator

@amendelzon amendelzon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@italo-sampaio italo-sampaio merged commit 738fb0f into feature/sgx Nov 25, 2024
5 checks passed
@italo-sampaio italo-sampaio deleted the enhancement/print-hashes branch November 25, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants