Browse Source

Convert base58_tests from type/payload to scriptPubKey comparison

0.16
Pieter Wuille 7 years ago
parent
commit
6565c5501c
  1. 107
      src/test/base58_tests.cpp
  2. 572
      src/test/data/base58_keys_valid.json

107
src/test/base58_tests.cpp

@ -10,14 +10,15 @@
#include "key.h" #include "key.h"
#include "script/script.h" #include "script/script.h"
#include "test/test_bitcoin.h"
#include "uint256.h" #include "uint256.h"
#include "util.h" #include "util.h"
#include "utilstrencodings.h" #include "utilstrencodings.h"
#include "test/test_bitcoin.h"
#include <univalue.h>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <univalue.h>
extern UniValue read_json(const std::string& jsondata); extern UniValue read_json(const std::string& jsondata);
@ -72,50 +73,6 @@ BOOST_AUTO_TEST_CASE(base58_DecodeBase58)
BOOST_CHECK_EQUAL_COLLECTIONS(result.begin(), result.end(), expected.begin(), expected.end()); BOOST_CHECK_EQUAL_COLLECTIONS(result.begin(), result.end(), expected.begin(), expected.end());
} }
// Visitor to check address type
class TestAddrTypeVisitor : public boost::static_visitor<bool>
{
private:
std::string exp_addrType;
public:
explicit TestAddrTypeVisitor(const std::string &_exp_addrType) : exp_addrType(_exp_addrType) { }
bool operator()(const CKeyID &id) const
{
return (exp_addrType == "pubkey");
}
bool operator()(const CScriptID &id) const
{
return (exp_addrType == "script");
}
bool operator()(const CNoDestination &no) const
{
return (exp_addrType == "none");
}
};
// Visitor to check address payload
class TestPayloadVisitor : public boost::static_visitor<bool>
{
private:
std::vector<unsigned char> exp_payload;
public:
explicit TestPayloadVisitor(std::vector<unsigned char> &_exp_payload) : exp_payload(_exp_payload) { }
bool operator()(const CKeyID &id) const
{
uint160 exp_key(exp_payload);
return exp_key == id;
}
bool operator()(const CScriptID &id) const
{
uint160 exp_key(exp_payload);
return exp_key == id;
}
bool operator()(const CNoDestination &no) const
{
return exp_payload.size() == 0;
}
};
// Goal: check that parsed keys match test payload // Goal: check that parsed keys match test payload
BOOST_AUTO_TEST_CASE(base58_keys_valid_parse) BOOST_AUTO_TEST_CASE(base58_keys_valid_parse)
{ {
@ -127,8 +84,7 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_parse)
for (unsigned int idx = 0; idx < tests.size(); idx++) { for (unsigned int idx = 0; idx < tests.size(); idx++) {
UniValue test = tests[idx]; UniValue test = tests[idx];
std::string strTest = test.write(); std::string strTest = test.write();
if (test.size() < 3) // Allow for extra stuff (useful for comments) if (test.size() < 3) { // Allow for extra stuff (useful for comments)
{
BOOST_ERROR("Bad test: " << strTest); BOOST_ERROR("Bad test: " << strTest);
continue; continue;
} }
@ -136,13 +92,13 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_parse)
std::vector<unsigned char> exp_payload = ParseHex(test[1].get_str()); std::vector<unsigned char> exp_payload = ParseHex(test[1].get_str());
const UniValue &metadata = test[2].get_obj(); const UniValue &metadata = test[2].get_obj();
bool isPrivkey = find_value(metadata, "isPrivkey").get_bool(); bool isPrivkey = find_value(metadata, "isPrivkey").get_bool();
bool isTestnet = find_value(metadata, "isTestnet").get_bool(); bool isTestnet = find_value(metadata, "chain").get_str() == "testnet";
if (isTestnet) if (isTestnet) {
SelectParams(CBaseChainParams::TESTNET); SelectParams(CBaseChainParams::TESTNET);
else } else {
SelectParams(CBaseChainParams::MAIN); SelectParams(CBaseChainParams::MAIN);
if(isPrivkey) }
{ if (isPrivkey) {
bool isCompressed = find_value(metadata, "isCompressed").get_bool(); bool isCompressed = find_value(metadata, "isCompressed").get_bool();
// Must be valid private key // Must be valid private key
BOOST_CHECK_MESSAGE(secret.SetString(exp_base58string), "!SetString:"+ strTest); BOOST_CHECK_MESSAGE(secret.SetString(exp_base58string), "!SetString:"+ strTest);
@ -154,15 +110,12 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_parse)
// Private key must be invalid public key // Private key must be invalid public key
destination = DecodeDestination(exp_base58string); destination = DecodeDestination(exp_base58string);
BOOST_CHECK_MESSAGE(!IsValidDestination(destination), "IsValid privkey as pubkey:" + strTest); BOOST_CHECK_MESSAGE(!IsValidDestination(destination), "IsValid privkey as pubkey:" + strTest);
} } else {
else
{
std::string exp_addrType = find_value(metadata, "addrType").get_str(); // "script" or "pubkey"
// Must be valid public key // Must be valid public key
destination = DecodeDestination(exp_base58string); destination = DecodeDestination(exp_base58string);
CScript script = GetScriptForDestination(destination);
BOOST_CHECK_MESSAGE(IsValidDestination(destination), "!IsValid:" + strTest); BOOST_CHECK_MESSAGE(IsValidDestination(destination), "!IsValid:" + strTest);
BOOST_CHECK_MESSAGE((boost::get<CScriptID>(&destination) != nullptr) == (exp_addrType == "script"), "isScript mismatch" + strTest); BOOST_CHECK_EQUAL(HexStr(script), HexStr(exp_payload));
BOOST_CHECK_MESSAGE(boost::apply_visitor(TestAddrTypeVisitor(exp_addrType), destination), "addrType mismatch" + strTest);
// Public key must be invalid private key // Public key must be invalid private key
secret.SetString(exp_base58string); secret.SetString(exp_base58string);
@ -188,13 +141,13 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_gen)
std::vector<unsigned char> exp_payload = ParseHex(test[1].get_str()); std::vector<unsigned char> exp_payload = ParseHex(test[1].get_str());
const UniValue &metadata = test[2].get_obj(); const UniValue &metadata = test[2].get_obj();
bool isPrivkey = find_value(metadata, "isPrivkey").get_bool(); bool isPrivkey = find_value(metadata, "isPrivkey").get_bool();
bool isTestnet = find_value(metadata, "isTestnet").get_bool(); bool isTestnet = find_value(metadata, "chain").get_str() == "testnet";
if (isTestnet) if (isTestnet) {
SelectParams(CBaseChainParams::TESTNET); SelectParams(CBaseChainParams::TESTNET);
else } else {
SelectParams(CBaseChainParams::MAIN); SelectParams(CBaseChainParams::MAIN);
if(isPrivkey) }
{ if (isPrivkey) {
bool isCompressed = find_value(metadata, "isCompressed").get_bool(); bool isCompressed = find_value(metadata, "isCompressed").get_bool();
CKey key; CKey key;
key.Set(exp_payload.begin(), exp_payload.end(), isCompressed); key.Set(exp_payload.begin(), exp_payload.end(), isCompressed);
@ -202,30 +155,12 @@ BOOST_AUTO_TEST_CASE(base58_keys_valid_gen)
CBitcoinSecret secret; CBitcoinSecret secret;
secret.SetKey(key); secret.SetKey(key);
BOOST_CHECK_MESSAGE(secret.ToString() == exp_base58string, "result mismatch: " + strTest); BOOST_CHECK_MESSAGE(secret.ToString() == exp_base58string, "result mismatch: " + strTest);
} } else {
else
{
std::string exp_addrType = find_value(metadata, "addrType").get_str();
CTxDestination dest; CTxDestination dest;
if(exp_addrType == "pubkey") CScript exp_script(exp_payload.begin(), exp_payload.end());
{ ExtractDestination(exp_script, dest);
dest = CKeyID(uint160(exp_payload));
}
else if(exp_addrType == "script")
{
dest = CScriptID(uint160(exp_payload));
}
else if(exp_addrType == "none")
{
dest = CNoDestination();
}
else
{
BOOST_ERROR("Bad addrtype: " << strTest);
continue;
}
std::string address = EncodeDestination(dest); std::string address = EncodeDestination(dest);
BOOST_CHECK_MESSAGE(address == exp_base58string, "mismatch: " + strTest); BOOST_CHECK_EQUAL(address, exp_base58string);
} }
} }

572
src/test/data/base58_keys_valid.json

@ -1,452 +1,426 @@
[ [
[ [
"1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i", "1AGNa15ZQXAZUgFiqJ2i7Z2DPU2J6hW62i",
"65a16059864a2fdbc7c99a4723a8395bc6f188eb", "76a91465a16059864a2fdbc7c99a4723a8395bc6f188eb88ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou", "3CMNFxN1oHBc4R1EpboAL5yzHGgE611Xou",
"74f209f6ea907e2ea48f74fae05782ae8a665257", "a91474f209f6ea907e2ea48f74fae05782ae8a66525787",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"mo9ncXisMeAoXwqcV5EWuyncbmCcQN4rVs", "mo9ncXisMeAoXwqcV5EWuyncbmCcQN4rVs",
"53c0307d6851aa0ce7825ba883c6bd9ad242b486", "76a91453c0307d6851aa0ce7825ba883c6bd9ad242b48688ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"2N2JD6wb56AfK4tfmM6PwdVmoYk2dCKf4Br", "2N2JD6wb56AfK4tfmM6PwdVmoYk2dCKf4Br",
"6349a418fc4578d10a372b54b45c280cc8c4382f", "a9146349a418fc4578d10a372b54b45c280cc8c4382f87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr", "5Kd3NBUAdUnhyzenEwVLy9pBKxSwXvE9FMPyR4UKZvpe6E3AgLr",
"eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19", "eddbdc1168f1daeadbd3e44c1e3f8f5a284c2029f78ad26af98583a499de5b19",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD", "Kz6UJmQACJmLtaQj5A3JAge4kVTNQ8gbvXuwbmCj7bsaabudb3RD",
"55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4", "55c9bccb9ed68446d1b75273bbce89d7fe013a8acd1625514420fb2aca1a21c4",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"9213qJab2HNEpMpYNBa7wHGFKKbkDn24jpANDs2huN3yi4J11ko", "9213qJab2HNEpMpYNBa7wHGFKKbkDn24jpANDs2huN3yi4J11ko",
"36cb93b9ab1bdabf7fb9f2c04f1b9cc879933530ae7842398eef5a63a56800c2", "36cb93b9ab1bdabf7fb9f2c04f1b9cc879933530ae7842398eef5a63a56800c2",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"cTpB4YiyKiBcPxnefsDpbnDxFDffjqJob8wGCEDXxgQ7zQoMXJdH", "cTpB4YiyKiBcPxnefsDpbnDxFDffjqJob8wGCEDXxgQ7zQoMXJdH",
"b9f4892c9e8282028fea1d2667c4dc5213564d41fc5783896a0d843fc15089f3", "b9f4892c9e8282028fea1d2667c4dc5213564d41fc5783896a0d843fc15089f3",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ", "1Ax4gZtb7gAit2TivwejZHYtNNLT18PUXJ",
"6d23156cbbdcc82a5a47eee4c2c7c583c18b6bf4", "76a9146d23156cbbdcc82a5a47eee4c2c7c583c18b6bf488ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy", "3QjYXhTkvuj8qPaXHTTWb5wjXhdsLAAWVy",
"fcc5460dd6e2487c7d75b1963625da0e8f4c5975", "a914fcc5460dd6e2487c7d75b1963625da0e8f4c597587",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"n3ZddxzLvAY9o7184TB4c6FJasAybsw4HZ", "n3ZddxzLvAY9o7184TB4c6FJasAybsw4HZ",
"f1d470f9b02370fdec2e6b708b08ac431bf7a5f7", "76a914f1d470f9b02370fdec2e6b708b08ac431bf7a5f788ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"2NBFNJTktNa7GZusGbDbGKRZTxdK9VVez3n", "2NBFNJTktNa7GZusGbDbGKRZTxdK9VVez3n",
"c579342c2c4c9220205e2cdc285617040c924a0a", "a914c579342c2c4c9220205e2cdc285617040c924a0a87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc", "5K494XZwps2bGyeL71pWid4noiSNA2cfCibrvRWqcHSptoFn7rc",
"a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e", "a326b95ebae30164217d7a7f57d72ab2b54e3be64928a19da0210b9568d4015e",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi", "L1RrrnXkcKut5DEMwtDthjwRcTTwED36thyL1DebVrKuwvohjMNi",
"7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4", "7d998b45c219a1e38e99e7cbd312ef67f77a455a9b50c730c27f02c6f730dfb4",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"93DVKyFYwSN6wEo3E2fCrFPUp17FtrtNi2Lf7n4G3garFb16CRj", "93DVKyFYwSN6wEo3E2fCrFPUp17FtrtNi2Lf7n4G3garFb16CRj",
"d6bca256b5abc5602ec2e1c121a08b0da2556587430bcf7e1898af2224885203", "d6bca256b5abc5602ec2e1c121a08b0da2556587430bcf7e1898af2224885203",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"cTDVKtMGVYWTHCb1AFjmVbEbWjvKpKqKgMaR3QJxToMSQAhmCeTN", "cTDVKtMGVYWTHCb1AFjmVbEbWjvKpKqKgMaR3QJxToMSQAhmCeTN",
"a81ca4e8f90181ec4b61b6a7eb998af17b2cb04de8a03b504b9e34c4c61db7d9", "a81ca4e8f90181ec4b61b6a7eb998af17b2cb04de8a03b504b9e34c4c61db7d9",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv", "1C5bSj1iEGUgSTbziymG7Cn18ENQuT36vv",
"7987ccaa53d02c8873487ef919677cd3db7a6912", "76a9147987ccaa53d02c8873487ef919677cd3db7a691288ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks", "3AnNxabYGoTxYiTEZwFEnerUoeFXK2Zoks",
"63bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb", "a91463bcc565f9e68ee0189dd5cc67f1b0e5f02f45cb87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"n3LnJXCqbPjghuVs8ph9CYsAe4Sh4j97wk", "n3LnJXCqbPjghuVs8ph9CYsAe4Sh4j97wk",
"ef66444b5b17f14e8fae6e7e19b045a78c54fd79", "76a914ef66444b5b17f14e8fae6e7e19b045a78c54fd7988ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"2NB72XtkjpnATMggui83aEtPawyyKvnbX2o", "2NB72XtkjpnATMggui83aEtPawyyKvnbX2o",
"c3e55fceceaa4391ed2a9677f4a4d34eacd021a0", "a914c3e55fceceaa4391ed2a9677f4a4d34eacd021a087",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9", "5KaBW9vNtWNhc3ZEDyNCiXLPdVPHCikRxSBWwV9NrpLLa4LsXi9",
"e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252", "e75d936d56377f432f404aabb406601f892fd49da90eb6ac558a733c93b47252",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT", "L1axzbSyynNYA8mCAhzxkipKkfHtAXYF4YQnhSKcLV8YXA874fgT",
"8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c", "8248bd0375f2f75d7e274ae544fb920f51784480866b102384190b1addfbaa5c",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"927CnUkUbasYtDwYwVn2j8GdTuACNnKkjZ1rpZd2yBB1CLcnXpo", "927CnUkUbasYtDwYwVn2j8GdTuACNnKkjZ1rpZd2yBB1CLcnXpo",
"44c4f6a096eac5238291a94cc24c01e3b19b8d8cef72874a079e00a242237a52", "44c4f6a096eac5238291a94cc24c01e3b19b8d8cef72874a079e00a242237a52",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"cUcfCMRjiQf85YMzzQEk9d1s5A4K7xL5SmBCLrezqXFuTVefyhY7", "cUcfCMRjiQf85YMzzQEk9d1s5A4K7xL5SmBCLrezqXFuTVefyhY7",
"d1de707020a9059d6d3abaf85e17967c6555151143db13dbb06db78df0f15c69", "d1de707020a9059d6d3abaf85e17967c6555151143db13dbb06db78df0f15c69",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu", "1Gqk4Tv79P91Cc1STQtU3s1W6277M2CVWu",
"adc1cc2081a27206fae25792f28bbc55b831549d", "76a914adc1cc2081a27206fae25792f28bbc55b831549d88ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk", "33vt8ViH5jsr115AGkW6cEmEz9MpvJSwDk",
"188f91a931947eddd7432d6e614387e32b244709", "a914188f91a931947eddd7432d6e614387e32b24470987",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"mhaMcBxNh5cqXm4aTQ6EcVbKtfL6LGyK2H", "mhaMcBxNh5cqXm4aTQ6EcVbKtfL6LGyK2H",
"1694f5bc1a7295b600f40018a618a6ea48eeb498", "76a9141694f5bc1a7295b600f40018a618a6ea48eeb49888ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"2MxgPqX1iThW3oZVk9KoFcE5M4JpiETssVN", "2MxgPqX1iThW3oZVk9KoFcE5M4JpiETssVN",
"3b9b3fd7a50d4f08d1a5b0f62f644fa7115ae2f3", "a9143b9b3fd7a50d4f08d1a5b0f62f644fa7115ae2f387",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR", "5HtH6GdcwCJA4ggWEL1B3jzBBUB8HPiBi9SBc5h9i4Wk4PSeApR",
"091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0", "091035445ef105fa1bb125eccfb1882f3fe69592265956ade751fd095033d8d0",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8", "L2xSYmMeVo3Zek3ZTsv9xUrXVAmrWxJ8Ua4cw8pkfbQhcEFhkXT8",
"ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af", "ab2b4bcdfc91d34dee0ae2a8c6b6668dadaeb3a88b9859743156f462325187af",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"92xFEve1Z9N8Z641KQQS7ByCSb8kGjsDzw6fAmjHN1LZGKQXyMq", "92xFEve1Z9N8Z641KQQS7ByCSb8kGjsDzw6fAmjHN1LZGKQXyMq",
"b4204389cef18bbe2b353623cbf93e8678fbc92a475b664ae98ed594e6cf0856", "b4204389cef18bbe2b353623cbf93e8678fbc92a475b664ae98ed594e6cf0856",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"cVM65tdYu1YK37tNoAyGoJTR13VBYFva1vg9FLuPAsJijGvG6NEA", "cVM65tdYu1YK37tNoAyGoJTR13VBYFva1vg9FLuPAsJijGvG6NEA",
"e7b230133f1b5489843260236b06edca25f66adb1be455fbd38d4010d48faeef", "e7b230133f1b5489843260236b06edca25f66adb1be455fbd38d4010d48faeef",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4", "1JwMWBVLtiqtscbaRHai4pqHokhFCbtoB4",
"c4c1b72491ede1eedaca00618407ee0b772cad0d", "76a914c4c1b72491ede1eedaca00618407ee0b772cad0d88ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y", "3QCzvfL4ZRvmJFiWWBVwxfdaNBT8EtxB5y",
"f6fe69bcb548a829cce4c57bf6fff8af3a5981f9", "a914f6fe69bcb548a829cce4c57bf6fff8af3a5981f987",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"mizXiucXRCsEriQCHUkCqef9ph9qtPbZZ6", "mizXiucXRCsEriQCHUkCqef9ph9qtPbZZ6",
"261f83568a098a8638844bd7aeca039d5f2352c0", "76a914261f83568a098a8638844bd7aeca039d5f2352c088ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"2NEWDzHWwY5ZZp8CQWbB7ouNMLqCia6YRda", "2NEWDzHWwY5ZZp8CQWbB7ouNMLqCia6YRda",
"e930e1834a4d234702773951d627cce82fbb5d2e", "a914e930e1834a4d234702773951d627cce82fbb5d2e87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg", "5KQmDryMNDcisTzRp3zEq9e4awRmJrEVU1j5vFRTKpRNYPqYrMg",
"d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0", "d1fab7ab7385ad26872237f1eb9789aa25cc986bacc695e07ac571d6cdac8bc0",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi", "L39Fy7AC2Hhj95gh3Yb2AU5YHh1mQSAHgpNixvm27poizcJyLtUi",
"b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3", "b0bbede33ef254e8376aceb1510253fc3550efd0fcf84dcd0c9998b288f166b3",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"91cTVUcgydqyZLgaANpf1fvL55FH53QMm4BsnCADVNYuWuqdVys", "91cTVUcgydqyZLgaANpf1fvL55FH53QMm4BsnCADVNYuWuqdVys",
"037f4192c630f399d9271e26c575269b1d15be553ea1a7217f0cb8513cef41cb", "037f4192c630f399d9271e26c575269b1d15be553ea1a7217f0cb8513cef41cb",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"cQspfSzsgLeiJGB2u8vrAiWpCU4MxUT6JseWo2SjXy4Qbzn2fwDw", "cQspfSzsgLeiJGB2u8vrAiWpCU4MxUT6JseWo2SjXy4Qbzn2fwDw",
"6251e205e8ad508bab5596bee086ef16cd4b239e0cc0c5d7c4e6035441e7d5de", "6251e205e8ad508bab5596bee086ef16cd4b239e0cc0c5d7c4e6035441e7d5de",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r", "19dcawoKcZdQz365WpXWMhX6QCUpR9SY4r",
"5eadaf9bb7121f0f192561a5a62f5e5f54210292", "76a9145eadaf9bb7121f0f192561a5a62f5e5f5421029288ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3", "37Sp6Rv3y4kVd1nQ1JV5pfqXccHNyZm1x3",
"3f210e7277c899c3a155cc1c90f4106cbddeec6e", "a9143f210e7277c899c3a155cc1c90f4106cbddeec6e87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"myoqcgYiehufrsnnkqdqbp69dddVDMopJu", "myoqcgYiehufrsnnkqdqbp69dddVDMopJu",
"c8a3c2a09a298592c3e180f02487cd91ba3400b5", "76a914c8a3c2a09a298592c3e180f02487cd91ba3400b588ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"2N7FuwuUuoTBrDFdrAZ9KxBmtqMLxce9i1C", "2N7FuwuUuoTBrDFdrAZ9KxBmtqMLxce9i1C",
"99b31df7c9068d1481b596578ddbb4d3bd90baeb", "a91499b31df7c9068d1481b596578ddbb4d3bd90baeb87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "testnet"
"isTestnet": true
} }
], ],
[ [
"5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4", "5KL6zEaMtPRXZKo1bbMq7JDjjo1bJuQcsgL33je3oY8uSJCR5b4",
"c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae", "c7666842503db6dc6ea061f092cfb9c388448629a6fe868d068c42a488b478ae",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2", "KwV9KAfwbwt51veZWNscRTeZs9CKpojyu1MsPnaKTF5kz69H1UN2",
"07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd", "07f0803fc5399e773555ab1e8939907e9badacc17ca129e67a2f5f2ff84351dd",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": false "chain": "mainnet"
} }
], ],
[ [
"93N87D6uxSBzwXvpokpzg8FFmfQPmvX4xHoWQe3pLdYpbiwT5YV", "93N87D6uxSBzwXvpokpzg8FFmfQPmvX4xHoWQe3pLdYpbiwT5YV",
"ea577acfb5d1d14d3b7b195c321566f12f87d2b77ea3a53f68df7ebf8604a801", "ea577acfb5d1d14d3b7b195c321566f12f87d2b77ea3a53f68df7ebf8604a801",
{ {
"isCompressed": false, "isCompressed": false,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"cMxXusSihaX58wpJ3tNuuUcZEQGt6DKJ1wEpxys88FFaQCYjku9h", "cMxXusSihaX58wpJ3tNuuUcZEQGt6DKJ1wEpxys88FFaQCYjku9h",
"0b3b34f0958d8a268193a9814da92c3e8b58b4a4378a542863e34ac289cd830c", "0b3b34f0958d8a268193a9814da92c3e8b58b4a4378a542863e34ac289cd830c",
{ {
"isCompressed": true, "isCompressed": true,
"isPrivkey": true, "isPrivkey": true,
"isTestnet": true "chain": "testnet"
} }
], ],
[ [
"13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE", "13p1ijLwsnrcuyqcTvJXkq2ASdXqcnEBLE",
"1ed467017f043e91ed4c44b4e8dd674db211c4e6", "76a9141ed467017f043e91ed4c44b4e8dd674db211c4e688ac",
{ {
"addrType": "pubkey", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
], ],
[ [
"3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G", "3ALJH9Y951VCGcVZYAdpA3KchoP9McEj1G",
"5ece0cadddc415b1980f001785947120acdb36fc", "a9145ece0cadddc415b1980f001785947120acdb36fc87",
{ {
"addrType": "script", "isPrivkey": false,
"isPrivkey": false, "chain": "mainnet"
"isTestnet": false
} }
] ]
] ]

Loading…
Cancel
Save