Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bitcoin support #3

Merged
merged 14 commits into from
Mar 14, 2024
51 changes: 38 additions & 13 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@ members = [
"givre",
"tests",
]

[patch.crates-io.generic-ec]
git = "https://github.com/dfns/generic-ec"
branch = "m"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ FROST is state of art protocol for Threshold Schnorr Signatures that supports 1-
commit nonces ahead of time), and identifiable abort.

This crate provides:
* Threshold and non-threshold Distributed Key Generation (DKG) \
* Distributed Key Generation (DKG) \
Note that FROST does not define DKG protocol to be used. We simply re-export DKG based on [CGGMP21] implementation
when `cggmp21-keygen` feature is enabled. Alternatively, you can use any other UC-secure DKG protocol.
when `cggmp21-keygen` feature is enabled, which is a fairly reasonalbe choice as it's proven to be UC-secure.
Alternatively, you can use any other UC-secure DKG protocol.
* FROST Signing \
We provide API for both manual signing execution (for better flexibility and efficiency) and interactive protocol
(for easier usability and fool-proof design), see signing module for details.
Expand Down
15 changes: 9 additions & 6 deletions givre/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
cggmp21-keygen = { git = "https://github.com/dfns/cggmp21", branch = "spof", optional = true }
key-share = { git = "https://github.com/dfns/cggmp21", branch = "spof" }
cggmp21-keygen = { version = "0.1", optional = true }
key-share = "0.2"

generic-ec = { version = "0.1", default-features = false }
generic-ec = { version = "0.2", default-features = false }

rand_core = { version = "0.6", default-features = false }
digest = { version = "0.10", default-features = false }
Expand All @@ -23,6 +23,8 @@ sha2 = { version = "0.10", default-features = false, optional = true }

serde = { version = "1", default-features = false, features = ["derive"], optional = true }

once_cell = { version = "1", optional = true }

survived marked this conversation as resolved.
Show resolved Hide resolved
[dev-dependencies]
rand_core = { version = "0.6", default-features = false, features = ["getrandom"] }

Expand All @@ -41,6 +43,7 @@ spof = ["key-share/spof"]
# Library doesn't have support of HD signing yet.
hd-wallets = ["key-share/hd-wallets", "cggmp21-keygen?/hd-wallets"]

all-curves = ["curve-secp256k1", "curve-ed25519"]
curve-secp256k1 = ["generic-ec/curve-secp256k1", "k256", "sha2", "static_assertions"]
curve-ed25519 = ["generic-ec/curve-ed25519", "sha2"]
all-ciphersuites = ["ciphersuite-secp256k1", "ciphersuite-ed25519", "ciphersuite-bitcoin"]
ciphersuite-secp256k1 = ["generic-ec/curve-secp256k1", "k256", "sha2", "static_assertions"]
ciphersuite-ed25519 = ["generic-ec/curve-ed25519", "sha2"]
ciphersuite-bitcoin = ["ciphersuite-secp256k1", "dep:once_cell"]
Loading
Loading