Package net.osslabz.lnd.dto
Class LnrpcAMP
java.lang.Object
net.osslabz.lnd.dto.LnrpcAMP
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:38.664532692Z[Etc/UTC]")
public class LnrpcAMP
extends Object
Details specific to AMP HTLCs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchildIndex(Long childIndex) booleanA nonce used to randomize the child preimage and child hash from a given root_share.byte[]getHash()The payment hash of the AMP HTLC.byte[]The preimage used to settle this AMP htlc.byte[]An n-of-n secret share of the root seed from which child payment hashes and preimages are derived.byte[]getSetId()An identifier for the HTLC set that this HTLC belongs to.hash(byte[] hash) inthashCode()preimage(byte[] preimage) rootShare(byte[] rootShare) voidsetChildIndex(Long childIndex) voidsetHash(byte[] hash) setId(byte[] setId) voidsetPreimage(byte[] preimage) voidsetRootShare(byte[] rootShare) voidsetSetId(byte[] setId) toString()
-
Field Details
-
SERIALIZED_NAME_ROOT_SHARE
- See Also:
-
SERIALIZED_NAME_SET_ID
- See Also:
-
SERIALIZED_NAME_CHILD_INDEX
- See Also:
-
SERIALIZED_NAME_HASH
- See Also:
-
SERIALIZED_NAME_PREIMAGE
- See Also:
-
-
Constructor Details
-
LnrpcAMP
public LnrpcAMP()
-
-
Method Details
-
setId
-
getSetId
@Nullable public byte[] getSetId()An identifier for the HTLC set that this HTLC belongs to.- Returns:
- setId
-
setSetId
public void setSetId(byte[] setId) -
childIndex
-
getChildIndex
A nonce used to randomize the child preimage and child hash from a given root_share.- Returns:
- childIndex
-
setChildIndex
-
hash
-
getHash
@Nullable public byte[] getHash()The payment hash of the AMP HTLC.- Returns:
- hash
-
setHash
public void setHash(byte[] hash) -
preimage
-
getPreimage
@Nullable public byte[] getPreimage()The preimage used to settle this AMP htlc. This field will only be populated if the invoice is in InvoiceState_ACCEPTED or InvoiceState_SETTLED.- Returns:
- preimage
-
setPreimage
public void setPreimage(byte[] preimage) -
equals
-
hashCode
public int hashCode() -
toString