| 1 | package Bitcoin::Crypto::Transaction::Signer::Role::ScriptHash; | ||
| 2 | 7 | $Bitcoin::Crypto::Transaction::Signer::Role::ScriptHash::VERSION = '4.005'; | |
| 3 | 7 | ▶ | use v5.14; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 7 | ▶ | use Mooish::Base -standard, -role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 7 | requires qw( | |
| 9 | _initialize | ||
| 10 | script | ||
| 11 | _signature | ||
| 12 | ); | ||
| 13 | |||
| 14 | 10 | ▶ | after '_initialize' => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 15 | 10 | my ($self) = @_; | |
| 16 | |||
| 17 | # do not use add_bytes (not part of this script) | ||
| 18 | 10 | push @{$self->_signature}, $self->script->to_serialized; | |
| 19 | 7 | }; | |
| 20 | |||
| 21 | 7 | 1; | |
| 22 | |||