Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Solved How to convert a QByteArray to base58?

    General and Desktop
    4
    5
    226
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      Infinity last edited by Infinity

      Is there a built in function in Qt to convert a QByteArray or a QString to a base 58 string?

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Infinity last edited by

        @Infinity Google says no, as in you previous thread use some library

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 3
        • mrjj
          mrjj Lifetime Qt Champion last edited by

          Hi
          You could use something like this and change it to use QString or simpy convert QString to std::string
          https://gist.github.com/miguelmota/ff591873da4f76393ce48efe62d49fd1

          1 Reply Last reply Reply Quote 1
          • I
            Infinity last edited by

            I ended up using this library. Just in case somebody else faces a similar problem.

            https://github.com/d3fault/bitcoin-base58-check-transcoder

            JonB 1 Reply Last reply Reply Quote 4
            • JonB
              JonB @Infinity last edited by

              @Infinity
              Your link explains a lot --- I had been wondering why anyone would want to use Base58 for anything... !

              1 Reply Last reply Reply Quote 1
              • First post
                Last post