| 1 | package Bitcoin::Crypto::Transaction::Signer::CompatP2WSH; | ||
| 2 | 3 | $Bitcoin::Crypto::Transaction::Signer::CompatP2WSH::VERSION = '4.005'; | |
| 3 | 3 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 3 | ▶ | use Mooish::Base -standard; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | ▶ | use Bitcoin::Crypto::Exception; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 3 | ▶ | use Bitcoin::Crypto::Constants; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | use Bitcoin::Crypto::Types -types; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 11 | |||
| 12 | 3 | extends 'Bitcoin::Crypto::Transaction::Signer::CompatSegwit'; | |
| 13 | |||
| 14 | sub _initialize | ||
| 15 | 4 | ▶ | { |
|
Subroutine
_initialize: called CC=1 SCAR=0.0
| |||
| 16 | 4 | my ($self) = @_; | |
| 17 | |||
| 18 | # do not use add_bytes (not part of this script) | ||
| 19 | 4 | push @{$self->_signature}, $self->script->to_serialized; | |
| 20 | |||
| 21 | 4 | $self->set_witness_program($self->script->witness_program); | |
| 22 | } | ||
| 23 | |||
| 24 | 3 | 1; | |
| 25 | |||