generate

fun generate(addressBytes: ByteArray, infoHash: Sha1Hash): ByteArray

Generate the write token for a querier at addressBytes (the network-byte-order IP the datagram came from, 4 or 16 bytes) asking about infoHash. Port of node::generate_token. Always uses the current secret.