Package com.algorand.algosdk.crypto
Class MultisigSignature
- java.lang.Object
-
- com.algorand.algosdk.crypto.MultisigSignature
-
- All Implemented Interfaces:
Serializable
public class MultisigSignature extends Object implements Serializable
Serializable raw multisig class.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultisigSignature.MultisigSubsig
Serializable multisig sub-signature
-
Field Summary
Fields Modifier and Type Field Description List<MultisigSignature.MultisigSubsig>
subsigs
int
threshold
int
version
-
Constructor Summary
Constructors Constructor Description MultisigSignature()
MultisigSignature(int version, int threshold)
MultisigSignature(int version, int threshold, List<MultisigSignature.MultisigSubsig> subsigs)
create a multisig signature.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultisigAddress
convertToMultisigAddress()
boolean
equals(Object obj)
boolean
verify(byte[] message)
Performs signature verification
-
-
-
Field Detail
-
version
public int version
-
threshold
public int threshold
-
subsigs
public List<MultisigSignature.MultisigSubsig> subsigs
-
-
Constructor Detail
-
MultisigSignature
public MultisigSignature(int version, int threshold, List<MultisigSignature.MultisigSubsig> subsigs)
create a multisig signature.- Parameters:
version
- requiredthreshold
- requiredsubsigs
- can be empty, or null
-
MultisigSignature
public MultisigSignature(int version, int threshold)
-
MultisigSignature
public MultisigSignature()
-
-
Method Detail
-
verify
public boolean verify(byte[] message)
Performs signature verification- Parameters:
message
- raw message to verify- Returns:
- boolean
- Throws:
IllegalStateException
- on verification error
-
convertToMultisigAddress
public MultisigAddress convertToMultisigAddress()
-
-