Skip to content

CUIT-CBI/mpc

Repository files navigation

Secret Share

Usage

Run go get github.com/CUIT-CBI/mpc on your cmd line

Example:

    package main

    import (
        github.com/CUIT-CBI/mpc
    )

    func main() {
        secrets := []byte("Hello world!")
        parts := mpc.SplitSecret(secret, 5, 3)
        recovered := mpc.CombainSecret(parts[1:4])
        fmt.Println(string(recovered))
    }

Test

    go test

Benchmark Test

    go test -bench=.

Benchmark Test Result

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages