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
public class NID extends SHA1Hash
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
lastSeen()
void
setLastSeen()
boolean
timeout()
-
Methods inherited from class net.i2p.data.SimpleDataStructure
calculateHash, equals, fromBase64, fromByteArray, getData, read, toBase64, toByteArray, toString, writeBytes
-
-