Uses of Class
org.drasyl.identity.ProofOfWork
-
Packages that use ProofOfWork Package Description org.drasyl Core API that includes theDrasylNode
andDrasylConfig
.org.drasyl.identity Contains classes to manage theIdentity
of the drasyl node.org.drasyl.remote.protocol The protocol used for communication with remote nodes. -
-
Uses of ProofOfWork in org.drasyl
Methods in org.drasyl that return ProofOfWork Modifier and Type Method Description ProofOfWork
DrasylConfig. getIdentityProofOfWork()
static ProofOfWork
DrasylConfig. getProofOfWork(com.typesafe.config.Config config, String path)
Gets theProofOfWork
at the given path.Methods in org.drasyl with parameters of type ProofOfWork Modifier and Type Method Description DrasylConfig.Builder
DrasylConfig.Builder. identityProofOfWork(ProofOfWork identityProofOfWork)
Constructors in org.drasyl with parameters of type ProofOfWork Constructor Description Builder(int networkId, ProofOfWork identityProofOfWork, CompressedPublicKey identityPublicKey, CompressedPrivateKey identityPrivateKey, Path identityPath, boolean intraVmDiscoveryEnabled, InetAddress remoteBindHost, boolean remoteEnabled, int remoteBindPort, Duration remotePingInterval, Duration remotePingTimeout, Duration remotePingCommunicationTimeout, Duration remoteUniteMinInterval, int remotePingMaxPeers, Set<Endpoint> remoteEndpoints, boolean remoteExposeEnabled, boolean remoteSuperPeerEnabled, Set<Endpoint> remoteSuperPeerEndpoints, Map<CompressedPublicKey,InetSocketAddressWrapper> remoteStaticRoutes, int remoteMessageMtu, int remoteMessageMaxContentLength, Duration remoteMessageComposedMessageTransferTimeout, byte remoteMessageHopLimit, boolean remoteMessageArmEnabled, boolean remoteLocalHostDiscoveryEnabled, Path remoteLocalHostDiscoveryPath, Duration remoteLocalHostDiscoveryLeaseTime, boolean monitoringEnabled, String monitoringHostTag, URI monitoringInfluxUri, String monitoringInfluxUser, String monitoringInfluxPassword, String monitoringInfluxDatabase, Duration monitoringInfluxReportingFrequency, Set<DrasylPlugin> pluginSet, Map<String,Serializer> serializationSerializers, Map<Class<?>,String> serializationsBindingsInbound, Map<Class<?>,String> serializationsBindingsOutbound)
-
Uses of ProofOfWork in org.drasyl.identity
Methods in org.drasyl.identity that return ProofOfWork Modifier and Type Method Description static ProofOfWork
ProofOfWork. generateProofOfWork(CompressedPublicKey publicKey, byte difficulty)
ProofOfWork
Identity. getProofOfWork()
ProofOfWork
IdentityManager. getProofOfWork()
static ProofOfWork
ProofOfWork. of(int nonce)
Methods in org.drasyl.identity with parameters of type ProofOfWork Modifier and Type Method Description static byte
ProofOfWork. getDifficulty(ProofOfWork proofOfWork, CompressedPublicKey publicKey)
static Identity
Identity. of(ProofOfWork proofOfWork, String publicKey, String privateKey)
static Identity
Identity. of(ProofOfWork proofOfWork, CompressedKeyPair keyPair)
static Identity
Identity. of(ProofOfWork proofOfWork, CompressedPublicKey publicKey, CompressedPrivateKey privateKey)
-
Uses of ProofOfWork in org.drasyl.remote.protocol
Methods in org.drasyl.remote.protocol that return ProofOfWork Modifier and Type Method Description ProofOfWork
IntermediateEnvelope. getProofOfWork()
Methods in org.drasyl.remote.protocol with parameters of type ProofOfWork Modifier and Type Method Description static IntermediateEnvelope<Protocol.Acknowledgement>
IntermediateEnvelope. acknowledgement(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, MessageId correspondingId)
Creates new acknowledgement message.static IntermediateEnvelope<Protocol.Application>
IntermediateEnvelope. application(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, String type, byte[] payload)
Creates new application message.static IntermediateEnvelope<Protocol.Discovery>
IntermediateEnvelope. discovery(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, long joinTime)
Creates a new join message.static IntermediateEnvelope<Protocol.Unite>
IntermediateEnvelope. unite(int networkId, CompressedPublicKey sender, ProofOfWork proofOfWork, CompressedPublicKey recipient, CompressedPublicKey publicKey, InetSocketAddress address)
-