ostore.security.thresh
Class ThresholdSignedQS

java.lang.Object
  |
  +--ostore.security.SignedQS
        |
        +--ostore.security.thresh.ThresholdSignedQS
All Implemented Interfaces:
Digestible, QuickSerializable

public class ThresholdSignedQS
extends SignedQS

A SignedQS for threshold signatures.

Version:
$Id: ThresholdSignedQS.java,v 1.4 2002/04/04 01:46:20 geels Exp $
Author:
Sean C. Rhea

Fields inherited from class ostore.security.SignedQS
_bytes, _qs_signature, _qs_signature_type, _signature, _user_data
 
Constructor Summary
ThresholdSignedQS(byte[] data, int[] offset)
          Deserialize the same way as a SignedQS.
ThresholdSignedQS(QuickSerializable user_data, byte[] signature)
          The default constructor.
 
Method Summary
static SigShare create_sig_share(KeyShare keyshare, QuickSerializable user_data, long qs_signature_type)
           
static byte[] data_to_sign(QuickSerializable user_data, long qs_signature_type)
           
 
Methods inherited from class ostore.security.SignedQS
add_to_digest, qs_signature, to_bytes, toString, type_code, user_data, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ThresholdSignedQS

public ThresholdSignedQS(byte[] data,
                         int[] offset)
                  throws QSException
Deserialize the same way as a SignedQS.

ThresholdSignedQS

public ThresholdSignedQS(QuickSerializable user_data,
                         byte[] signature)
The default constructor.

TODO: this interface practically encourages bugs.

Method Detail

create_sig_share

public static SigShare create_sig_share(KeyShare keyshare,
                                        QuickSerializable user_data,
                                        long qs_signature_type)

data_to_sign

public static byte[] data_to_sign(QuickSerializable user_data,
                                  long qs_signature_type)