@@ -137,14 +137,15 @@ public TransactionBuilderResult Build() {
137137 }
138138
139139 // Create Sapling spendAuth and binding signatures
140- for (int i = 0 ; i < spends .size (); i ++) {
140+ for (int i = 0 ; i < spends .size (); i ++) {
141141 byte [] result = new byte [64 ];
142142 Librustzcash .librustzcashSaplingSpendSig (
143143 spends .get (i ).expsk .getAsk (),
144144 spends .get (i ).alpha ,
145145 dataToBeSigned ,
146146 result );
147- contractBuilder .getSpendDescriptionBuilder (i ).setSpendAuthoritySignature (ByteString .copyFrom (result ));
147+ contractBuilder .getSpendDescriptionBuilder (i )
148+ .setSpendAuthoritySignature (ByteString .copyFrom (result ));
148149 }
149150
150151 byte [] bindingSig = new byte [64 ];
@@ -222,7 +223,7 @@ public ReceiveDescriptionCapsule generateOutputProof(ReceiveDescriptionInfo outp
222223 SaplingNoteEncryption encryptor = enc .noteEncryption ;
223224
224225 byte [] cv = new byte [32 ];
225- byte [] zkproof = new byte [32 ];
226+ byte [] zkProof = new byte [32 ];
226227 if (!Librustzcash .librustzcashSaplingOutputProof (
227228 ctx ,
228229 encryptor .esk ,
@@ -231,7 +232,7 @@ public ReceiveDescriptionCapsule generateOutputProof(ReceiveDescriptionInfo outp
231232 output .getNote ().r ,
232233 output .getNote ().value ,
233234 cv ,
234- zkproof )) {
235+ zkProof )) {
235236 Librustzcash .librustzcashSaplingProvingCtxFree (ctx );
236237 throw new RuntimeException ("Output proof failed" );
237238 }
@@ -241,7 +242,7 @@ public ReceiveDescriptionCapsule generateOutputProof(ReceiveDescriptionInfo outp
241242 receiveDescriptionCapsule .setNoteCommitment (cm );
242243 receiveDescriptionCapsule .setEpk (encryptor .epk );
243244 receiveDescriptionCapsule .setCEnc (enc .encCiphertext );
244- receiveDescriptionCapsule .setZkproof (zkproof );
245+ receiveDescriptionCapsule .setZkproof (zkProof );
245246
246247 SaplingOutgoingPlaintext outPlaintext =
247248 new SaplingOutgoingPlaintext (output .getNote ().pkD , encryptor .esk );
@@ -288,6 +289,7 @@ public class ReceiveDescriptionInfo {
288289
289290 @ AllArgsConstructor
290291 public static class TransactionBuilderResult {
292+
291293 @ Getter
292294 private ShieldedTransferContract shieldedTransferContract ;
293295 }
0 commit comments