• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

codenotary / immudb4j / #149

26 Jul 2026 09:37AM UTC coverage: 82.814% (+0.5%) from 82.32%
#149

push

github

web-flow
update ImmuClientverifiedGet  to return  `VerifiableEntry` instead of`Entry` (#79)

* Update ImmuClient.verifiedGet to return instance of VerifiableEntry as per schema.proto rpc VerifiableGet

(cherry picked from commit be6c674c5)

* Add override methods documentation, add new constructor for Entry which supports all current properties and make Entry immutable

65 of 68 new or added lines in 5 files covered. (95.59%)

104 existing lines in 1 file now uncovered.

1595 of 1926 relevant lines covered (82.81%)

0.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

86.67
/src/main/java/io/codenotary/immudb4j/VerifiableTx.java
1
/*
2
Copyright 2022 CodeNotary, Inc. All rights reserved.
3

4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7

8
        http://www.apache.org/licenses/LICENSE-2.0
9

10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
package io.codenotary.immudb4j;
17

18
import io.codenotary.immudb.ImmudbProto;
19
import io.codenotary.immudb4j.crypto.DualProof;
20
import io.codenotary.immudb4j.exceptions.VerificationException;
21

22
import java.security.NoSuchAlgorithmException;
23

24
public class VerifiableTx {
25
    private final Tx tx;
26
    private final DualProof dualProof;
27
    private final Signature signature;
28

29
    private VerifiableTx(Tx tx, DualProof dualProof, Signature signature) {
1✔
30
        this.tx = tx;
1✔
31
        this.dualProof = dualProof;
1✔
32
        this.signature = signature;
1✔
33
    }
1✔
34

35
    public static VerifiableTx valueOf(ImmudbProto.VerifiableTx verifiableTx) throws VerificationException {
36
        Tx innerTx;
37
        try {
38
            innerTx = Tx.valueOf(verifiableTx.getTx());
1✔
NEW
39
        } catch (NoSuchAlgorithmException e) {
×
NEW
40
            throw new VerificationException("Failed to build VerifiableTx",e);
×
41
        }
1✔
42
        return new VerifiableTx(
1✔
43
                innerTx,
44
                DualProof.valueOf(verifiableTx.getDualProof()),
1✔
45
                Signature.valueOf(verifiableTx.getSignature())
1✔
46
        );
47
    }
48

49
    public Tx getTx() {
50
        return tx;
1✔
51
    }
52

53
    public DualProof getDualProof() {
54
        return dualProof;
1✔
55
    }
56

57
    public Signature getSignature() {
58
        return signature;
1✔
59
    }
60
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc