Very partial CC signing support

This commit is contained in:
jl777
2019-07-06 03:34:59 -11:00
parent 6db0b511b9
commit 252f51adc5
4 changed files with 27 additions and 2 deletions

View File

@@ -437,9 +437,15 @@ std::vector<uint8_t> Mypubkey()
return(pubkey);
}
extern CKey NSPV_key;
bool Myprivkey(uint8_t myprivkey[])
{
char coinaddr[64],checkaddr[64]; std::string strAddress; char *dest; int32_t i,n; CBitcoinAddress address; CKeyID keyID; CKey vchSecret; uint8_t buf33[33];
if ( KOMODO_NSPV != 0 )
{
memcpy(myprivkey,NSPV_key.vch,32);
return true;
}
if ( Getscriptaddress(coinaddr,CScript() << Mypubkey() << OP_CHECKSIG) != 0 )
{
n = (int32_t)strlen(coinaddr);