@@ -61,13 +61,13 @@ private byte[] createPublicationData(VeriBlockBlock publishedBlock, Address addr
61
61
return payoutInfo ;
62
62
}
63
63
64
- BitcoinTransaction createBitcoinTx (VeriBlockBlock publishedBlock , Address address ) {
64
+ private BitcoinTransaction createBitcoinTx (VeriBlockBlock publishedBlock , Address address ) {
65
65
byte [] publicationData = createPublicationData (publishedBlock , address );
66
66
return new BitcoinTransaction (publicationData );
67
67
}
68
68
69
69
// retrieve the blocks between lastKnownBlock and getChainHead()
70
- List <BitcoinBlock > createBitcoinContext (BitcoinBlock lastKnownBlock ) throws SQLException {
70
+ private List <BitcoinBlock > createBitcoinContext (BitcoinBlock lastKnownBlock ) throws SQLException {
71
71
List <BitcoinBlock > context = new ArrayList <>();
72
72
73
73
BitcoinBlock prevBlock = bitcoinBlockchain .get (bitcoinBlockchain .getChainHead ().getPreviousBlock ());
@@ -81,7 +81,7 @@ List<BitcoinBlock> createBitcoinContext(BitcoinBlock lastKnownBlock) throws SQLE
81
81
}
82
82
83
83
// retrieve the blocks between lastKnownBlock and getChainHead()
84
- List <VeriBlockBlock > createVeriBlockContext (VeriBlockBlock lastKnownBlock ) throws SQLException {
84
+ private List <VeriBlockBlock > createVeriBlockContext (VeriBlockBlock lastKnownBlock ) throws SQLException {
85
85
List <VeriBlockBlock > context = new ArrayList <>();
86
86
87
87
VeriBlockBlock prevBlock = veriblockBlockchain .get (veriblockBlockchain .getChainHead ().getPreviousBlock ());
@@ -94,7 +94,7 @@ List<VeriBlockBlock> createVeriBlockContext(VeriBlockBlock lastKnownBlock) throw
94
94
return context ;
95
95
}
96
96
97
- Address deriveAddress (PublicKey key ) {
97
+ private Address deriveAddress (PublicKey key ) {
98
98
String data = "V" + Base58 .encode (Sha256Hash .of (key .getEncoded ()).getBytes ()).substring (0 , 24 );
99
99
100
100
Sha256Hash hash = Sha256Hash .of (data .getBytes (StandardCharsets .UTF_8 ));
@@ -104,7 +104,7 @@ Address deriveAddress(PublicKey key) {
104
104
105
105
}
106
106
107
- VeriBlockPoPTransaction signTransaction (VeriBlockPoPTransaction tx , PrivateKey privateKey ) throws SignatureException , InvalidKeyException , NoSuchAlgorithmException {
107
+ private VeriBlockPoPTransaction signTransaction (VeriBlockPoPTransaction tx , PrivateKey privateKey ) throws SignatureException , InvalidKeyException , NoSuchAlgorithmException {
108
108
byte [] signature = Utils .signMessageWithPrivateKey (SerializeDeserializeService .getId (tx ).getBytes (),
109
109
privateKey );
110
110
0 commit comments