@@ -723,7 +723,7 @@ by entering the mnemonics right on the device.
723
723
724
724
#+LATEX: }
725
725
726
- *** =slip39.output_pdf =
726
+ *** =slip39.produce_pdf =
727
727
728
728
#+LATEX: {\scriptsize
729
729
| Key | Description |
@@ -736,40 +736,57 @@ by entering the mnemonics right on the device.
736
736
| paper_format | 'Letter', ... |
737
737
#+LATEX: }
738
738
739
- Produce a PDF containing all the SLIP-39 details for the account.
739
+ Layout and produce a PDF containing all the SLIP-39 details on cards for the crypto accounts, on
740
+ the paper_format provided. Returns the paper (orientation,format) used, the FPDF, and passes
741
+ through the supplied cryptocurrency accounts derived.
740
742
741
743
#+LATEX: {\scriptsize
742
744
#+BEGIN_SRC ipython :session :exports both :results raw drawer
743
- pdf,accounts = slip39.output_pdf( *create_details )
745
+ (paper_format,orientation),pdf,accounts = slip39.produce_pdf( *create_details )
746
+ pdf_binary = pdf.output()
747
+ [
748
+ [ "Orientation:", orientation ],
749
+ [ "Paper:", paper_format ],
750
+ [ "PDF Pages:", pdf.pages_count ],
751
+ [ "PDF Size:", len( pdf_binary )],
752
+ ]
744
753
#+END_SRC
745
754
746
755
#+RESULTS:
747
756
:results:
748
- # Out[5]:
757
+ # Out[20]:
758
+ | 0 | 1 |
759
+ |--------------+-----------|
760
+ | Orientation: | landscape |
761
+ | Paper: | Letter |
762
+ | PDF Pages: | 1 |
763
+ | PDF Size: | 12985 |
749
764
:end:
750
765
751
766
#+LATEX: }
752
767
753
768
*** =slip39.write_pdfs=
754
769
755
770
#+LATEX: {\scriptsize
756
- | Key | Description |
757
- |-----------------+-----------------------------------------------------------------------------------------------------|
758
- | names | A sequence of Seed names, or a dict of { name: <details> } (from slip39.create) |
759
- | master_secret | A Seed secret (only appropriate if exactly one name supplied) |
760
- | passphrase | A SLIP-39 passphrase (not Trezor compatible; use "hidden wallet" phrase on device instead) |
761
- | group | A dict of {"<group>":(<required>, <members>), ...} |
762
- | group_threshold | How many groups are required to recover the Seed |
763
- | cryptocurrency | A sequence of [ "<crypto>", "<crypto>:<derivation>", ... ] w/ optional ranges |
764
- | edit | Derivation range(s) for each cryptocurrency, eg. "../0-4/-9" is 9 accounts first 5 change addresses |
765
- | card_format | Card size (eg. "credit"); False specifies no SLIP-39 cards (ie. only BIP-39 or JSON paper wallets) |
766
- | paper_format | Paper size (eg. "letter") |
767
- | filename | A filename; may contain "...{name}..." formatting, for name, date, time, crypto path and address |
768
- | json_pwd | If passphrase supplied, Ethereum JSON wallet files will be saved, and produced into PDF |
769
- | text | If True, outputs SLIP-39 phrases to stdout |
770
- | wallet_pwd | If passphrase supplied, produces encrypted BIP-38 or JSON paper wallets to PDF |
771
- | wallet_pwd_hint | An optional passphrase hint, printed on paper wallet |
772
- | wallet_format | Paper wallet size, (eg. "third"); the default is 1/3 letter size |
771
+ | Key | Description |
772
+ |-----------------+-------------------------------------------------------------------------------------------------------|
773
+ | names | A sequence of Seed names, or a dict of { name: <details> } (from slip39.create) |
774
+ | master_secret | A Seed secret (only appropriate if exactly one name supplied) |
775
+ | passphrase | A SLIP-39 passphrase (not Trezor compatible; use "hidden wallet" phrase on device instead) |
776
+ | group | A dict of {"<group>":(<required>, <members>), ...} |
777
+ | group_threshold | How many groups are required to recover the Seed |
778
+ | cryptocurrency | A sequence of [ "<crypto>", "<crypto>:<derivation>", ... ] w/ optional ranges |
779
+ | edit | Derivation range(s) for each cryptocurrency, eg. "../0-4/-9" is 9 accounts first 5 change addresses |
780
+ | card_format | Card size (eg. "credit"); False specifies no SLIP-39 cards (ie. only BIP-39 or JSON paper wallets) |
781
+ | paper_format | Paper size (eg. "letter") |
782
+ | filename | A filename; may contain "...{name}..." formatting, for name, date, time, crypto path and address |
783
+ | filepath | A file path, if PDF output to file is desired; empty implies current dir. |
784
+ | printer | A printer name (or True for default), if output to printer is desired |
785
+ | json_pwd | If password supplied, encrypted Ethereum JSON wallet files will be saved, and produced into PDF |
786
+ | text | If True, outputs SLIP-39 phrases to stdout |
787
+ | wallet_pwd | If password supplied, produces encrypted BIP-38 or JSON Paper Wallets to PDF (preferred vs. json_pwd) |
788
+ | wallet_pwd_hint | An optional passphrase hint, printed on paper wallet |
789
+ | wallet_format | Paper wallet size, (eg. "third"); the default is 1/3 letter size |
773
790
#+LATEX: }
774
791
775
792
For each of the names provided, produces a separate PDF containing all the SLIP-39 details and
0 commit comments