ecash.kernel
Class RevealedNote

java.lang.Object
  |
  +--ecash.kernel.RevealedNote

public class RevealedNote
extends java.lang.Object

This class is used by buyers to reveal to the bank the secret information used to build a note. Buyers will have to send such an object to the bank for every note except for the one choosen by the bank (which will be signed).

Author:
Michel Deriaz
See Also:
RevealedNotesList

Constructor Summary
RevealedNote(java.math.BigInteger amount, java.math.BigInteger k, java.math.BigInteger[] x)
          Creates a RevealedNote.
RevealedNote(FullNote fullNote)
          Creates a RevealedNote object from the information found in a FullNote object.
 
Method Summary
 java.math.BigInteger getAmount()
          Returns the amount of the note.
 java.math.BigInteger getK()
          Returns the blinding factor.
 java.math.BigInteger[] getX()
          Returns the RIS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RevealedNote

public RevealedNote(java.math.BigInteger amount,
                    java.math.BigInteger k,
                    java.math.BigInteger[] x)
Creates a RevealedNote.

Parameters:
amount - the amount of the note
k - the blinding factor
x - the RIS

RevealedNote

public RevealedNote(FullNote fullNote)
Creates a RevealedNote object from the information found in a FullNote object.

Parameters:
fullNote - the full note
Method Detail

getAmount

public java.math.BigInteger getAmount()
Returns the amount of the note.

Returns:
amount, the amount of the note

getK

public java.math.BigInteger getK()
Returns the blinding factor.

Returns:
k, the blinding factor

getX

public java.math.BigInteger[] getX()
Returns the RIS.

Returns:
x, the RIS