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
SigShare
public SigShare(int id,
SafeBigInt sig,
Verifier sigVerifier)
SigShare
public SigShare(InputBuffer buffer)
throws QSException
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
- Following copied from interface:
ostore.util.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
verify
public static boolean verify(byte[] data,
SigShare[] sigs,
ThresholdPublicKey public_key)
throws ThresholdSigException
package_up
public static byte[] package_up(SigShare[] sigs,
ThresholdPublicKey public_key)
throws ThresholdSigException