public final class UnencryptedDeliveryAttachment extends DeliveryAttachment implements Appendix.Encryptable
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachmentAppendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.Prunable| Constructor and Description |
|---|
UnencryptedDeliveryAttachment(long purchaseId,
byte[] goodsToEncrypt,
boolean goodsIsText,
long discountNQT,
byte[] recipientPublicKey) |
| Modifier and Type | Method and Description |
|---|---|
void |
encrypt(byte[] privateKey) |
protected int |
getMySize() |
protected void |
putMyBytes(java.nio.ByteBuffer buffer) |
protected void |
putMyJSON(org.json.simple.JSONObject attachment) |
getDiscountNQT, getGoods, getPurchaseId, getTransactionType, goodsIsTextapply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdgetFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, verifyVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytespublic UnencryptedDeliveryAttachment(long purchaseId,
byte[] goodsToEncrypt,
boolean goodsIsText,
long discountNQT,
byte[] recipientPublicKey)
protected int getMySize()
getMySize in class DeliveryAttachmentprotected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes in class DeliveryAttachmentprotected void putMyJSON(org.json.simple.JSONObject attachment)
putMyJSON in class DeliveryAttachmentpublic void encrypt(byte[] privateKey)
encrypt in interface Appendix.Encryptable