| 1 | package Bitcoin::Crypto; | ||
| 2 | 65 | $Bitcoin::Crypto::VERSION = '4.005'; | |
| 3 | 65 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 65 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 65 | ▶ | use Exporter qw(import); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 65 | our @EXPORT_OK = qw( | |
| 8 | btc_extprv | ||
| 9 | btc_prv | ||
| 10 | btc_extpub | ||
| 11 | btc_pub | ||
| 12 | btc_script | ||
| 13 | btc_tapscript | ||
| 14 | btc_script_tree | ||
| 15 | btc_transaction | ||
| 16 | btc_block | ||
| 17 | btc_utxo | ||
| 18 | btc_psbt | ||
| 19 | ); | ||
| 20 | |||
| 21 | 65 | our %EXPORT_TAGS = (all => [@EXPORT_OK]); | |
| 22 | |||
| 23 | sub btc_extprv | ||
| 24 | 79 | ▶ | { |
|
Subroutine
btc_extprv: called CC=1 SCAR=0.0
Pod
documented
| |||
| 25 | 79 | require Bitcoin::Crypto::Key::ExtPrivate; | |
| 26 | 79 | return 'Bitcoin::Crypto::Key::ExtPrivate'; | |
| 27 | } | ||
| 28 | |||
| 29 | sub btc_prv | ||
| 30 | 69 | ▶ | { |
|
Subroutine
btc_prv: called CC=1 SCAR=0.0
Pod
documented
| |||
| 31 | 69 | require Bitcoin::Crypto::Key::Private; | |
| 32 | 69 | return 'Bitcoin::Crypto::Key::Private'; | |
| 33 | } | ||
| 34 | |||
| 35 | sub btc_extpub | ||
| 36 | 27 | ▶ | { |
|
Subroutine
btc_extpub: called CC=1 SCAR=0.0
Pod
documented
| |||
| 37 | 27 | require Bitcoin::Crypto::Key::ExtPublic; | |
| 38 | 27 | return 'Bitcoin::Crypto::Key::ExtPublic'; | |
| 39 | } | ||
| 40 | |||
| 41 | sub btc_pub | ||
| 42 | 469 | ▶ | { |
|
Subroutine
btc_pub: called CC=1 SCAR=0.0
Pod
documented
| |||
| 43 | 469 | require Bitcoin::Crypto::Key::Public; | |
| 44 | 469 | return 'Bitcoin::Crypto::Key::Public'; | |
| 45 | } | ||
| 46 | |||
| 47 | sub btc_script | ||
| 48 | 654 | ▶ | { |
|
Subroutine
btc_script: called CC=1 SCAR=0.0
Pod
documented
| |||
| 49 | 654 | require Bitcoin::Crypto::Script; | |
| 50 | 654 | return 'Bitcoin::Crypto::Script'; | |
| 51 | } | ||
| 52 | |||
| 53 | sub btc_tapscript | ||
| 54 | 174 | ▶ | { |
|
Subroutine
btc_tapscript: called CC=1 SCAR=0.0
Pod
documented
| |||
| 55 | 174 | require Bitcoin::Crypto::Tapscript; | |
| 56 | 174 | return 'Bitcoin::Crypto::Tapscript'; | |
| 57 | } | ||
| 58 | |||
| 59 | sub btc_script_tree | ||
| 60 | 33 | ▶ | { |
|
Subroutine
btc_script_tree: called CC=1 SCAR=0.0
Pod
documented
| |||
| 61 | 33 | require Bitcoin::Crypto::Script::Tree; | |
| 62 | 33 | return 'Bitcoin::Crypto::Script::Tree'; | |
| 63 | } | ||
| 64 | |||
| 65 | sub btc_transaction | ||
| 66 | 573 | ▶ | { |
|
Subroutine
btc_transaction: called CC=1 SCAR=0.0
Pod
documented
| |||
| 67 | 573 | require Bitcoin::Crypto::Transaction; | |
| 68 | 573 | return 'Bitcoin::Crypto::Transaction'; | |
| 69 | } | ||
| 70 | |||
| 71 | sub btc_utxo | ||
| 72 | 257 | ▶ | { |
|
Subroutine
btc_utxo: called CC=1 SCAR=0.0
Pod
documented
| |||
| 73 | 257 | require Bitcoin::Crypto::Transaction::UTXO; | |
| 74 | 257 | return 'Bitcoin::Crypto::Transaction::UTXO'; | |
| 75 | } | ||
| 76 | |||
| 77 | sub btc_block | ||
| 78 | 70 | ▶ | { |
|
Subroutine
btc_block: called CC=1 SCAR=0.0
Pod
documented
| |||
| 79 | 70 | require Bitcoin::Crypto::Block; | |
| 80 | 70 | return 'Bitcoin::Crypto::Block'; | |
| 81 | } | ||
| 82 | |||
| 83 | sub btc_psbt | ||
| 84 | 118 | ▶ | { |
|
Subroutine
btc_psbt: called CC=1 SCAR=0.0
Pod
documented
| |||
| 85 | 118 | require Bitcoin::Crypto::PSBT; | |
| 86 | 118 | return 'Bitcoin::Crypto::PSBT'; | |
| 87 | } | ||
| 88 | |||
| 89 | __END__ | ||