TCN protocol based on Private Set Intersection Cardinality.
import "github.com/bcebere/tcn-psi/client"
import "github.com/bcebere/tcn-psi/client"
bazel test //tcn_psi/go/... --test_output=all
bazel test //tcn_psi/go/... --test_arg=-test.bench=. --test_output=all
- Add Bazel depends to your WORKSPACE, as indicated in the Usage section.
- Add the server or the client to your deps in the BUILD file
go_library(
name = "go_default_library",
srcs = ["main.go"],
deps = [
"@org_openmined_tcn_psi//tcn_psi/go/server",
"@org_openmined_tcn_psi//tcn_psi/go/client",
],
)
- Import and use the library
package main
import (
"fmt"
"github.com/openmined/tcn-psi/client"
"github.com/openmined/tcn-psi/server"
)
func main(){
tcnServer, err := server.CreateWithNewKey()
if err == nil {
fmt.Println("server loaded")
}
tcnClient, err := client.Create()
if err == nil {
fmt.Println("client loaded")
}
}