Comments (2)
I'll take a look at it later today.
from bitcoinecdsa.php.
I did some tweaking and found:
public function getWif()
{
if(!isset($this->k))
{
throw new \Exception('No Private Key was defined');
}
$k = $this->k;
$secretKey = '80' . $k;
$secretKey .= substr($this->hash256(hex2bin($secretKey)), 0, 8);
//return strrev($this->base58_encode($secretKey));
// if I remove strrev, then the WIF generated is readable by Mycelium
return ($this->base58_encode($secretKey));
}
But the above change, changes the Bitcoin address from
13GZGS96Ui9CuudonrfuQ1CeCcSkHQkt2v
to Uncompressed Address
1HxrEkR2wpoyVVT9QgmkhjCihSCVYoWiPo
in mycelium app.
from bitcoinecdsa.php.
Related Issues (20)
- Not really an issue - Just encouragement
- Method: checkSignatureForRawMessage() fails when a signed message is provided. HOT 3
- Diffie Hellman HOT 2
- On 32bit systems int overflows when generating random 256bits hexa string HOT 2
- different results HOT 3
- [Warning] gmp_add(): Unable to convert variable to GMP HOT 1
- How to tweak this library for Litecoin? HOT 4
- How we can check balance of generate address? HOT 3
- Question regarding your code HOT 1
- Undefined function 'BitcoinPHP\BitcoinECDSA\getWif'. HOT 2
- Addresses which start with "bc1" are not validated
- Call to undefined function BitcoinPHP\BitcoinECDSA\getWif() HOT 1
- how to print private and public key HOT 1
- bigcoint HOT 1
- Send My Balance To another wallet HOT 1
- Fallback if not gmp extenstion
- bech32 address
- About the function signHash()
- Support point at infinity
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoinecdsa.php.