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

    Function deriveMainlineKey

    • Derive Mainline DHT key material from an ARID.

      Returns 20 bytes of key material (SHA-1 compatible length).

      Port of derive_mainline_key() from arid_derivation.rs lines 39-45.

      Parameters

      • arid: ARID

        The ARID to derive from

      Returns Uint8Array

      20 bytes of key material

      const key = deriveMainlineKey(arid);
      // => Uint8Array(20) [...]