ecash.kernel
Class UsedNote

java.lang.Object
  |
  +--ecash.kernel.UsedNote
All Implemented Interfaces:
java.io.Serializable

public class UsedNote
extends java.lang.Object
implements java.io.Serializable

This class represents a single item of the UsedNotesList class.

Author:
Michel Deriaz
See Also:
UsedNotesList, Serialized Form

Constructor Summary
UsedNote(java.math.BigInteger bigM, java.math.BigInteger[] xRevealed)
          Creates a UsedNote.
 
Method Summary
 java.math.BigInteger getBigM()
          Returns the note.
 java.math.BigInteger[] getX()
          Returns the revealed part of the RIS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsedNote

public UsedNote(java.math.BigInteger bigM,
                java.math.BigInteger[] xRevealed)
Creates a UsedNote. In addition to the note (bigM), the RIS that the seller got during the transaction with the buyer is also recorded; this will be useful to identify a buyer if the later tries to cheat by re-using several times the same note.

Parameters:
bigM - the note
xRevealed - the revealed RIS that the seller got during the transaction with the buyer
Method Detail

getBigM

public java.math.BigInteger getBigM()
Returns the note.

Returns:
bigM, the note

getX

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

Returns:
xRevealed, the revealed part of the RIS