ecash.kernel
Class FullNote

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

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

This class represents a single note with all it's related information: envelope, blinding factor, RIS, ...

Author:
Michel Deriaz
See Also:
Serialized Form

Constructor Summary
FullNote(java.math.BigInteger bigM, java.math.BigInteger m, java.math.BigInteger envelope, java.math.BigInteger amount, java.math.BigInteger k, java.math.BigInteger[] x, java.math.BigInteger[] y)
          Creates a FullNote.
 
Method Summary
 java.math.BigInteger getAmount()
          Returns amount, the amount of the note.
 java.math.BigInteger getBigM()
          Returns bigM, the note.
 java.math.BigInteger getEnvelope()
          Returns envelope, the envelope used to hide the note during the blind signature process
 java.math.BigInteger getK()
          Returns k, the blinding factor.
 java.math.BigInteger getM()
          Returns m, the signed hash of the note.
 java.math.BigInteger[] getX()
          Returns x, the RIS.
 java.math.BigInteger[] getY()
          Returns y, the hash of the RIS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FullNote

public FullNote(java.math.BigInteger bigM,
                java.math.BigInteger m,
                java.math.BigInteger envelope,
                java.math.BigInteger amount,
                java.math.BigInteger k,
                java.math.BigInteger[] x,
                java.math.BigInteger[] y)
Creates a FullNote.

Parameters:
bigM - the note
m - a signed hash of the note
envelope - the envelope used to hide the note during the blind signature process
amount - the amount of the note
k - the blinding factor
x - the RIS
y - the hash of the RIS
Method Detail

getBigM

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

Returns:
bigM

getM

public java.math.BigInteger getM()
Returns m, the signed hash of the note.

Returns:
m

getEnvelope

public java.math.BigInteger getEnvelope()
Returns envelope, the envelope used to hide the note during the blind signature process

Returns:
envelope

getAmount

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

Returns:
amount

getK

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

Returns:
k

getX

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

Returns:
x

getY

public java.math.BigInteger[] getY()
Returns y, the hash of the RIS.

Returns:
y