Test
This commit is contained in:
@@ -182,7 +182,7 @@ CPubKey OracleBatonPk(char *batonaddr,struct CCcontract_info *cp,CPubKey mypk)
|
|||||||
secp256k1_ec_pubkey_serialize(ctx,(unsigned char*)batonpk.begin(),&clen,&pubkey,SECP256K1_EC_COMPRESSED);
|
secp256k1_ec_pubkey_serialize(ctx,(unsigned char*)batonpk.begin(),&clen,&pubkey,SECP256K1_EC_COMPRESSED);
|
||||||
cp->unspendablepk2 = batonpk;
|
cp->unspendablepk2 = batonpk;
|
||||||
Getscriptaddress(batonaddr,CScript() << ParseHex(HexStr(batonpk)) << OP_CHECKSIG);
|
Getscriptaddress(batonaddr,CScript() << ParseHex(HexStr(batonpk)) << OP_CHECKSIG);
|
||||||
fprintf(stderr,"batonpk.(%s)\n",(char *)HexStr(batonpk).c_str());
|
fprintf(stderr,"batonpk.(%s) -> %s\n",(char *)HexStr(batonpk).c_str(),batonaddr);
|
||||||
strcpy(cp->unspendableaddr2,batonaddr);
|
strcpy(cp->unspendableaddr2,batonaddr);
|
||||||
} else fprintf(stderr,"error creating pubkey\n");
|
} else fprintf(stderr,"error creating pubkey\n");
|
||||||
return(batonpk);
|
return(batonpk);
|
||||||
|
|||||||
Reference in New Issue
Block a user