buildPutQuery
fun buildPutQuery(transactionId: ByteArray, nodeId: Sha1Hash, token: ByteArray, item: DhtItem, cas: Long? = null): Entry
Build a put query: a{id, token, v, [k, seq, sig, salt, cas]}. Faithful to put_data::invoke: it splices the value in as its exact bencoding, so the signature still verifies, and it adds the mutable extras only for a MutableItem.
It inserts DhtItem.bencodedValue via Entry.Preformatted so the v bytes are byte-identical to what was signed. Re-encoding could reorder dict keys and break the signature.