Uses of Class
org.drasyl.identity.ProofOfWork
Packages that use 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.Messages that are used to communicate with other nodes using the groups plugin.
-
Uses of ProofOfWork in org.drasyl.handler.remote
Constructors in org.drasyl.handler.remote with parameters of type ProofOfWorkModifierConstructorDescriptionApplicationMessageToPayloadCodec(int networkId, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork) LocalNetworkDiscovery(int networkId, long pingIntervalMillis, long pingTimeoutMillis, IdentityPublicKey myPublicKey, ProofOfWork myProofOfWork, InetSocketAddress recipient) -
Uses of ProofOfWork in org.drasyl.handler.remote.internet
Fields in org.drasyl.handler.remote.internet declared as ProofOfWorkModifier and TypeFieldDescriptionprotected final ProofOfWorkInternetDiscoveryChildrenHandler.myProofOfWorkprotected final ProofOfWorkInternetDiscoverySuperPeerHandler.myProofOfWorkConstructors in org.drasyl.handler.remote.internet with parameters of type ProofOfWorkModifierConstructorDescriptionInternetDiscoveryChildrenHandler(int myNetworkId, IdentityPublicKey myPublicKey, IdentitySecretKey mySecretKey, ProofOfWork myProofOfWork, long initialPingDelayMillis, long pingIntervalMillis, long pingTimeoutMillis, long maxTimeOffsetMillis, Map<IdentityPublicKey, InetSocketAddress> superPeerAddresses) InternetDiscoveryChildrenHandler(int myNetworkId, IdentityPublicKey myPublicKey, IdentitySecretKey mySecretKey, 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, IdentitySecretKey mySecretKey, 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
Methods in org.drasyl.handler.remote.protocol that return ProofOfWorkModifier and TypeMethodDescriptionabstract ProofOfWorkPublicHeader.getProofOfWork()RemoteMessage.getProofOfWork()Methods in org.drasyl.handler.remote.protocol with parameters of type ProofOfWorkModifier and TypeMethodDescriptionstatic AcknowledgementMessageAcknowledgementMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time) static AcknowledgementMessageAcknowledgementMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time) Creates new acknowledgement message.static ApplicationMessageApplicationMessage.of(int networkId, IdentityPublicKey recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf payload) static ApplicationMessageApplicationMessage.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 ArmedProtocolMessageArmedProtocolMessage.of(Nonce nonce, HopCount hopCount, int networkId, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, io.netty.buffer.ByteBuf bytes) Creates an armed message.static HelloMessageHelloMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork) Creates a newHelloMessage.static HelloMessageHelloMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage.static HelloMessageHelloMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage.static HelloMessageHelloMessage.of(int networkId, IdentityPublicKey sender, ProofOfWork proofOfWork) Creates a new multicastHelloMessage(sent byLocalNetworkDiscovery}.static HelloMessageHelloMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, IdentitySecretKey secretKey, Set<InetSocketAddress> privateInetAddresses) Creates newHelloMessage.static HelloMessageHelloMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, long time, long childrenTime, ImmutableByteArray signature, Set<InetSocketAddress> privateInetAddresses) Creates a newHelloMessage.static PublicHeaderPublicHeader.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork) static UnarmedProtocolMessageUnarmedProtocolMessage.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 UniteMessageUniteMessage.of(int networkId, DrasylAddress recipient, IdentityPublicKey sender, ProofOfWork proofOfWork, DrasylAddress address, Set<InetSocketAddress> inetAddresses) static UniteMessageUniteMessage.of(HopCount hopCount, boolean isArmed, int networkId, Nonce nonce, DrasylAddress recipient, DrasylAddress sender, ProofOfWork proofOfWork, DrasylAddress address, Set<InetSocketAddress> inetAddresses) Creates new unit message. -
Uses of ProofOfWork in org.drasyl.identity
Methods in org.drasyl.identity that return ProofOfWorkModifier and TypeMethodDescriptionstatic ProofOfWorkProofOfWork.generateProofOfWork(DrasylAddress address, byte difficulty) abstract ProofOfWorkIdentity.getProofOfWork()ProofOfWork.incNonce()Returns a Proof of Work with nonce incremented by 1.static ProofOfWorkProofOfWork.of(int nonce) static ProofOfWorkMethods in org.drasyl.identity with parameters of type ProofOfWorkModifier and TypeMethodDescriptionstatic byteProofOfWork.getDifficulty(ProofOfWork proofOfWork, DrasylAddress publicKey) static IdentityIdentity.of(ProofOfWork proofOfWork, String identityPublicKey, String identitySecretKey) static IdentityIdentity.of(ProofOfWork proofOfWork, IdentityPublicKey identityPublicKey, IdentitySecretKey identitySecretKey) static IdentityIdentity.of(ProofOfWork proofOfWork, IdentitySecretKey identitySecretKey) static IdentityIdentity.of(ProofOfWork proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair) static IdentityIdentity.of(ProofOfWork proofOfWork, KeyPair<IdentityPublicKey, IdentitySecretKey> identityKeyPair, KeyPair<KeyAgreementPublicKey, KeyAgreementSecretKey> keyAgreementKeyPair) -
Uses of ProofOfWork in org.drasyl.node
Methods in org.drasyl.node that return ProofOfWorkModifier and TypeMethodDescriptionabstract ProofOfWorkDrasylConfig.getIdentityProofOfWork()static ProofOfWorkDrasylConfig.getProofOfWork(com.typesafe.config.Config config, String path) Gets theProofOfWorkat the given path.Methods in org.drasyl.node with parameters of type ProofOfWorkModifier and TypeMethodDescriptionabstract DrasylConfig.BuilderDrasylConfig.Builder.identityProofOfWork(ProofOfWork identityProofOfWork) -
Uses of ProofOfWork in org.drasyl.node.plugin.groups.client.message
Methods in org.drasyl.node.plugin.groups.client.message that return ProofOfWorkMethods in org.drasyl.node.plugin.groups.client.message with parameters of type ProofOfWorkModifier and TypeMethodDescriptionstatic GroupJoinMessageGroupJoinMessage.of(Group group, String credentials, ProofOfWork proofOfWork, boolean renew)