| 1 | package Bitcoin::Crypto::Transaction::Signer::CustomLegacy; | ||
| 2 | 5 | $Bitcoin::Crypto::Transaction::Signer::CustomLegacy::VERSION = '4.005'; | |
| 3 | 5 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 5 | ▶ | use Mooish::Base -standard; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 5 | ▶ | use Bitcoin::Crypto qw(btc_script); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 5 | ▶ | use Bitcoin::Crypto::Exception; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 5 | ▶ | use Bitcoin::Crypto::Constants; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | 5 | ▶ | use Bitcoin::Crypto::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 5 | extends 'Bitcoin::Crypto::Transaction::Signer::Legacy'; | |
| 14 | |||
| 15 | 5 | has extended 'script' => ( | |
| 16 | lazy => 1, | ||
| 17 | init_arg => undef, | ||
| 18 | ); | ||
| 19 | |||
| 20 | sub _build_script | ||
| 21 | 9 | ▶ | { |
|
Subroutine
_build_script: called CC=1 SCAR=0.0
| |||
| 22 | 9 | my ($self) = @_; | |
| 23 | |||
| 24 | 9 | return $self->transaction->inputs->[$self->signing_index]->utxo->output->locking_script; | |
| 25 | } | ||
| 26 | |||
| 27 | 5 | 1; | |
| 28 | |||