Hubert - Distributed Infrastructure for Secure Multiparty Transactions - v1.0.0-alpha.20
    Preparing search index...

    Function createReferenceEnvelope

    • Creates a reference envelope that points to content stored in IPFS.

      Reference envelopes are small envelopes stored in the DHT that contain a pointer to the actual envelope stored in IPFS. This allows the hybrid storage layer to transparently handle large envelopes that exceed the DHT size limit.

      Port of create_reference_envelope() from hybrid/reference.rs lines 31-39.

      Format

      '' [
          'dereferenceVia': "ipfs",
          'id': <ARID>,
          "size": <number>
      ]
      

      Parameters

      • referenceArid: ARID

        The ARID used to look up the actual envelope in IPFS

      • actualSize: number

        Size of the actual envelope in bytes (for diagnostics)

      Returns Envelope

      A reference envelope that can be stored in the DHT