-
Notifications
You must be signed in to change notification settings - Fork 245
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
Feature: Optimized uncle jim pdf for the Debasafebags. #1706
Conversation
f9ert
commented
May 6, 2022
•
edited
Loading
edited
✅ Deploy Preview for specter-desktop-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
The displayed character length of 42 in the pdf for the addresses is fine: P2WPKH addresses are always 42 characters long (for more details see here: https://bitcoin.stackexchange.com/questions/100508/can-you-break-down-what-data-is-encoded-into-a-bech32-address). With regtest addresses we are adding two characters ("rt"), thus two characters are missing then, just keep this in mind. Perhaps it makes sense to add this non-trivial background info to the tool-tip belonging to the pdf, @k9ert? |
src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja
Outdated
Show resolved
Hide resolved
src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja
Outdated
Show resolved
Hide resolved
Great finding! Maybe it also make sense to print it directly on the pdf but just if the network is regtest. Do we also have char-loss for testnet? |
I think I would only enable the Uncle Jim PDF feature if the node is set to mainnet, it only poses risks to send to testnet addresses (if the wallet used is not validating correctly ..., see: https://bitcoin.stackexchange.com/questions/18028/what-happens-if-you-send-btc-to-a-testnet-address) |
Makes development and testing out stuff a lot more complicated. Don't like the idea so much. I'll try to print it at the bottom of the page... |
doc.setLineDash([2, 2], 0); | ||
doc.line(181,0,181,214) | ||
doc.line(0,214,181,214) |
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.
You're drawing those lines for every key in the wallet. Please move it out of the loop!
adding regtest hint
…df.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
…df.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
…#1706) * Optimized for The Debasafetueten. * adding regtest hint * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * lines moved out of the loop Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
…#1706) * Optimized for The Debasafetueten. * adding regtest hint * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * lines moved out of the loop Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
…#1706) * Optimized for The Debasafetueten. * adding regtest hint * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * lines moved out of the loop Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
…#1706) * Optimized for The Debasafetueten. * adding regtest hint * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * lines moved out of the loop Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>
…#1706) * Optimized for The Debasafetueten. * adding regtest hint * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * Update src/cryptoadvance/specter/templates/wallet/components/wallet_pdf.jinja Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com> * lines moved out of the loop Co-authored-by: Kim Neunert <k9ert@gmx.de> Co-authored-by: Manolis <70536101+moneymanolis@users.noreply.github.com>