Sample that creates a client-side encrypted columns and then joins that data
ref: Constructing Trusted Execution Environment (TEE) with GCP Confidential Space
Each table will use a different encryption key:
package main | |
/* | |
$ cat helloworld.ts | |
export function add(a: i32, b: i32): i32 { | |
return a + b; | |
} | |
$ npm install -g assemblyscript | |
$ asc helloworld.ts -o hello-world.wasm |
#!/usr/bin/python | |
import dill | |
# to serialize, uncomment | |
# class RCE: | |
# import os | |
# def __init__(self, v="foo"): | |
# self._v = v | |
# def sq(self, n): | |
# return n*n |
package main | |
import ( | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"go.dedis.ch/kyber/v4/encrypt/ecies" |
#include <stdio.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <signal.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <openssl/ssl.h> | |
#include <openssl/err.h> |
Sample that creates a client-side encrypted columns and then joins that data
ref: Constructing Trusted Execution Environment (TEE) with GCP Confidential Space
Each table will use a different encryption key:
# minimal copy of https://www.tensorflow.org/tutorials/keras/text_classification | |
### which crates a TF Model about movie reviews, then saves the model to a file | |
#### later on read the model from file and test predictions | |
import os | |
import re | |
import shutil | |
import string | |
import tensorflow as tf | |
from tensorflow.keras import layers |
package main | |
/* | |
$ cat helloworld.ts | |
export function add(a: i32, b: i32): i32 { | |
return a + b; | |
} |
package main | |
import ( | |
"encoding/base64" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"os" | |
"go.dedis.ch/kyber/v3/pairing/bn256" |
package main | |
/* | |
$ gcloud compute instances create vm1 --shielded-secure-boot --scopes=cloud-platform --zone=us-central1-a --shielded-vtpm --shielded-integrity-monitoring | |
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS | |
vm1 us-central1-a n1-standard-1 10.128.0.104 35.224.160.133 RUNNING | |
$ gcloud compute instances describe vm1 --format="value(id)" |
package main | |
import ( | |
"encoding/base64" | |
"fmt" | |
"go.dedis.ch/kyber/v3/pairing/bn256" | |
"go.dedis.ch/kyber/v3/share" | |
"go.dedis.ch/kyber/v3/sign/bls" | |
"go.dedis.ch/kyber/v3/sign/tbls" |