ostore.security.thresh
Class SigShare

java.lang.Object
  |
  +--ostore.security.thresh.SigShare
All Implemented Interfaces:
QuickSerializable

public class SigShare
extends Object
implements QuickSerializable

Signature Shares Class. Associates a signature share with an id and wraps a static verifier.

Reference: "Practical Threshold Signatures", Victor Shoup (sho@zurich.ibm.com), IBM Research Paper RZ3121, 4/30/99

Version:
$Id: SigShare.java,v 1.19 2002/08/02 19:53:08 geels Exp $
Author:
Steve Weis

Constructor Summary
SigShare(InputBuffer buffer)
           
SigShare(int id, SafeBigInt sig, Verifier sigVerifier)
           
 
Method Summary
 boolean equals(Object other)
           
 byte[] getBytes()
          Return a byte array representation of this signature
 int getId()
          Return this share's id.
 SafeBigInt getSig()
          Return a SafeBigInt representation of this signature
 Verifier getSigVerifier()
          Return this signature's verifier
static byte[] package_up(SigShare[] sigs, ThresholdPublicKey public_key)
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 String toString()
           
static boolean verify(byte[] data, byte[] combined_sig, ThresholdPublicKey public_key)
           
static boolean verify(byte[] data, SigShare[] sigs, ThresholdPublicKey public_key)
           
 boolean verify(byte[] data, ThresholdPublicKey public_key)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SigShare

public SigShare(int id,
                SafeBigInt sig,
                Verifier sigVerifier)

SigShare

public SigShare(InputBuffer buffer)
         throws QSException
Method Detail

equals

public boolean equals(Object other)
Overrides:
equals in class Object

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Parameters:
buffer - the output buffer to add the object to

getId

public int getId()
Return this share's id. Needed for Lagrange interpolation

Returns:
the id of this key share

getSig

public SafeBigInt getSig()
Return a SafeBigInt representation of this signature

Returns:
a SafeBigInt representation of this signature

getSigVerifier

public Verifier getSigVerifier()
Return this signature's verifier

Returns:
A verifier for this signaute

getBytes

public byte[] getBytes()
Return a byte array representation of this signature

Returns:
a byte array representation of this signature

toString

public String toString()
Overrides:
toString in class Object

verify

public boolean verify(byte[] data,
                      ThresholdPublicKey public_key)

verify

public static boolean verify(byte[] data,
                             byte[] combined_sig,
                             ThresholdPublicKey public_key)
                      throws ThresholdSigException
ThresholdSigException

verify

public static boolean verify(byte[] data,
                             SigShare[] sigs,
                             ThresholdPublicKey public_key)
                      throws ThresholdSigException
ThresholdSigException

package_up

public static byte[] package_up(SigShare[] sigs,
                                ThresholdPublicKey public_key)
                         throws ThresholdSigException
ThresholdSigException