|
|
@ -39,15 +39,20 @@ |
|
|
|
These values are identical for mainnet and testnet; tpub/tprv |
|
|
|
prefixes are no longer used in testnet wallets. |
|
|
|
|
|
|
|
- The Wallet Import Format (WIF) is similarly extended. After a |
|
|
|
base58-encoded key is decoded to binary, its first byte encodes |
|
|
|
the script type: |
|
|
|
- The Wallet Import Format (WIF) is similarly extended for segwit |
|
|
|
scripts. After a base58-encoded key is decoded to binary, its |
|
|
|
first byte encodes the script type: |
|
|
|
|
|
|
|
* 128 + 0: p2pkh |
|
|
|
* 128 + 1: p2wpkh |
|
|
|
* 128 + 2: p2wpkh-p2sh |
|
|
|
* 128 + 2: p2wpkh-in-p2sh |
|
|
|
* 128 + 5: p2sh |
|
|
|
* 128 + 6: p2wsh |
|
|
|
* 128 + 7: p2wsh-p2sh |
|
|
|
* 128 + 7: p2wsh-in-p2sh |
|
|
|
|
|
|
|
The distinction between p2sh and p2pkh in private key means that |
|
|
|
it is not possible to import a p2sh private key and associate it |
|
|
|
to a p2pkh address. |
|
|
|
|
|
|
|
* A new version of the Electrum protocol is required by the client |
|
|
|
(version 1.1). Servers using older versions of the protocol will |
|
|
|