public class DarcSignature extends Object
| Constructor and Description |
|---|
DarcSignature(byte[] msg,
Darc darc,
Signer signer,
int role) |
DarcSignature(byte[] msg,
SignaturePath path,
Signer signer)
This will return a new DarcSignature by the signer on the message.
|
DarcSignature(DarcOCSProto.Signature proto)
Recreates a darc from a protobuf representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
SignaturePath |
getPath()
Returns the stored path in the signature.
|
DarcOCSProto.Signature |
toProto()
Returns the protobuf representation of the signature.
|
boolean |
verify(byte[] msg,
Darc base)
Returns true if the signature verification is OK, false on an error.
|
public DarcSignature(byte[] msg,
SignaturePath path,
Signer signer)
throws CothorityCryptoException
msg - path - signer - CothorityCryptoExceptionpublic DarcSignature(byte[] msg,
Darc darc,
Signer signer,
int role)
throws CothorityCryptoException
CothorityCryptoExceptionpublic DarcSignature(DarcOCSProto.Signature proto) throws CothorityCryptoException
CothorityCryptoExceptionpublic SignaturePath getPath()
public boolean verify(byte[] msg,
Darc base)
throws CothorityCryptoException
msg - base - CothorityCryptoExceptionpublic DarcOCSProto.Signature toProto()
Copyright © 2018. All rights reserved.