Package org.klomp.snark.dht
Class NID
java.lang.Object
net.i2p.data.SimpleDataStructure
net.i2p.crypto.SHA1Hash
org.klomp.snark.dht.NID
- All Implemented Interfaces:
DataStructure
A 20-byte peer ID, used as a Map key in lots of places.
Must be public for constructor in KBucketSet.generateRandomKey()
- Since:
- 0.9.2
- Author:
- zzz
-
Field Summary
Fields inherited from class net.i2p.crypto.SHA1Hash
HASH_LENGTH
Fields inherited from class net.i2p.data.SimpleDataStructure
_data
-
Constructor Summary
-
Method Summary
Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, read, toBase64, toByteArray, toString, writeBytes
-
Constructor Details
-
NID
public NID() -
NID
public NID(byte[] data)
-
-
Method Details
-
lastSeen
public long lastSeen() -
setLastSeen
public void setLastSeen() -
timeout
public boolean timeout()- Returns:
- if more than max timeouts
-