public final class UnencryptedDeliveryAttachment extends DeliveryAttachment implements Appendix.Encryptable
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment
Appendix.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, goodsIsText
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateId
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, verifyVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFee, getFullSize, getJSONObject, getSize, getVersion, hasAppendix, isPhased, putBytes
public UnencryptedDeliveryAttachment(long purchaseId, byte[] goodsToEncrypt, boolean goodsIsText, long discountNQT, byte[] recipientPublicKey)
protected int getMySize()
getMySize
in class DeliveryAttachment
protected void putMyBytes(java.nio.ByteBuffer buffer)
putMyBytes
in class DeliveryAttachment
protected void putMyJSON(org.json.simple.JSONObject attachment)
putMyJSON
in class DeliveryAttachment
public void encrypt(byte[] privateKey)
encrypt
in interface Appendix.Encryptable