Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
15f004f488
  1. 4
      iguana/SuperNET.c

4
iguana/SuperNET.c

@ -142,9 +142,9 @@ cJSON *SuperNET_bits2json(struct supernet_info *myinfo,bits256 prevpub,uint8_t *
printf("bits[%d] iscompressed.%d\n",datalen,iscompressed);
if ( iscompressed != 0 )
{
numbits = serialized[0];
numbits = serialized[2];
numbits = (numbits << 8) + serialized[1];
numbits = (numbits << 8) + serialized[2];
numbits = (numbits << 8) + serialized[0];
seed = curve25519_shared(GENESIS_PRIVKEY,prevpub);
vcalc_sha256(0,seed2.bytes,seed.bytes,sizeof(seed));
char str[65]; printf("compressed len.%d seed2.(%s)\n",numbits,bits256_str(str,seed2));

Loading…
Cancel
Save