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.
derive_mainline_key()
The ARID to derive from
20 bytes of key material
const key = deriveMainlineKey(arid);// => Uint8Array(20) [...] Copy
const key = deriveMainlineKey(arid);// => Uint8Array(20) [...]
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.