papacarp / pooltool.io

A public repo to keep track of issues and feature requests in pooltool
76 stars 75 forks source link

Use Daedalus' bundled libsodium before system-wide libsodium #119

Closed dandyrandy closed 3 years ago

dandyrandy commented 3 years ago

Two thoughts on your typical Mac user:

  1. They're likely to have installed the Daedalus wallet to get the CLI tools (to pull in the ledger)
  2. The libsodium that Homebrew will install doesn't include support for VRF, while the one that's bundled with Daedalus does

At the least, this was my experience, so I updated the leaderlog tool to try using Daedalus' libsodium first. I also added some additional error logging in case something went awry so it's easier to tell what's gone wrong.

This should also make it so that Mac users don't need to puzzle over why a python script is trying to load a Linux-style so lib when they're running MacOS, which doesn't use those at all :)