@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Function normalizeToDescriptor

    • Normalize a value to descriptor format. If already a descriptor, return as-is. If hex pubkey, wrap as tr(pubkey). Throws when the value is empty or not a string so we never produce malformed descriptors like tr() that downstream parsers would reject.

      Parameters

      • value: string

      Returns string