This commit is contained in:
jl777
2018-07-22 02:53:55 -11:00
parent 44a9fd7c3b
commit 5cf0c1db94
2 changed files with 16 additions and 1 deletions

View File

@@ -78,6 +78,17 @@ uint256 Parseuint256(char *hexstr)
return(txid);
}
CPubKey pubkey2pk(std::vector<uint8_t> pubkey)
{
CPubKey pk; int32_t i,n; uint8_t *dest,*pubkey33;
n = pubkey.size();
dest = (uint8_t *)pk.begin();
pubkey33 = (uint8_t *)pubkey.data();
for (i=0; i<n; i++)
dest[i] = pubkey33[i];
return(pk);
}
bool Getscriptaddress(char *destaddr,const CScript &scriptPubKey)
{
CTxDestination address; txnouttype whichType;