Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
e354e1a49a
  1. 5
      iguana/SuperNET.c

5
iguana/SuperNET.c

@ -17,10 +17,11 @@
bits256 SuperNET_sharedseed(struct supernet_info *myinfo,bits256 otherpub)
{
bits256 seed2;
bits256 seed2,seed;
if ( myinfo == 0 )
myinfo = SuperNET_MYINFO(0);
vcalc_sha256(0,seed2.bytes,curve25519_shared(myinfo->privkey,otherpub).bytes,sizeof(bits256));
seed = curve25519_shared(myinfo->privkey,otherpub);
vcalc_sha256(0,seed2.bytes,seed.bytes,sizeof(bits256));
return(seed2);
}

Loading…
Cancel
Save