Package io.crums.model.json
Class ProofParser
java.lang.Object
io.crums.model.json.ProofParser
public class ProofParser
extends java.lang.Object
JSON Merkle proof parser.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CHAIN
static java.lang.String
COUNT
static java.lang.String
INDEX
static ProofParser
INSTANCE
Instances of this class are immutable and stateless. -
Constructor Summary
Constructors Constructor Description ProofParser()
-
Method Summary
Modifier and Type Method Description org.json.simple.JSONObject
toJsonObject(io.crums.util.mrkl.Proof proof)
io.crums.util.mrkl.Proof
toProof(java.lang.String json)
io.crums.util.mrkl.Proof
toProof(org.json.simple.JSONObject jsonObj)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
INSTANCE
Instances of this class are immutable and stateless. -
INDEX
public static final java.lang.String INDEX- See Also:
- Constant Field Values
-
COUNT
public static final java.lang.String COUNT- See Also:
- Constant Field Values
-
CHAIN
public static final java.lang.String CHAIN- See Also:
- Constant Field Values
-
-
Constructor Details
-
ProofParser
public ProofParser()
-
-
Method Details
-
toJsonObject
public org.json.simple.JSONObject toJsonObject(io.crums.util.mrkl.Proof proof) -
toProof
public io.crums.util.mrkl.Proof toProof(java.lang.String json) -
toProof
public io.crums.util.mrkl.Proof toProof(org.json.simple.JSONObject jsonObj)
-