Skip to content

Commit

Permalink
#31 POC for Anjuna CCP based enclave(SGX) written in Golang to be use…
Browse files Browse the repository at this point in the history
…d by host corda node.
  • Loading branch information
hiteshvpatel256 committed Jun 23, 2022
1 parent 7f03b81 commit 36f12af
Show file tree
Hide file tree
Showing 9 changed files with 407 additions and 0 deletions.
Binary file not shown.
Binary file added protocolAggregator/anjunaEnclave/pocEnclave
Binary file not shown.
19 changes: 19 additions & 0 deletions protocolAggregator/anjunaEnclave/pocEnclave.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package main

import (
"fmt"
"io/ioutil"
)

func main() {
data, err := ioutil.ReadFile("/home/azureuser/anjuna-poc-host/greetings.txt.sealed")
if err != nil {
fmt.Println("File reading error", err)
return
}
fmt.Println("Contents of file:", string(data))
//fmt.Println("!... Hello World ...!")
}



22 changes: 22 additions & 0 deletions protocolAggregator/anjunaEnclave/pocEnclave.manifest.sgx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
environment:
- name: LD_LIBRARY_PATH
value: Runtime
command: /home/azureuser/anjuna-poc-host/pocEnclave
enclave_size: 2147483648
num_threads: 64
num_switchless_workers: 1
isv_prod_id: 0
isv_svn: 0
trusted_hashes:
- path: /home/azureuser/anjuna-poc-host/pocEnclave
hash: 66a88071b0e4cdb5af1b383663741011011f9a03f7fba8b5b8bfc871f25e67c8
disable_switchless: false
ignore_map_shared: false
ignore_vfork: false
is_production: false
keys:
- id: encryption
source: enclave_generated
encrypted_files:
- path: /home/azureuser/anjuna-poc-host/greetings.txt.sealed
key: encryption
357 changes: 357 additions & 0 deletions protocolAggregator/anjunaEnclave/pocEnclave.manifest.template.yaml

Large diffs are not rendered by default.

Binary file added protocolAggregator/anjunaEnclave/pocEnclave.sig
Binary file not shown.
Binary file not shown.
9 changes: 9 additions & 0 deletions protocolAggregator/anjunaEnclave/provision/pocEnclave.pubkey
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-----BEGIN PUBLIC KEY-----
MIIBIDANBgkqhkiG9w0BAQEFAAOCAQ0AMIIBCAKCAQEA4HVvbcRfM/kB1nuBnHVQ
Go9EnjsmK1wtxG9M8Qjnay3ahVwiNeHy/6hZ8NL0XPlXifWPE5AnFDhnjpEHDZwl
iwqxZvUVRaG4ehayg65IjNLTHzsWOG68sKbW/cXkVEWqs2ilkEg9OkWpQKd14MbW
dNzDs/di6j5cUyvwNNGDQl63xZZRuHOP/GwoxRng6jp/5xxUie0oPze6WK1fESyG
EviTplrl4bDIJVmLh/tj/JdxctR5cHflkEs+pJvmj3j1TuGQJxh0cZWKBljALwe1
oANvPaA4OMkIXs9dF3k5coJVmiHyycyJbgrkf4H4f09kNkaOfqV8q66bDc99pUw+
gQIBAw==
-----END PUBLIC KEY-----
Binary file not shown.

0 comments on commit 36f12af

Please sign in to comment.