Package com.horizen.scutxonative
Class ScUtxoOutput
- java.lang.Object
-
- com.horizen.scutxonative.ScUtxoOutput
-
- All Implemented Interfaces:
PoseidonHashable
public class ScUtxoOutput extends Object implements PoseidonHashable
-
-
Constructor Summary
Constructors Constructor Description ScUtxoOutput(byte[] spendingPubKey, long amount, long nonce, byte[] customHash)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetAmount()byte[]getCustomHash()FieldElementgetHash()Compute Poseidon Hash of this instancelonggetNonce()FieldElementgetNullifier()static ScUtxoOutputgetRandom(Random r)byte[]getSpendingPubKey()voidsetAmount(long amount)voidsetCustomHash(byte[] customHash)voidsetNonce(long nonce)voidsetSpendingPubKey(byte[] spendingPubKey)
-
-
-
Method Detail
-
getSpendingPubKey
public byte[] getSpendingPubKey()
-
getAmount
public long getAmount()
-
getNonce
public long getNonce()
-
getCustomHash
public byte[] getCustomHash()
-
setSpendingPubKey
public void setSpendingPubKey(byte[] spendingPubKey)
-
setAmount
public void setAmount(long amount)
-
setNonce
public void setNonce(long nonce)
-
setCustomHash
public void setCustomHash(byte[] customHash)
-
getRandom
public static ScUtxoOutput getRandom(Random r)
-
getHash
public FieldElement getHash()
Description copied from interface:PoseidonHashableCompute Poseidon Hash of this instance- Specified by:
getHashin interfacePoseidonHashable- Returns:
- a FieldElement corresponding to the Poseidon Hash of this instance
-
getNullifier
public FieldElement getNullifier()
-
-