| 1 | package Bitcoin::Crypto::Transaction::Signer::Segwit; | ||
| 2 | 12 | $Bitcoin::Crypto::Transaction::Signer::Segwit::VERSION = '4.005'; | |
| 3 | 12 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 12 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 12 | ▶ | use Mooish::Base -standard; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 12 | ▶ | use Bitcoin::Crypto::Exception; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 12 | ▶ | use Bitcoin::Crypto::Constants; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 12 | ▶ | use Bitcoin::Crypto::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 12 | extends 'Bitcoin::Crypto::Transaction::Signer::Legacy'; | |
| 13 | |||
| 14 | sub _finalize | ||
| 15 | 32 | ▶ | { |
|
Subroutine
_finalize: called CC=1 SCAR=0.0
| |||
| 16 | 32 | my ($self) = @_; | |
| 17 | |||
| 18 | $self->transaction->inputs->[$self->signing_index]->set_witness( | ||
| 19 | 32 | [reverse @{$self->_signature}] | |
| 20 | ); | ||
| 21 | } | ||
| 22 | |||
| 23 | 12 | 1; | |
| 24 | |||