line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Bitcoin::Crypto::Role::Compressed; |
2
|
|
|
|
|
|
|
$Bitcoin::Crypto::Role::Compressed::VERSION = '1.008_01'; # TRIAL |
3
|
|
|
|
|
|
|
$Bitcoin::Crypto::Role::Compressed::VERSION = '1.00801'; |
4
|
10
|
|
|
10
|
|
5806
|
use v5.10; |
|
10
|
|
|
|
|
44
|
|
5
|
10
|
|
|
10
|
|
64
|
use strict; |
|
10
|
|
|
|
|
31
|
|
|
10
|
|
|
|
|
244
|
|
6
|
10
|
|
|
10
|
|
61
|
use warnings; |
|
10
|
|
|
|
|
42
|
|
|
10
|
|
|
|
|
338
|
|
7
|
10
|
|
|
10
|
|
114
|
use Mooish::AttributeBuilder -standard; |
|
10
|
|
|
|
|
33
|
|
|
10
|
|
|
|
|
116
|
|
8
|
|
|
|
|
|
|
|
9
|
10
|
|
|
10
|
|
1364
|
use Bitcoin::Crypto::Types qw(Bool); |
|
10
|
|
|
|
|
28
|
|
|
10
|
|
|
|
|
114
|
|
10
|
10
|
|
|
10
|
|
25193
|
use Bitcoin::Crypto::Config; |
|
10
|
|
|
|
|
36
|
|
|
10
|
|
|
|
|
208
|
|
11
|
10
|
|
|
10
|
|
49
|
use Moo::Role; |
|
10
|
|
|
|
|
22
|
|
|
10
|
|
|
|
|
70
|
|
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
has param 'compressed' => ( |
14
|
|
|
|
|
|
|
coerce => Bool, |
15
|
|
|
|
|
|
|
default => Bitcoin::Crypto::Config::compress_public_point, |
16
|
|
|
|
|
|
|
writer => -hidden, |
17
|
|
|
|
|
|
|
); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub set_compressed |
20
|
|
|
|
|
|
|
{ |
21
|
17
|
|
|
17
|
0
|
1447
|
my ($self, $state) = @_; |
22
|
|
|
|
|
|
|
|
23
|
17
|
100
|
|
|
|
63
|
$state = 1 |
24
|
|
|
|
|
|
|
if @_ == 1; |
25
|
|
|
|
|
|
|
|
26
|
17
|
|
|
|
|
400
|
$self->_set_compressed($state); |
27
|
17
|
|
|
|
|
766
|
return $self; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
1; |
31
|
|
|
|
|
|
|
|