|
||||||||||
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.OpenOrder
This class represents a digital cash note note order, disclosing all the commitments for the withdrawal protocol
Field Summary | |
protected byte[][] |
idhalf1
The private information for the bit commitments: one id half |
protected byte[][] |
idhalf2
The private information for the bit commitments: one id half |
protected java.math.BigInteger[] |
priv_random1
The private information for the bit commitments: one private random |
protected java.math.BigInteger[] |
priv_random2
The private information for the bit commitments: one private random |
Fields inherited from class um.di.lmf.enote.Order |
amount, bank_cert, commit1, commit2, npairs, pub_random1, pub_random2, serial |
Constructor Summary | |
OpenOrder()
This is the constructor that should be used before building an object with decode. |
|
OpenOrder(java.lang.String id,
int amount,
int npairs,
iaik.x509.X509Certificate bank_cert)
This constructor builds an open order from scratch. |
Method Summary | |
void |
decode(iaik.asn1.ASN1Object obj)
Decodes an ASN1Object according to the ASN.1 type the class implements. |
byte[] |
getIDHalf(int i,
boolean bit)
Returns one half of the ID |
java.math.BigInteger |
getPrivRandom(int i,
boolean bit)
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 |
toOrderASN1Object()
Creates an ASN1Object of the enclosed Order object |
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[][] idhalf1
protected byte[][] idhalf2
protected java.math.BigInteger[] priv_random1
protected java.math.BigInteger[] priv_random2
Constructor Detail |
public OpenOrder()
public OpenOrder(java.lang.String id, int amount, int npairs, iaik.x509.X509Certificate bank_cert) throws java.security.NoSuchAlgorithmException
Method Detail |
public byte[] getIDHalf(int i, boolean bit)
public java.math.BigInteger getPrivRandom(int i, boolean bit)
public void decode(iaik.asn1.ASN1Object obj) throws iaik.asn1.CodingException
decode
in interface iaik.asn1.ASN1Type
decode
in class Order
iaik.asn1.CodingException
public iaik.asn1.ASN1Object toOrderASN1Object() 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 Order
iaik.asn1.CodingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |