opendht-hs-0.1.1.1: Haskell bindings for OpenDHT
Copyright(c) Simon Désaulniers 2025
LicenseGPL-3
Maintainersim.desaulniers@gmail.com
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenDHT.Value

Description

This exposes bindings for an OpenDHT Value. This datatype encapsulates data either retrieved from or put on the network through DhtRunner functions.

Documentation

data Value Source #

Constructors

StoredValue 

Fields

MetaValue 

Fields

  • _valueId :: Word64

    The unique identifier of the value taken randomly from the bits space \(\{0,1\}^{64}\).

  • _valueOwner :: PublicKey

    The owner's public key. If the data was signed, this field should contain the exported key.

  • _valueRecipientId :: InfoHash

    The hash of the public key to which the value is dedicated when the value is encrypted. Otherwise, it's the empty InfoHash.

  • _valueUserType :: String

    A user defined field for labelling values.

InputValue 

Fields