|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ecash.kernel.UsedNotesList
A list of all the notes already returned to the bank. Every note is recorded in order to avoid that people re-use several times the same note. Each item of this list is a UsedNote object.
UsedNote
,
Serialized FormConstructor Summary | |
UsedNotesList()
Creates a new list of used notes. |
|
UsedNotesList(java.lang.String value)
Re-build the object from it's string representation. |
|
UsedNotesList(java.util.Vector v)
Creates a new list using the specified values. |
Method Summary | |
void |
add(java.math.BigInteger bigM,
java.math.BigInteger[] x)
Adds a new note to the list. |
int |
check(java.math.BigInteger bigM,
java.math.BigInteger[] x)
Checks if a note has already been used, and if so, identifies the cheater. |
UsedNotesList |
copy()
Creates and returns a copy of this list. |
static UsedNotesList |
load(java.lang.String filename)
Re-build the object from it's file representation. |
void |
save(java.lang.String filename)
Saves this object into it's file representation. |
java.lang.String |
toString()
Returns a string representation of this UsedNotesList. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public UsedNotesList()
public UsedNotesList(java.util.Vector v)
v
- the valuespublic UsedNotesList(java.lang.String value)
value
- the string representation of the objectMethod Detail |
public void add(java.math.BigInteger bigM, java.math.BigInteger[] x)
bigM
- the notex
- the revealed part of the RISpublic int check(java.math.BigInteger bigM, java.math.BigInteger[] x)
bigM
- the notex
- the revealed part of the RIS
public UsedNotesList copy()
public static UsedNotesList load(java.lang.String filename)
filename
- the filenamepublic void save(java.lang.String filename)
filename
- the filenamepublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |