-
Notifications
You must be signed in to change notification settings - Fork 15
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
base: dev
Are you sure you want to change the base?
Save bitvm setup #438
Conversation
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 |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove todo
There was a problem hiding this comment.
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]>, |
There was a problem hiding this comment.
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>, |
There was a problem hiding this comment.
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?
Closes #390