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

Introduce EnclaveID as identifier #1760

Merged
merged 6 commits into from
Jan 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions go/common/enclave.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ type Enclave interface {
// InitEnclave - initialise an enclave with a seed received by another enclave
InitEnclave(secret EncryptedSharedEnclaveSecret) SystemError

// EnclaveID - returns the enclave's ID
EnclaveID() (EnclaveID, SystemError)

// SubmitL1Block - Used for the host to submit L1 blocks to the enclave, these may be:
// a. historic block - if the enclave is behind and in the process of catching up with the L1 state
// b. the latest block published by the L1, to which the enclave should respond with a rollup
Expand Down
1 change: 1 addition & 0 deletions go/common/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const (
RollupHashKey = "rollup"
CmpKey = "component"
NodeIDKey = "node_id"
EnclaveIDKey = "enclave_id"
NetworkIDKey = "network_id"
BlockHeightKey = "block_height"
BlockHashKey = "block_hash"
Expand Down
Loading
Loading