| Constructor and Description |
|---|
IdentityDarc(Darc darc)
Instantiates a IdentityDarc given a darc.
|
IdentityDarc(DarcId darcID)
Instantiates a IdentityDarc given a darc-id.
|
IdentityDarc(DarcProto.IdentityDarc proto)
Instantiates a IdentityDarc given its protobuf representation.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
DarcId |
getDarcId()
Return ID of DARC
|
int |
hashCode() |
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 IdentityDarc(DarcProto.IdentityDarc proto) throws CothorityCryptoException
proto - CothorityCryptoExceptionpublic IdentityDarc(DarcId darcID)
darcID - public IdentityDarc(Darc darc) throws CothorityCryptoException
darc - CothorityCryptoExceptionpublic boolean verify(byte[] msg,
byte[] signature)
public DarcProto.Identity toProto()
public DarcId getDarcId()
public boolean equals(Object o)
public String toString()
public String typeString()
typeString in interface IdentityCopyright © 2018. All rights reserved.