class_docstr: Record validators are a generic mechanism for checking the DHT records including:
    - Enforcing a data schema (e.g. checking content types)
    - Enforcing security requirements (e.g. allowing only the owner to update the record)
class_docstr_tok: ["Record","validators","are","a","generic","mechanism","for","checking","the","DHT","records","including",":","-","Enforcing","a","data","schema","(","e.g",".","checking","content","types",")","-","Enforcing","security","requirements","(","e.g",".","allowing","only","the","owner","to","update","the","record",")"]
docstr: Should return `record.value` stripped of the record's signature.
  strip_value() is only called if validate() was successful.
  
  Note: there's no need to overwrite this method if a validator doesn't use a signature.
  
  strip_value() is called before the DHT returns the record by the application's request.
docstr_tok: ["Should","return","`","record.value","`","stripped","of","the","record","'s","signature",".","strip_value","(",")","is","only","called","if","validate","(",")","was","successful",".","Note",":","there","'s","no","need","to","overwrite","this","method","if","a","validator","does","n't","use","a","signature",".","strip_value","(",")","is","called","before","the","DHT","returns","the","record","by","the","application","'s","request","."]
code: def strip_value(self, record: DHTRecord) -> bytes:
      """
      Should return `record.value` stripped of the record's signature.
      strip_value() is only called if validate() was successful.
  
      Note: there's no need to overwrite this method if a validator doesn't use a signature.
  
      strip_value() is called before the DHT returns the record by the application's request.
      """
  
      return record.value
  
file_path: hivemind/hivemind/dht/validation.py
imports: import dataclasses
  from abc import ABC, abstractmethod
  from typing import Iterable
label_desc: Use image node_id 3 for calling the RecordValidatorBase obj's underlying member method code with example usage: obj.strip_value(record) and returns: record