Package nxt.dgs
Class UnencryptedDeliveryAttachment
java.lang.Object
nxt.blockchain.Appendix.AbstractAppendix
nxt.blockchain.Attachment.AbstractAttachment
nxt.dgs.DeliveryAttachment
nxt.dgs.UnencryptedDeliveryAttachment
- All Implemented Interfaces:
Appendix,Appendix.Encryptable,Attachment
public final class UnencryptedDeliveryAttachment
extends DeliveryAttachment
implements Appendix.Encryptable
-
Nested Class Summary
Nested classes/interfaces inherited from interface nxt.blockchain.Appendix
Appendix.AbstractAppendix, Appendix.Encryptable, Appendix.Parser, Appendix.PrunableNested classes/interfaces inherited from interface nxt.blockchain.Attachment
Attachment.AbstractAttachment, Attachment.EmptyAttachment, Attachment.PropertyDeleteAttachment -
Constructor Summary
ConstructorsConstructorDescriptionUnencryptedDeliveryAttachment(long purchaseId, byte[] goodsToEncrypt, boolean goodsIsText, long discountNQT, byte[] recipientPublicKey) -
Method Summary
Modifier and TypeMethodDescriptionvoidencrypt(byte[] privateKey) protected intprotected voidputMyBytes(ByteBuffer buffer) protected voidputMyJSON(org.json.simple.JSONObject attachment) Methods inherited from class nxt.dgs.DeliveryAttachment
getDiscountNQT, getGoods, getPurchaseId, getTransactionType, goodsIsTextMethods inherited from class nxt.blockchain.Attachment.AbstractAttachment
apply, getAppendixName, getAppendixType, getBaselineFee, getBaselineFeeHeight, getFinishValidationHeight, getNextFee, getNextFeeHeight, isAllowed, isPhasable, validate, validateIdMethods inherited from class nxt.blockchain.Appendix.AbstractAppendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, loadPrunable, loadPrunable, putBytes, validateAtFinish, verifyVersionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Appendix
getFee, getFullSize, getJSONObject, getSize, getVersion, isPhased, putBytes
-
Constructor Details
-
UnencryptedDeliveryAttachment
public UnencryptedDeliveryAttachment(long purchaseId, byte[] goodsToEncrypt, boolean goodsIsText, long discountNQT, byte[] recipientPublicKey)
-
-
Method Details
-
getMySize
protected int getMySize()- Overrides:
getMySizein classDeliveryAttachment
-
putMyBytes
- Overrides:
putMyBytesin classDeliveryAttachment
-
putMyJSON
protected void putMyJSON(org.json.simple.JSONObject attachment) - Overrides:
putMyJSONin classDeliveryAttachment
-
encrypt
public void encrypt(byte[] privateKey) - Specified by:
encryptin interfaceAppendix.Encryptable
-