Uses of Class
org.drasyl.identity.IdentitySecretKey
Package
Description
Classes for crypto-related operations.
Contains classes to manage the
Identity
of the drasyl node.Contains
DrasylNode
.Provides hints for correct JSON (de)serialization.
-
Uses of IdentitySecretKey in org.drasyl.crypto
Modifier and TypeMethodDescriptionCrypto.generateLongTimeKeyPair()
Generates a new ed25519 key pair for signing and on-demand encryption.Modifier and TypeMethodDescriptionbyte[]
Crypto.sign
(byte[] message, IdentitySecretKey secretKey) Creates a signature for the givenmessage
with the givensecretKey
in detached mode (signature is not appended to message, rather it is standalone).Modifier and TypeMethodDescriptionCrypto.convertLongTimeKeyPairToKeyAgreementKeyPair
(KeyPair<IdentityPublicKey, IdentitySecretKey> keyPair) Converts the given ed25519 long timekeyPair
into a curve25519 key pair for (on-demand) key agreement. -
Uses of IdentitySecretKey in org.drasyl.identity
Modifier and TypeMethodDescriptionIdentity.getIdentitySecretKey()
IdentitySecretKey.intern()
static IdentitySecretKey
IdentitySecretKey.of
(byte[] bytes) Converts a byte[] into aIdentitySecretKey
.static IdentitySecretKey
Converts aString
into aIdentitySecretKey
.static IdentitySecretKey
IdentitySecretKey.of
(ImmutableByteArray bytes) Modifier and TypeMethodDescriptionabstract KeyPair<IdentityPublicKey,
IdentitySecretKey> Identity.getIdentityKeyPair()
Modifier and TypeMethodDescriptionstatic Identity
Identity.of
(int proofOfWork, IdentitySecretKey identitySecretKey) static Identity
Identity.of
(ProofOfWork proofOfWork, IdentityPublicKey identityPublicKey, IdentitySecretKey identitySecretKey) static Identity
Identity.of
(ProofOfWork proofOfWork, IdentitySecretKey identitySecretKey) Modifier and TypeMethodDescriptionstatic Identity
Identity.of
(int proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair, KeyPair<KeyAgreementPublicKey, KeyAgreementSecretKey> keyAgreementKeyPair) static Identity
Identity.of
(ProofOfWork proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair) static Identity
Identity.of
(ProofOfWork proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair, KeyPair<KeyAgreementPublicKey, KeyAgreementSecretKey> keyAgreementKeyPair) -
Uses of IdentitySecretKey in org.drasyl.node
Modifier and TypeMethodDescriptionabstract IdentitySecretKey
DrasylConfig.getIdentitySecretKey()
static IdentitySecretKey
DrasylConfig.getIdentitySecretKey
(com.typesafe.config.Config config, String path) Gets theIdentitySecretKey
at the given path.Modifier and TypeMethodDescriptionabstract DrasylConfig.Builder
DrasylConfig.Builder.identitySecretKey
(IdentitySecretKey identitySecretKey) -
Uses of IdentitySecretKey in org.drasyl.node.identity.serialization
Modifier and TypeMethodDescriptionstatic Identity
IdentityMixin.of
(int proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair, KeyPair<KeyAgreementPublicKey, KeyAgreementSecretKey> keyAgreementKeyPair)