Package-level declarations
Types
Holds an N-bit digest (or any fixed-size bit sequence). This is the pure-Kotlin port of libtorrent's digest32<N> (sha1_hash.hpp). In libtorrent this is used for info-hashes, piece hashes, peer IDs, DHT node IDs, etc.
A 256-bit digest: info-hash v2 and BitTorrent v2 merkle nodes.
Properties
Functions
KiteTorrent's default fingerprint, "-KT0010-": tag "KT" at version Version.MAJOR.Version.MINOR.Version.TINY (0.0.1) with tag 0.
Deterministic peer-id construction: place the fingerprint at the front and use the caller-supplied randomTail for the remaining bytes verbatim. This is the testable counterpart of generatePeerId. It consults no random number generator.
Generate a 20-byte peer id whose leading bytes are the client fingerprint and whose remaining bytes are URL-safe random characters. This is the port of aux::generate_peer_id(session_settings const&) (src/generate_peer_id.cpp).
Encode a single version component as one fingerprint character. This is the port of the anonymous version_to_char(int v) in src/fingerprint.cpp.