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

Save bitvm setup #438

Draft
wants to merge 11 commits into
base: dev
Choose a base branch
from
Draft

Save bitvm setup #438

wants to merge 11 commits into from

Conversation

ekrembal
Copy link
Member

Closes #390

@ekrembal ekrembal requested review from ceyhunsen, mmtftr, atacann and ozankaymak and removed request for ceyhunsen and mmtftr January 20, 2025 17:23
txouts.push(TxOut {
value: Amount::from_sat(660), // TOOD: Hand calculate this
script_pubkey: intermediate_addr.script_pubkey(), // TODO: Add winternitz checks here
value: Amount::from_sat(330), // Minimum amount for a taproot output
Copy link

Choose a reason for hiding this comment

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

value should be in constants: ASSERT_TX_OUT_AMOUNT

})
.collect::<Vec<_>>();

// // This part is not working.
Copy link

Choose a reason for hiding this comment

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

remove todo

Copy link
Member Author

Choose a reason for hiding this comment

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

We should still use a correct verification key, rn we

kickoff_idx: i32,
assert_tx_addrs: Vec<Vec<u8>>,
root_hash: &[u8; 32],
public_input_wots: Vec<[u8; 20]>,
Copy link

Choose a reason for hiding this comment

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

consider impl AsRef<[u8; 20]>

also impl AsRef<[impl AsRef<[u8]>]> (not sure if this works)

@@ -35,9 +35,9 @@ pub struct WinternitzDerivationPath {
pub watchtower_idx: Option<u32>,
pub time_tx_idx: Option<u32>,
pub kickoff_idx: Option<u32>,
pub intermediate_step_idx: Option<u32>,
pub intermediate_step_name: Option<&'a str>,
Copy link

Choose a reason for hiding this comment

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

Does this have to be a &str? Can it be an enum?

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