Crypto/Transaction/Signer/CustomLegacy.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 34 / 34 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Crypto/Transaction/Signer/CompatP2WSH.pm ↑ Summary Crypto/Transaction/Signer/P2PKH.pm »
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  
« Crypto/Transaction/Signer/CompatP2WSH.pm ↑ Summary Crypto/Transaction/Signer/P2PKH.pm »