Documentation
    Preparing search index...

    Function toKey

    • Compute composite key from identity fields.

      Under NIP-5D v0.1.0, the key is 'dTag:hash' (pubkey is ignored).

      Parameters

      Returns string

      Composite key string 'dTag:hash'

      toKey({ dTag: 'chat', hash: 'ff00' })
      // => 'chat:ff00'