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

Export descriptor #1551

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

pythcoiner
Copy link
Collaborator

No description provided.

let date = chrono::Local::now().format("%Y-%m-%dT%H-%M-%S");
format!("liana-txs-{date}.csv")
}
ExportType::Psbt(_) => "psbt.psbt".into(),
Copy link
Member

Choose a reason for hiding this comment

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

what do you think about {txid}.psbt ? cc @nondiremanuel @jp1ac4 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the complete txid is quite long imho, maybe {txid[..10]}.psbt ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Possibly having the full txid would make it easier to search for the file, but otherwise I think the short version should be fine.

Copy link
Collaborator Author

@pythcoiner pythcoiner Jan 22, 2025

Choose a reason for hiding this comment

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

windows path are limited to 260 chars iirc, its not likely to hit this, but....

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would prioritize not hitting the limit, so if there is that risk maybe we should truncate the id to a safe number of chars.

Copy link
Collaborator Author

@pythcoiner pythcoiner Jan 23, 2025

Choose a reason for hiding this comment

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

for info, i looked a sparrow, it's default name is the label of the first output (output labels are mandatory in sparrow):
<label>.psbt

Copy link
Collaborator

Choose a reason for hiding this comment

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

label would be nice, but we would have to choose something for non labeled psbts. I was also thinking that txid (or truncated txid) could be seen just as a random string to non-technical users, so maybe it's not the best solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

4 participants