Skip to content
This repository has been archived by the owner on Oct 24, 2020. It is now read-only.

Class 'BitWasp\Bitcoin\Key\PrivateKeyFactory' not found #113

Open
shewasforever opened this issue Jul 5, 2020 · 1 comment
Open

Class 'BitWasp\Bitcoin\Key\PrivateKeyFactory' not found #113

shewasforever opened this issue Jul 5, 2020 · 1 comment

Comments

@shewasforever
Copy link

When I signed the transaction, there was an error:Class 'BitWasp\Bitcoin\Key\PrivateKeyFactory' not found。
There's something wrong with calling a function like this:
$txSkeleton = $txClient->sign($txSkeleton, $privateKeys);

I went to download the relevant files, but did not find this class,This has puzzled me for a long time. Is there a solution?

@quentinlesceller
Copy link
Contributor

Hi @shewasforever the sample is outdated (use Php 4 and old version of BitWasp).
Replace it with https://github.com/blockcypher/php-client/pull/111/files#diff-9cdc1f36a9510f6bc3bda1713d8922d8R7

use BitWasp\Bitcoin\Key\Factory\PrivateKeyFactory;

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants