Package org.klomp.snark.dht
Class InfoHash
java.lang.Object
net.i2p.data.SimpleDataStructure
net.i2p.crypto.SHA1Hash
org.klomp.snark.dht.InfoHash
- All Implemented Interfaces:
DataStructure
A 20-byte SHA1 info hash
- 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, writeBytes
-
Constructor Details
-
InfoHash
public InfoHash(byte[] data)
-
-
Method Details
-
toString
- Overrides:
toString
in classSimpleDataStructure
-