Class ScUtxoOutput

    • Constructor Detail

      • ScUtxoOutput

        public ScUtxoOutput​(byte[] spendingPubKey,
                            long amount,
                            long nonce,
                            byte[] customHash)
    • 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)
      • getHash

        public FieldElement getHash()
        Description copied from interface: PoseidonHashable
        Compute Poseidon Hash of this instance
        Specified by:
        getHash in interface PoseidonHashable
        Returns:
        a FieldElement corresponding to the Poseidon Hash of this instance