Tests need to be added to ensure that the bgls functions and curve API don't mutate their inputs.
Tests need to be added to ensure that the bgls functions and curve API don't mutate their inputs.