Skip to content

Instantly share code, notes, and snippets.

@glassonion1
Created November 12, 2021 05:02
Show Gist options
  • Save glassonion1/88c90cbb53f56ba94a1a51e31df3cd71 to your computer and use it in GitHub Desktop.
Save glassonion1/88c90cbb53f56ba94a1a51e31df3cd71 to your computer and use it in GitHub Desktop.
package Server {
class App {
get_encription_key()
post_message()
}
class Enclave {
OnceCell<[u8; 32]> SECRET_KEY
ecall_get_encryption_key() <<ECall>>
ecall_decrypt() <<ECall>>
}
() ECall
}
class Client {
send_message()
}
package Blockchain {
class Storage <<Contract>> {
setValue()
getValues()
}
() ABI
}
Storage -l- ABI
App .> ECall
ECall - Enclave
App <.l. Client: HTTP
App ..> ABI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment