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 pczt inspect command #63

Merged
merged 4 commits into from
Dec 14, 2024
Merged

Add pczt inspect command #63

merged 4 commits into from
Dec 14, 2024

Conversation

str4d
Copy link
Collaborator

@str4d str4d commented Dec 14, 2024

No description provided.

Copy link
Collaborator

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

LGTM except that we need a better way of identifying dummy outputs; we should consider whether this needs to go into the PCZT format as an explicit flag byte or something.

for (index, value) in sapling_outputs.iter().enumerate() {
if let Some(value) = value {
if value.inner() == 0 {
println!(" - Dummy Output");
Copy link
Collaborator

Choose a reason for hiding this comment

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

We shouldn't be using zero values on the output side to identify things as "dummies"; zero-valued outputs are valid and they may have a memo attached. We should also make sure that this isn't being done in the firmware.

}
if let Some(value) = output_value {
if value.inner() == 0 {
println!(" - Dummy Output");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ditto; we should probably have a way to specifically mark the dummies in the PCZT.

Copy link
Collaborator

@nuttycom nuttycom left a comment

Choose a reason for hiding this comment

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

utACK 4d92301

@nuttycom nuttycom merged commit 410de82 into main Dec 14, 2024
17 checks passed
@nuttycom nuttycom deleted the pczt-inspect branch December 14, 2024 14:53
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