| Constructor and Description |
|---|
IdentityDarc(Darc darc)
Instantiates a IdentityDarc given a darc.
|
IdentityDarc(DarcId darcBaseID)
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
|
byte[] |
getPublicBytes()
Get the public identifier in bytes.
|
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)
proto - the protobuf representation of the IdentityDarcpublic IdentityDarc(DarcId darcBaseID)
darcBaseID - the source DarcIdpublic IdentityDarc(Darc darc)
darc - the source Darcpublic 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 Identitypublic byte[] getPublicBytes()
IdentitygetPublicBytes in interface IdentityCopyright © 2019. All rights reserved.