Skip to content

Frost signing scaffolding#83

Merged
arminsabouri merged 23 commits into
feature/frostfrom
arm/dkg-scaffolding
Feb 2, 2024
Merged

Frost signing scaffolding#83
arminsabouri merged 23 commits into
feature/frostfrom
arm/dkg-scaffolding

Conversation

@arminsabouri
Copy link
Copy Markdown
Contributor

The idea with this struct is to have a stateful data structure that is aware of the DKG key status and aware of the current signing session.
What I want to accomplish next is to have only the secrets persist somewhere and for the DKG struct to be initialized from secrets in the DB. There might be somewhere better to save the secrets. Still an open question

Another open question is how to generate the frost identifier.

@arminsabouri arminsabouri marked this pull request as ready for review February 1, 2024 19:23
Comment thread bin/btc-server/Cargo.toml
anyhow = "1.0.71"
bitcoin = { version = "0.30.2", features = [ "base64", "rand", "serde" ] }
# TODO update this to the zcash frost library when tr is merged in
frost-secp256k1-tr = { git = "https://github.com/mimoo/frost", branch = "mimoo/fix5", features = ["serde", "serialization"] }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In your example previously, I see you are targeting the main branch, here you are using a given branch, is there a particular reason for that ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Taproot signings is not merged in to the main branch yet.
ZcashFoundation/frost#584

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all right, ok, did not know that. all good

Comment thread bin/btc-server/client-example/src/main.rs
Comment thread bin/btc-server/src/main.rs
Some(TxOut { script_pubkey: self.change_script.clone(), value: amount })
}
bdk::wallet::coin_selection::Excess::Change { amount, .. } => Some(TxOut {
script_pubkey: self.change_script.as_ref().expect("change script").clone(),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we dont want to panic. Good call. Will fix

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Added a is_none check and return a new error variant

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

Comment thread bin/btc-server/proto/btc_server.proto
@arminsabouri arminsabouri merged commit 9dd5f16 into feature/frost Feb 2, 2024
@arminsabouri arminsabouri deleted the arm/dkg-scaffolding branch February 2, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants