ostore.security.thresh
Class ThresholdSignedQSTree

java.lang.Object
  |
  +--ostore.security.SignedQS
        |
        +--ostore.security.SignedQSTree
              |
              +--ostore.security.thresh.ThresholdSignedQSTree
All Implemented Interfaces:
QuickSerializable

public class ThresholdSignedQSTree
extends SignedQSTree

A SignedQS for threshold signatures.

Version:
$Id: ThresholdSignedQSTree.java,v 1.7 2002/08/14 01:13:34 srhea Exp $
Author:
Sean C. Rhea

Nested Class Summary
 
Nested classes inherited from class ostore.security.SignedQSTree
SignedQSTree.Root
 
Nested classes inherited from class ostore.security.SignedQS
SignedQS.SignatureBuffer
 
Field Summary
 
Fields inherited from class ostore.security.SignedQSTree
_elts
 
Fields inherited from class ostore.security.SignedQS
_qs_signature, _qs_signature_type, _signature, _user_data
 
Constructor Summary
ThresholdSignedQSTree(InputBuffer buffer)
          Deserialize the same way as a SignedQS.
ThresholdSignedQSTree(QSArray elts, byte[] signature)
          The default constructor.
 
Method Summary
static byte[] bytes_to_sign(QSArray elts, long qs_signature_type)
           
static SigShare create_sig_share(KeyShare keyshare, QSArray elts, long qs_signature_type)
           
 
Methods inherited from class ostore.security.SignedQSTree
compute_root, compute_tree, main, next_highest_power_of_two, serialize, toString, user_data, verify
 
Methods inherited from class ostore.security.SignedQS
init, init, qs_signature, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThresholdSignedQSTree

public ThresholdSignedQSTree(InputBuffer buffer)
                      throws QSException
Deserialize the same way as a SignedQS.


ThresholdSignedQSTree

public ThresholdSignedQSTree(QSArray elts,
                             byte[] signature)
The default constructor.

TODO: this interface practically encourages bugs.

Method Detail

create_sig_share

public static SigShare create_sig_share(KeyShare keyshare,
                                        QSArray elts,
                                        long qs_signature_type)

bytes_to_sign

public static byte[] bytes_to_sign(QSArray elts,
                                   long qs_signature_type)