public static class Appendix.PrunableEncryptedMessage extends Appendix.AbstractAppendix implements Appendix.Prunable
Appendix.AbstractAppendix, Appendix.AbstractEncryptedMessage, Appendix.Encryptable, Appendix.EncryptedMessage, Appendix.EncryptToSelfMessage, Appendix.Message, Appendix.Phasing, Appendix.Prunable, Appendix.PrunableEncryptedMessage, Appendix.PrunablePlainMessage, Appendix.PublicKeyAnnouncement, Appendix.UnencryptedEncryptedMessage, Appendix.UnencryptedEncryptToSelfMessage, Appendix.UnencryptedPrunableEncryptedMessage
Constructor and Description |
---|
PrunableEncryptedMessage(EncryptedData encryptedData,
boolean isText,
boolean isCompressed) |
PrunableEncryptedMessage(org.json.simple.JSONObject attachmentJSON) |
Modifier and Type | Method and Description |
---|---|
Fee |
getBaselineFee(Transaction transaction) |
EncryptedData |
getEncryptedData() |
byte[] |
getHash() |
boolean |
hasPrunableData() |
boolean |
isCompressed() |
boolean |
isText() |
void |
restorePrunableData(Transaction transaction,
int blockTimestamp,
int height) |
getBaselineFeeHeight, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, putBytes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shouldLoadPrunable
hasAppendix
public PrunableEncryptedMessage(org.json.simple.JSONObject attachmentJSON)
public PrunableEncryptedMessage(EncryptedData encryptedData, boolean isText, boolean isCompressed)
public final Fee getBaselineFee(Transaction transaction)
getBaselineFee
in interface Appendix
getBaselineFee
in class Appendix.AbstractAppendix
public final EncryptedData getEncryptedData()
public final boolean isText()
public final boolean isCompressed()
public final byte[] getHash()
getHash
in interface Appendix.Prunable
public final boolean hasPrunableData()
hasPrunableData
in interface Appendix.Prunable
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
restorePrunableData
in interface Appendix.Prunable