| Constructor and Description |
|---|
IdentityEd25519(DarcProto.IdentityEd25519 proto)
Creates an IdentityEd25519 from a protobuf representation.
|
IdentityEd25519(Ed25519Point p)
Creates an IdentityEd25519 from a Ed25519 point.
|
IdentityEd25519(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
DarcProto.Identity |
toProto()
Creates a protobuf-representation of the implementation.
|
String |
toString() |
String |
typeString() |
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(DarcProto.IdentityEd25519 proto)
proto - public IdentityEd25519(Ed25519Point p)
p - Ed25519 point for the identitypublic IdentityEd25519(Signer signer) throws CothorityCryptoException
signer - CothorityCryptoExceptionpublic boolean verify(byte[] msg,
byte[] signature)
public DarcProto.Identity toProto()
public String toString()
public String typeString()
typeString in interface IdentityCopyright © 2018. All rights reserved.