bitcoin-php
bitcoin-php copied to clipboard
Bitcoin implementation in PHP
Supported PKCS#11 Key Types https://docs.aws.amazon.com/cloudhsm/latest/userguide/pkcs11-key-types.html Is it possible or not to be able to import HSM ? I need advice from all of you. Thanks.
Here is real transaction - i need to extract all output addresses there is no method like getAdrress() or similar on the output object... ```php $tx = TransactionFactory::fromHex("0100000001476a9d32181de5381c18c3c5aad36fcb78cbadfd1ae69e2659e1d22cea805ffd010000006b48304502210092bb009c9fd961310f7d4b4538c4e9bb9c9020398b9820b5b65c77d2f1b7dfea0220609947199c8d4c857ad7cfce7a0e6bf335f384ddaf6dbf60304bb77701736f33012102947388504d6969d581cc72bc6824a3045f3e9805d9c954f8a5401492c923c678feffffff04006cdc02000000001976a9149bfedc6be7f80062ca77a49a8f6d9604398023fc88ac7ce10b00000000001976a9145e8f7daea735fb6ddb1796b1ae8eeda40234728388ac546af122000000001976a914d43967f1ff57716d38519f02563b6b6b20ef039788ac00a60e00000000001976a91406f93b94aab2a912d9335756dd02cdcff1796f5188aced980700"); $addresses =...
Fixes #805, and also checked every other usage of get_resource_type for same. Added tests covering these cases as well.
This PR removes the Collection classes, whose only usage is by ScriptWitness. This way the ScriptWitness class is a little easier to follow
I'm trying to sign a 2:2 multisig transaction using this library. I've used [this example](https://github.com/Bit-Wasp/bitcoin-php/blob/4ec8a9e5e7a13fa15d9f9a79f9d5953f161f6a0e/examples/doc/tx/007_sign_p2pkh_tx.php) to create the process of signing. For my current script the process of signing should...
This static method is used in CheckerBase OutputClassifier, ScriptInfo/Multisig. The definition is probably in the wrong place..
V1Hasher takes $amount in the constructor, effectively binding that object to that input.. This is at odds with SigHashInterface::calculate() taking $inputToSign as a parameter. Maybe refactor? Also look into precomputing...
https://github.com/Bit-Wasp/bitcoin-php/blob/513a3b708db0eab989680549752f37ee8eb5e74e/src/Crypto/EcAdapter/Impl/Secp256k1/Key/PublicKey.php#L42 The negation is performed on the result of `get_resource_type($pubkey)`, not `get_resource_type($pubkey) == ...`