From ad18cb2725259beb4c1966bd788ad886cfe1f6fb Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 14 Apr 2017 04:02:33 +0300 Subject: [PATCH] Test --- basilisk/basilisk_swap.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index 7b2f424e7..63ba41309 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -3054,11 +3054,11 @@ cJSON *basilisk_remember(struct supernet_info *myinfo,uint64_t *KMDtotals,uint64 iambob = jint(item,"iambob"); if ( (secretstr= jstr(item,"secretAm")) != 0 && strlen(secretstr) == 40 ) decode_hex(secretAm,20,secretstr); - if ( (secretstr= jstr(item,"secretAm256")) != 0 && strlen(secretstr) == 32 ) + if ( (secretstr= jstr(item,"secretAm256")) != 0 && strlen(secretstr) == 64 ) decode_hex(secretAm256,32,secretstr); if ( (secretstr= jstr(item,"secretBn")) != 0 && strlen(secretstr) == 40 ) decode_hex(secretBn,20,secretstr); - if ( (secretstr= jstr(item,"secretBn256")) != 0 && strlen(secretstr) == 32 ) + if ( (secretstr= jstr(item,"secretBn256")) != 0 && strlen(secretstr) == 64 ) decode_hex(secretBn256,32,secretstr); if ( (srcstr= jstr(item,"src")) != 0 ) safecopy(src,srcstr,sizeof(src)); @@ -3116,8 +3116,10 @@ cJSON *basilisk_remember(struct supernet_info *myinfo,uint64_t *KMDtotals,uint64 item = cJSON_CreateObject(); array = cJSON_CreateArray(); //printf("R.%u Q.%u\n",requestid,quoteid); + for (j=0; j<33; j++) printf("%02x",pubkey33[j]); printf(" <- pubkey33 A\n"); for (i=0; i