A validator function takes a DHT key and the value of the record for that key and throws if the record is invalid

interface ValidateFn ((key, value) => Promise<void>)