| Constructor and Description |
|---|
IdentityDarc(Darc darc)
Instantiates a IdentityDarc given a darc.
|
IdentityDarc(DarcId darcID)
Instantiates a IdentityDarc given a darc-id.
|
IdentityDarc(DarcOCSProto.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() |
DarcOCSProto.Identity |
toProto()
Creates a protobuf-representation of the implementation.
|
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(DarcOCSProto.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 DarcOCSProto.Identity toProto()
public DarcId getDarcId()
public boolean equals(Object o)
Copyright © 2018. All rights reserved.