Endo
    Preparing search index...

    Function swissnumFromBytes

    • Wrap raw swissnum bytes as a hardened immutable SwissNum. Use this when the bytes already came from a wire-format source (e.g. the base64url-decoded /s/<…> segment of a sturdyref URI) and only the branded type wrapping is missing.

      For the common case of constructing a swissnum from a printable ASCII string (e.g. a hard-coded test name), use encodeSwissnum, which validates the alphabet for you.

      Parameters

      • bytes: Uint8Array<ArrayBufferLike>

      Returns SwissNum