Class ProofResponse
java.lang.Object
com.algorand.algosdk.v2.client.common.PathResponse
com.algorand.algosdk.v2.client.model.ProofResponse
public class ProofResponse extends PathResponse
Proof of transaction in a block.
-
Field Summary
Fields Modifier and Type Field Description Enums.Hashtype
hashtype
The type of hash function used to create the proof, must be one of: sha512_256 sha256java.lang.Long
idx
Index of the transaction in the block's payset.byte[]
proof
byte[]
stibhash
java.lang.Long
treedepth
Represents the depth of the tree that is being proven, i.e. -
Constructor Summary
Constructors Constructor Description ProofResponse()
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
proof()
void
proof(java.lang.String base64Encoded)
Merkle proof of transaction membership.java.lang.String
stibhash()
void
stibhash(java.lang.String base64Encoded)
Hash of SignedTxnInBlock for verifying proof.Methods inherited from class com.algorand.algosdk.v2.client.common.PathResponse
toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
hashtype
The type of hash function used to create the proof, must be one of: sha512_256 sha256 -
idx
public java.lang.Long idxIndex of the transaction in the block's payset. -
proof
public byte[] proof -
stibhash
public byte[] stibhash -
treedepth
public java.lang.Long treedepthRepresents the depth of the tree that is being proven, i.e. the number of edges from a leaf to the root.
-
-
Constructor Details
-
ProofResponse
public ProofResponse()
-
-
Method Details
-
proof
public void proof(java.lang.String base64Encoded)Merkle proof of transaction membership. -
proof
public java.lang.String proof() -
stibhash
public void stibhash(java.lang.String base64Encoded)Hash of SignedTxnInBlock for verifying proof. -
stibhash
public java.lang.String stibhash() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-