| Constructor and Description |
|---|
IdentityEd25519(DarcOCSProto.IdentityEd25519 proto)
Creates an IdentityEd25519 from a protobuf representation.
|
IdentityEd25519(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
DarcOCSProto.Identity |
toProto()
Creates a protobuf-representation of the implementation.
|
String |
toString() |
boolean |
verify(byte[] msg,
byte[] signature)
Returns true if the verification of signature on the sha-256 of msg is
successful or false if not.
|
public IdentityEd25519(DarcOCSProto.IdentityEd25519 proto)
proto - public IdentityEd25519(Signer signer) throws CothorityCryptoException
signer - CothorityCryptoExceptionpublic boolean verify(byte[] msg,
byte[] signature)
public DarcOCSProto.Identity toProto()
Copyright © 2018. All rights reserved.