|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectum.di.lmf.enote.Order
um.di.lmf.enote.ENote
um.di.lmf.enote.OpenENote
This class represents a digital cash note disclosing half of the bit commitments for the payment protocol
Field Summary | |
protected boolean[] |
bits
The chosen half bits |
protected byte[][] |
idhalf
The private information for half of the bit commitments: id halves |
protected java.math.BigInteger[] |
priv_random
The private information for half of the bit commitments: private randoms |
Fields inherited from class um.di.lmf.enote.ENote |
signature |
Fields inherited from class um.di.lmf.enote.Order |
amount, bank_cert, commit1, commit2, npairs, pub_random1, pub_random2, serial |
Constructor Summary | |
OpenENote()
This is the constructor that should be used before building an object with decode. |
|
OpenENote(OpenOrder oorder,
ENote enote,
boolean[] bits)
This constructor builds an open enote from an enote and an open order |
Method Summary | |
void |
decode(iaik.asn1.ASN1Object obj)
Decodes an ASN1Object according to the ASN.1 type the class implements. |
boolean[] |
getBits()
|
byte[] |
getIDHalf(int i)
Returns one half of the ID |
java.math.BigInteger |
getPrivRandom(int i)
Returns one of the commitment secret randoms |
iaik.asn1.ASN1Object |
toASN1Object()
Creates an ASN1Object according to the ASN.1 type the class implements. |
iaik.asn1.ASN1Object |
toENoteASN1Object()
Creates an ASN1Object of the enclosed ENote object |
Methods inherited from class um.di.lmf.enote.ENote |
getSignature |
Methods inherited from class um.di.lmf.enote.Order |
getAmount, getBankCertificate, getCommitment, getNPairs, getPubRandom, getSerial |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected byte[][] idhalf
protected java.math.BigInteger[] priv_random
protected boolean[] bits
Constructor Detail |
public OpenENote()
public OpenENote(OpenOrder oorder, ENote enote, boolean[] bits)
Method Detail |
public byte[] getIDHalf(int i)
public java.math.BigInteger getPrivRandom(int i)
public boolean[] getBits()
public void decode(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
decode
in interface iaik.asn1.ASN1Type
decode
in class ENote
iaik.asn1.CodingException
public iaik.asn1.ASN1Object toENoteASN1Object() throws iaik.asn1.CodingException
iaik.asn1.CodingException
public iaik.asn1.ASN1Object toASN1Object() throws iaik.asn1.CodingException
toASN1Object
in interface iaik.asn1.ASN1Type
toASN1Object
in class ENote
iaik.asn1.CodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |