Crypto/Transaction/Signer/Segwit.pm

filter: Statementstmt 100% 23 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod n/a totaltotal 100% 30 / 30 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Crypto/Transaction/Signer/Role/ScriptHash.pm ↑ Summary
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  
« Crypto/Transaction/Signer/Role/ScriptHash.pm ↑ Summary