jl777 8 years ago
parent
commit
e639afe3c5
  1. 3
      iguana/iguana_sign.c
  2. 269
      iguana/tests/ratifyX.json

3
iguana/iguana_sign.c

@ -23,7 +23,7 @@ int32_t iguana_vinparse(struct iguana_info *coin,int32_t rwflag,uint8_t *seriali
int32_t p2shlen,len = 0; uint32_t tmp;
len += iguana_rwbignum(rwflag,&serialized[len],sizeof(msg->prev_hash),msg->prev_hash.bytes);
len += iguana_rwnum(rwflag,&serialized[len],sizeof(msg->prev_vout),&msg->prev_vout);
char str[65]; printf("prev_hash.(%s) v%d\n",bits256_str(str,msg->prev_hash),msg->prev_vout);
//char str[65]; printf("prev_hash.(%s) v%d\n",bits256_str(str,msg->prev_hash),msg->prev_vout);
if ( rwflag == 1 )
{
tmp = msg->scriptlen + msg->userdatalen + msg->p2shlen;
@ -37,7 +37,6 @@ int32_t iguana_vinparse(struct iguana_info *coin,int32_t rwflag,uint8_t *seriali
}
}
len += iguana_rwvarint32(rwflag,&serialized[len],&tmp);
printf("tmp %x %d\n",tmp,tmp);
if ( rwflag == 0 )
{
/*if ( msg->p2shlen != 0 )

269
iguana/tests/ratifyX.json

@ -0,0 +1,269 @@
{
"agent": "dpow",
"method": "ratify",
"round": "X",
"minsigs": 8,
"start": 1479143601,
"ratified": [
{
"handle": "testA",
"pubkey": "03b7621b44118017a16043f19b30cc8a4cfe068ac4e42417bae16ba460c80f3828",
"destprevtxid0": "3e9475fd4798b3b451fc3c85e5569f7a80650cae5787f705869b3a7e3b190dd7",
"destprevvout0": 0,
"srcprevtxid0": "034b2505b15b7dbc320aab1697c2e2c9426c9aa9184219387a287eef2905f85b",
"srcprevvout0": 1
},
{
"handle": "testB",
"pubkey": "02ebfc784a4ba768aad88d44d1045d240d47b26e248cafaf1c5169a42d7a61d344"
},
{
"handle": "artik_AE",
"pubkey": "029acf1dcd9f5ff9c455f8bb717d4ae0c703e089d16cf8424619c491dff5994c90"
},
{
"handle": "artik_EU",
"pubkey": "03f54b2c24f82632e3cdebe4568ba0acf487a80f8a89779173cdb78f74514847ce"
},
{
"handle": "artik_NA",
"pubkey": "0224e31f93eff0cc30eaf0b2389fbc591085c0e122c4d11862c1729d090106c842"
},
{
"handle": "artik_SH",
"pubkey": "02bdd8840a34486f38305f311c0e2ae73e84046f6e9c3dd3571e32e58339d20937"
},
{
"handle": "badass_EU",
"pubkey": "0209d48554768dd8dada988b98aca23405057ac4b5b46838a9378b95c3e79b9b9e"
},
{
"handle": "badass_NA",
"pubkey": "02afa1a9f948e1634a29dc718d218e9d150c531cfa852843a1643a02184a63c1a7"
},
{
"handle": "badass_SH",
"pubkey": "026b49dd3923b78a592c1b475f208e23698d3f085c4c3b4906a59faf659fd9530b"
},
{
"handle": "crackers_EU",
"pubkey": "0340c66cf2c41c41efb420af57867baa765e8468c12aa996bfd816e1e07e410728"
},
{
"handle": "crackers_NA",
"pubkey": "029e1c01131974f4cd3f564cc0c00eb87a0f9721043fbc1ca60f9bd0a1f73f64a1"
},
{
"handle": "crackers_SH",
"pubkey": "02313d72f9a16055737e14cfc528dcd5d0ef094cfce23d0348fe974b6b1a32e5f0"
},
{
"handle": "durerus_EU",
"pubkey": "02bcbd287670bdca2c31e5d50130adb5dea1b53198f18abeec7211825f47485d57"
},
{
"handle": "etszombi_EU",
"pubkey": "0281b1ad28d238a2b217e0af123ce020b79e91b9b10ad65a7917216eda6fe64bf7"
},
{
"handle": "etszombi_NA",
"pubkey": "02757999e651200ac24ff808e5dc7762ba64da1b940c7b150980f636a3866d6de9"
},
{
"handle": "etszombii_AE",
"pubkey": "0252b6185bf8ea7efe8bbc345ddc8da87329149f30233088387abd716d4aa9e974"
},
{
"handle": "etszombii_SH",
"pubkey": "025d7a193c0757f7437fad3431f027e7b5ed6c925b77daba52a8755d24bf682dde"
},
{
"handle": "farl4web_EU",
"pubkey": "0300ecf9121cccf14cf9423e2adb5d98ce0c4e251721fa345dec2e03abeffbab3f"
},
{
"handle": "farl4web_SH",
"pubkey": "0396bb5ed3c57aa1221d7775ae0ff751e4c7dc9be220d0917fa8bbdf670586c030"
},
{
"handle": "fullmoon_AE",
"pubkey": "0204a908350b8142698fdb6fabefc97fe0e04f537adc7522ba7a1e8f3bec003d4a"
},
{
"handle": "fullmoon_NA",
"pubkey": "03e928cdb694cd3805a03e6f792ac0ba177c3261d98401e9a5450f512fdb89bd09"
},
{
"handle": "fullmoon_SH",
"pubkey": "0396699a1792207b39cd20629a51e0825e075d3a80f0237a95d4385ad2a12d88fb"
},
{
"handle": "grewal_AE",
"pubkey": "034e804867936874d2dcef56ab5696f5fba059db069eb4f5c2887c61e6c60638b1"
},
{
"handle": "grewal_NA",
"pubkey": "03adc0834c203d172bce814df7c7a5e13dc603105e6b0adabc942d0421aefd2132"
},
{
"handle": "grewal_SH",
"pubkey": "03212a73f5d38a675ee3cdc6e82542a96c38c3d1c79d25a1ed2e42fcf6a8be4e68"
},
{
"handle": "indenode_EU",
"pubkey": "0221387ff95c44cb52b86552e3ec118a3c311ca65b75bf807c6c07eaeb1be8303c"
},
{
"handle": "jeezy_EU",
"pubkey": "023cb3e593fb85c5659688528e9a4f1c4c7f19206edc7e517d20f794ba686fd6d6"
},
{
"handle": "karasugoi_NA",
"pubkey": "02a348b03b9c1a8eac1b56f85c402b041c9bce918833f2ea16d13452309052a982"
},
{
"handle": "kashifali_EU",
"pubkey": "02b74e712998ca1e9580c8c0851f20f79563afd65a22d47d47e184d951bcc1e135"
},
{
"handle": "kolo_AE",
"pubkey": "03016d19344c45341e023b72f9fb6e6152fdcfe105f3b4f50b82a4790ff54e9dc6"
},
{
"handle": "kolo_EU",
"pubkey": "03f5c08dadffa0ffcafb8dd7ffc38c22887bd02702a6c9ac3440deddcf2837692b"
},
{
"handle": "kolo_NA",
"pubkey": "02e17c5f8c3c80f584ed343b8dcfa6d710dfef0889ec1e7728ce45ce559347c58c"
},
{
"handle": "kolo_SH",
"pubkey": "02aa24064500756d9b0959b44d5325f2391d8e95c6127e109184937152c384e185"
},
{
"handle": "locomb_EU",
"pubkey": "02ea030819f09586aa33fa57c1daf80782880e509c9bae87ef8fde1a08acf78599"
},
{
"handle": "metaphilibert_NA",
"pubkey": "02b714aa5833d7a76700c429d5542cea409826d3668ba9d75ec3407a607450563c"
},
{
"handle": "movecrypto_AE",
"pubkey": "022783d94518e4dc77cbdf1a97915b29f427d7bc15ea867900a76665d3112be6f3"
},
{
"handle": "movecrypto_EU",
"pubkey": "021ab53bc6cf2c46b8a5456759f9d608966eff87384c2b52c0ac4cc8dd51e9cc42"
},
{
"handle": "movecrypto_NA",
"pubkey": "02efb12f4d78f44b0542d1c60146738e4d5506d27ec98a469142c5c84b29de0a80"
},
{
"handle": "movecrypto_SH",
"pubkey": "031f9739a3ebd6037a967ce1582cde66e79ea9a0551c54731c59c6b80f635bc859"
},
{
"handle": "muros_AE",
"pubkey": "022d77402fd7179335da39479c829be73428b0ef33fb360a4de6890f37c2aa005e"
},
{
"handle": "muros_NA",
"pubkey": "0252b6185bf8ea7efe8bbc345ddc8da87329149f30233088387abd716d4aa9e974"
},
{
"handle": "nxtswe_EU",
"pubkey": "032fb104e5eaa704a38a52c126af8f67e870d70f82977e5b2f093d5c1c21ae5899"
},
{
"handle": "polycryptoblock_NA",
"pubkey": "02708dcda7c45fb54b78469673c2587bfdd126e381654819c4c23df0e00b679622"
},
{
"handle": "pondsea_AE",
"pubkey": "032e1c213787312099158f2d74a89e8240a991d162d4ce8017d8504d1d7004f735"
},
{
"handle": "pondsea_EU",
"pubkey": "0225aa6f6f19e543180b31153d9e6d55d41bc7ec2ba191fd29f19a2f973544e29d"
},
{
"handle": "pondsea_NA",
"pubkey": "031bcfdbb62268e2ff8dfffeb9ddff7fe95fca46778c77eebff9c3829dfa1bb411"
},
{
"handle": "pondsea_SH",
"pubkey": "02209073bc0943451498de57f802650311b1f12aa6deffcd893da198a544c04f36"
},
{
"handle": "proto_EU",
"pubkey": "03681ffdf17c8f4f0008cefb7fa0779c5e888339cdf932f0974483787a4d6747c1"
},
{
"handle": "rnr_AE",
"pubkey": "02ffda5a0147e781308fe66a1774793eacd9b35829073746b217845cfe7577b7dc"
},
{
"handle": "rnr_EU",
"pubkey": "0287aa4b73988ba26cf6565d815786caf0d2c4af704d7883d163ee89cd9977edec"
},
{
"handle": "rnr_NA",
"pubkey": "03f381ba12b70fb3c5c790ca0131a200534d608c301ff8ccca93abe4cc3444ae5b"
},
{
"handle": "rnr_SH",
"pubkey": "037536fb9bdfed10251f71543fb42679e7c52308bcd12146b2568b9a818d8b8377"
},
{
"handle": "siggurd_NA",
"pubkey": "03f2a02e212604afeff85bedd15703a3e47a13650013e04609140a7b3109d08f77"
},
{
"handle": "supernet_AE",
"pubkey": "029d93ef78197dc93892d2a30e5a54865f41e0ca3ab7eb8e3dcbc59c8756b6e355"
},
{
"handle": "supernet_EU",
"pubkey": "02061c6278b91fd4ac5cab4401100ffa3b2d5a277e8f71db23401cc071b3665546"
},
{
"handle": "supernet_NA",
"pubkey": "033c073366152b6b01535e15dd966a3a8039169584d06e27d92a69889b720d44e1"
},
{
"handle": "titomane_AE",
"pubkey": "03cda6ca5c2d02db201488a54a548dbfc10533bdc275d5ea11928e8d6ab33c2185"
},
{
"handle": "titomane_EU",
"pubkey": "03517fcac101fed480ae4f2caf775560065957930d8c1facc83e30077e45bdd199"
},
{
"handle": "titomane_NA",
"pubkey": "0387046d9745414fb58a0fa3599078af5073e10347e4657ef7259a99cb4f10ad47"
},
{
"handle": "titomane_SH",
"pubkey": "035f49d7a308dd9a209e894321f010d21b7793461b0c89d6d9231a3fe5f68d9960"
},
{
"handle": "vanbreuk_EU",
"pubkey": "024f3cad7601d2399c131fd070e797d9cd8533868685ddbe515daa53c2e26004c3"
},
{
"handle": "xrobesx_NA",
"pubkey": "03f0cc6d142d14a40937f12dbd99dbd9021328f45759e26f1877f2a838876709e1"
},
{
"handle": "yassin_EU",
"pubkey": "033fb7231bb66484081952890d9a03f91164fb27d392d9152ec41336b71b15fbd0"
},
{
"handle": "yassin_SH",
"pubkey": "0334e6e1ec8285c4b85bd6dae67e17d67d1f20e7328efad17ce6fd24ae97cdd65e"
}
]
}
Loading…
Cancel
Save