Crypto/Transaction/Signer/CompatP2WSH.pm

filter: Statementstmt 100% 24 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Crypto/Transaction/ControlBlock.pm ↑ Summary Crypto/Transaction/Signer/CustomLegacy.pm »
1 package Bitcoin::Crypto::Transaction::Signer::CompatP2WSH;
2 5 $Bitcoin::Crypto::Transaction::Signer::CompatP2WSH::VERSION = '4.006';
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::Exception;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 5 ▶use Bitcoin::Crypto::Constants;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use Bitcoin::Crypto::Types -types;
Subroutine BEGIN: called CC=1 SCAR=0.0
11  
12 5 extends 'Bitcoin::Crypto::Transaction::Signer::CompatSegwit';
13  
14 sub _initialize
15 7 ▶{
Subroutine _initialize: called CC=1 SCAR=0.0
16 7 my ($self) = @_;
17  
18 # do not use add_bytes (not part of this script)
19 7 push @{$self->signature}, $self->script->to_serialized;
20  
21 7 $self->set_witness_program($self->script->witness_program);
22 }
23  
24 5 1;
25  
« Crypto/Transaction/ControlBlock.pm ↑ Summary Crypto/Transaction/Signer/CustomLegacy.pm »