Skip to content

Commit

Permalink
Introduce EnclaveID as identifier (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
BedrockSquirrel authored Jan 30, 2024
1 parent 6a7b5f5 commit b69bb7f
Show file tree
Hide file tree
Showing 14 changed files with 1,059 additions and 778 deletions.
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

0 comments on commit b69bb7f

Please sign in to comment.