| Constructor and Description |
|---|
IdentityX509EC(DarcProto.IdentityX509EC proto)
Creates an IdentityX509EC from a protobuf representation.
|
IdentityX509EC(Signer signer)
Creates an IdentityEd25519 from a SignerEd25519.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
byte[] |
getPublicBytes()
Get the public identifier in bytes.
|
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 IdentityX509EC(DarcProto.IdentityX509EC proto)
proto - a protobuf representationpublic IdentityX509EC(Signer signer)
signer - the input signerpublic boolean verify(byte[] msg,
byte[] signature)
public DarcProto.Identity toProto()
public String toString()
public boolean equals(Object other)
public String typeString()
typeString in interface Identitypublic byte[] getPublicBytes()
IdentitygetPublicBytes in interface IdentityCopyright © 2019. All rights reserved.