Could anyone help me on this issue?
https://github.com/Bit-Wasp/bitcoin-lib-php/issues/19basee on
https://github.com/Bit-Wasp/bitcoin-lib-php/blob/master/examples/electrum.phpI change the magic_byte ='00' to '41' for templecoin
and come up with as follows:
https://templecoin.com/api/electrum/private.phpput the seed as follows (without quotation)
"smart shut inside pride milk linger pretty happen stupid lung warmth zone"
look at the #5
QWTbEwMvmw4aKtao2taKDGM4y41Le7cgGcjPQWGyDsBHQ9mMXH
It is invalid, others are the same as electrum, I can't figure out how to solve this problem.
The source for the private WIF:
$magic_byte = '41';
$string = trim($seed);
$seed = Electrum::decode_mnemonic($string);
for($i = $startidx; $i < $startidx+10; $i++) {
$privkey = Electrum::generate_private_key($seed, $i,0);
$wif=BitcoinLib::private_key_to_WIF($privkey, FALSE, $magic_byte);
echo "$i ::
";
}
I need help on this.
UPDATE: I change the magic_byte='0' will have the same problem.