Uses of Class
org.drasyl.identity.ProofOfWork
Package
Description
Handlers used to communicate with remote nodes.
Discovery/Routing of peers on the internet.
The protocol used for communication with remote peers.
Contains classes to manage the
Identity
of the drasyl node.Contains
DrasylNode
.Provides hints for correct JSON (de)serialization.
Messages that are used to communicate with other nodes using the groups plugin.
-
Uses of ProofOfWork in org.drasyl.handler.remote
ModifierConstructorDescriptionApplicationMessageToPayloadCodec
(int networkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork) LocalNetworkDiscovery
(int networkId, Duration pingInterval, Duration pingTimeout, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork) LocalNetworkDiscovery
(Map<DrasylAddress, org.drasyl.handler.remote.LocalNetworkDiscovery.Peer> peers, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, Duration pingInterval, Duration pingTimeout, int networkId, io.netty.util.concurrent.Future<?> scheduledPingFuture) -
Uses of ProofOfWork in org.drasyl.handler.remote.internet
Modifier and TypeFieldDescriptionprotected final ProofOfWork
InternetDiscoveryChildrenHandler.myProofOfWork
protected final ProofOfWork
InternetDiscoverySuperPeerHandler.myProofOfWork
ModifierConstructorDescriptionInternetDiscoveryChildrenHandler
(int myNetworkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, long initialPingDelayMillis, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, Map<IdentityPublicKey, InetSocketAddress> superPeerAddresses) InternetDiscoveryChildrenHandler
(int myNetworkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, LongSupplier currentTime, long initialPingDelayMillis, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, Map<IdentityPublicKey, InetSocketAddress> superPeerAddresses) InternetDiscoverySuperPeerHandler
(int myNetworkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, HopCount hopLimit) TraversingInternetDiscoveryChildrenHandler
(int myNetworkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, long initialPingDelayMillis, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, Map<IdentityPublicKey, InetSocketAddress> superPeerAddresses, long pingCommunicationTimeoutMillis, long maxPeers) TraversingInternetDiscoverySuperPeerHandler
(int myNetworkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, HopCount hopLimit, long uniteMinIntervalMillis) -
Uses of ProofOfWork in org.drasyl.handler.remote.protocol
Modifier and TypeMethodDescriptionabstract ProofOfWork
PublicHeader.getProofOfWork()
RemoteMessage.getProofOfWork()
Modifier and TypeMethodDescriptionstatic AcknowledgementMessage
AcknowledgementMessage.of
(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time) static AcknowledgementMessage
AcknowledgementMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time) Creates new acknowledgement message.static ApplicationMessage
ApplicationMessage.of
(int networkId, IdentityPublicKey recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf payload) static ApplicationMessage
ApplicationMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf payload) Creates new application message.static ArmedProtocolMessage
ArmedProtocolMessage.of
(Nonce nonce, HopCount hopCount, int networkId, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes) Creates an armed message.static DiscoveryMessage
DiscoveryMessage.of
(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long childrenTime) Creates a newDiscoveryMessage
message.static DiscoveryMessage
DiscoveryMessage.of
(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time, long childrenTime) Creates a newDiscoveryMessage
message.static DiscoveryMessage
DiscoveryMessage.of
(int networkId, IdentityPublicKey sender, ProofOfWork proofOfWork) Creates a new multicastDiscoveryMessage
message (sent byLocalNetworkDiscovery
}.static DiscoveryMessage
DiscoveryMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long joinTime) Creates new application message.static PublicHeader
PublicHeader.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork) static UnarmedProtocolMessage
UnarmedProtocolMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes) Creates an unarmed message.static UniteMessage
UniteMessage.of
(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, DrasylAddress address, InetSocketAddress inetAddress) static UniteMessage
UniteMessage.of
(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, DrasylAddress address, InetAddress inetAddress, UnsignedShort port) Creates new unit message. -
Uses of ProofOfWork in org.drasyl.identity
Modifier and TypeMethodDescriptionstatic ProofOfWork
ProofOfWork.generateProofOfWork
(DrasylAddress address, byte difficulty) abstract ProofOfWork
Identity.getProofOfWork()
ProofOfWork.incNonce()
static ProofOfWork
ProofOfWork.of
(int nonce) Modifier and TypeMethodDescriptionstatic byte
ProofOfWork.getDifficulty
(ProofOfWork proofOfWork, IdentityPublicKey publicKey) static Identity
Identity.of
(ProofOfWork proofOfWork, String identityPublicKey, String identitySecretKey) static Identity
Identity.of
(ProofOfWork proofOfWork, IdentityPublicKey identityPublicKey, IdentitySecretKey identitySecretKey) static Identity
Identity.of
(ProofOfWork proofOfWork, IdentitySecretKey identitySecretKey) 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 ProofOfWork in org.drasyl.node
Modifier and TypeMethodDescriptionabstract ProofOfWork
DrasylConfig.getIdentityProofOfWork()
static ProofOfWork
DrasylConfig.getProofOfWork
(com.typesafe.config.Config config, String path) Gets theProofOfWork
at the given path.Modifier and TypeMethodDescriptionabstract DrasylConfig.Builder
DrasylConfig.Builder.identityProofOfWork
(ProofOfWork identityProofOfWork) -
Uses of ProofOfWork in org.drasyl.node.identity.serialization
-
Uses of ProofOfWork in org.drasyl.node.plugin.groups.client.message
ModifierConstructorDescriptionGroupJoinMessage
(Group group, String credentials, ProofOfWork proofOfWork, boolean renew)