 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
      View Source
      
  var ErrBadRecord = errors.New("bad dht record")
    ErrBadRecord is returned any time a dht record is found to be incorrectly formatted or signed.
      View Source
      
  var ErrInvalidRecordType = errors.New("invalid record keytype")
    ErrInvalidRecordType is returned if a DHTRecord keys prefix is not found in the Validator map of the DHT.
Functions ¶
func MakePutRecord ¶
MakePutRecord creates and signs a dht record for the given key/value pair
func RecordBlobForSig ¶
RecordBlobForSig returns the blob protected by the record signature
Types ¶
type Validator ¶
type Validator map[string]ValidatorFunc
Validator is an object that helps ensure routing records are valid. It is a collection of validator functions, each of which implements its own notion of validity.
 Click to show internal directories. 
   Click to hide internal directories.