Closed solovenkoU closed 3 years ago
It looks like the problem is with _spend_public_key_ point decode.
Oh. I had to generate public key from a private key.
This should fix your problem :)
print_r( $subaddress->generate_subaddress(0, 0, $address['viewKey'], $Cryptonote->pk_from_sk($address['spendKey'])) );
Please fix the following:
if($this->ed25519->gmp)
should be this:
if( property_exists($this->ed25519, 'gmp') )
Installed latest master dev via composer. Using PHP 7.4. Wrote a sample script for a test subaddress generation via random seed.
In about 25% of cases having error: