Closed joaojoyce closed 7 years ago
Unfortunately that's the best way for now. realize it's a bit messy...
Mostly it's because there are two EcAdapters - one using mdanter/ecc
, one using ext-secp256k1
. You'll see in the BitWasp\Bitcoin\Crypto namespace there's some public interfaces, and then in Impl you find the specific implementations..
EcSerializer works out what adapter to use and returns the concrete implementation of CompactSignatureSerializerInterface
- the default is
\BitWasp\Bitcoin\Crypto\Impl\PhpEcc\Serializer\CompactSignatureSerializer
unless you install https://github.com/bit-wasp/secp256k1-php (a PHP extension to a C library)
That's ok. Thank you!
Hi.
I'm currently verifying a signature in the standard Bitcoin format by doing this:
I couldn't find a better way to get the SignedMessage instance. Is there a better away?
Thank you!