silence-laboratories / silent-shard-dkls23-ll

Multi-Party Threshold Signature Library for ECDSA
Other
24 stars 8 forks source link

Multi-Party-TSS (ECDSA-DKLs23)

Silent Shard uses Multiparty computation (MPC) and enables a set of parties that do not trust each other to jointly compute a secret signing key without being constructed in one place and an ECDSA signature over their secret key shards while not sharing them with any of the involved parties, removing single points of trust.

TSS consists of three stages:

These functions involve cryptographic computing at the participating nodes of the MPC quorum and exchanges of rounds of messages which ultimately lead to the generation of a valid signature at the requested node. These computing nodes can be any device with sufficient computational and memory capability, including but not limited to smartphones, server nodes, and edge devices. The basic philosophy behind Silent Shard remains that no single device holding the private key can be used to generate signatures and move digital assets. The private key is shared among multiple computing nodes so that no party has any information about the key. Then, in order to generate a signature, the threshold number of devices run a secure two-party computation protocol that generates the signature without revealing anything about the parties' key shares to each other. These devices may or may not be associated with the same person or organization and can be any form factor. Thus, one could use this to create a wallet, sharing the private key between one's mobile and one's laptop, between one's mobile and a VM in the cloud, and so on.

Protocol

Disclaimer

Crates

dksl23-ll

The library contains a small set of tests. Please look for usual Rust tests in src/dkg.rs and src/dsg.rs

Εxamples (local unit tests with no communication)

dkls-wasm-ll

WASM bindings for dkls23-ll.

Build:

Install wasm-pack:

curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

wasm-pack build -t web wrapper/wasm-ll

Tests:

To run the test install deno:

curl -fsSL https://deno.land/install.sh | sh

deno test -A wrapper/wasm-ll/tests/tests.ts

Articles and links