Package nxt
Class Appendix.PrunableEncryptedMessage
- java.lang.Object
-
- nxt.Appendix.AbstractAppendix
-
- nxt.Appendix.PrunableEncryptedMessage
-
- All Implemented Interfaces:
Appendix
,Appendix.Prunable
- Direct Known Subclasses:
Appendix.UnencryptedPrunableEncryptedMessage
- Enclosing interface:
- Appendix
public static class Appendix.PrunableEncryptedMessage extends Appendix.AbstractAppendix implements Appendix.Prunable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface nxt.Appendix
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 Summary
Constructors Constructor Description PrunableEncryptedMessage(EncryptedData encryptedData, boolean isText, boolean isCompressed)
PrunableEncryptedMessage(org.json.simple.JSONObject attachmentJSON)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fee
getBaselineFee(Transaction transaction)
EncryptedData
getEncryptedData()
byte[]
getHash()
boolean
hasPrunableData()
boolean
isCompressed()
boolean
isText()
void
restorePrunableData(Transaction transaction, int blockTimestamp, int height)
-
Methods inherited from class nxt.Appendix.AbstractAppendix
getBaselineFeeHeight, getFullSize, getJSONObject, getNextFee, getNextFeeHeight, getSize, getVersion, isPhased, putBytes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nxt.Appendix.Prunable
shouldLoadPrunable
-
-
-
-
Constructor Detail
-
PrunableEncryptedMessage
public PrunableEncryptedMessage(org.json.simple.JSONObject attachmentJSON)
-
PrunableEncryptedMessage
public PrunableEncryptedMessage(EncryptedData encryptedData, boolean isText, boolean isCompressed)
-
-
Method Detail
-
getBaselineFee
public final Fee getBaselineFee(Transaction transaction)
- Specified by:
getBaselineFee
in interfaceAppendix
- Overrides:
getBaselineFee
in classAppendix.AbstractAppendix
-
getEncryptedData
public final EncryptedData getEncryptedData()
-
isText
public final boolean isText()
-
isCompressed
public final boolean isCompressed()
-
getHash
public final byte[] getHash()
- Specified by:
getHash
in interfaceAppendix.Prunable
-
hasPrunableData
public final boolean hasPrunableData()
- Specified by:
hasPrunableData
in interfaceAppendix.Prunable
-
restorePrunableData
public void restorePrunableData(Transaction transaction, int blockTimestamp, int height)
- Specified by:
restorePrunableData
in interfaceAppendix.Prunable
-
-