Closed jjoek closed 2 years ago
Trying to generate the secret key from the keypair and I get the above exception: See my code below
if(file_exists($keypair)) { $keypair = file_get_contents($keypair, FALSE, NULL); dd(Keypair::fromSecretKey($keypair)); }
After running this, I get that sodium exception.
Got it, needed to pass in the $keypair as an array and thus only needed to json_decode() my keypair
$keypair
json_decode()
Trying to generate the secret key from the keypair and I get the above exception: See my code below
After running this, I get that sodium exception.