Interface IdentityMixin
public interface IdentityMixin
Provides hints for correct
Identity
JSON (de)serialization.-
Method Summary
Modifier and TypeMethodDescriptionboolean
isValid()
static Identity
of
(int proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair, KeyPair<KeyAgreementPublicKey, KeyAgreementSecretKey> keyAgreementKeyPair)
-
Method Details
-
getIdentityPublicKey
IdentityPublicKey getIdentityPublicKey() -
getIdentitySecretKey
IdentitySecretKey getIdentitySecretKey() -
getAddress
DrasylAddress getAddress() -
getKeyAgreementPublicKey
KeyAgreementPublicKey getKeyAgreementPublicKey() -
getKeyAgreementSecretKey
KeyAgreementSecretKey getKeyAgreementSecretKey() -
isValid
boolean isValid() -
of
static Identity of(int proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair, KeyPair<KeyAgreementPublicKey, KeyAgreementSecretKey> keyAgreementKeyPair)
-