]> Git Repo - VerusCoin.git/commitdiff
Another approach to CC signature
authormiketout <[email protected]>
Thu, 29 Aug 2019 22:02:53 +0000 (15:02 -0700)
committermiketout <[email protected]>
Thu, 29 Aug 2019 22:02:53 +0000 (15:02 -0700)
src/cc/CCutils.cpp
src/script/sign.cpp

index 4ab447fc3634493ed9f51f634ae66c99536ab278..5333a094a85dc470613e9619f95b5c62b3f859a7 100644 (file)
@@ -53,7 +53,8 @@ CC *MakeCCcond0(uint8_t evalcode)
 {
     std::vector<CC*> pks;
     CC *condCC = CCNewEval(E_MARSHAL(ss << evalcode));
-    return CCNewThreshold(1, {condCC});
+    CC *Sig = CCNewThreshold(0, pks);
+    return CCNewThreshold(2, {condCC, Sig});
 }
 
 CTxOut MakeCC1vout(uint8_t evalcode,CAmount nValue,CPubKey pk)
index 718ea4f27a940318e2436b75324ffc4b7ee9d205..7e2dfdd76881bfbf7d47acb458067bee49a86283 100644 (file)
@@ -97,10 +97,9 @@ CC *CCcond1(uint8_t evalcode,CPubKey pk)
     return CCNewThreshold(2, {condCC, Sig});
 }
 
-CC *CCcond0(uint8_t evalcode, CPubKey pk)
+CC *CCcond0(uint8_t evalcode)
 {
     std::vector<CC*> pks;
-    pks.push_back(CCNewSecp256k1(pk));
     CC *condCC = CCNewEval(E_MARSHAL(ss << evalcode));
     CC *Sig = CCNewThreshold(0, pks);
     return CCNewThreshold(2, {condCC, Sig});
This page took 0.029777 seconds and 4 git commands to generate.