siulynot
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
8 additions and
1 deletions
iguana/exchanges/LP_bitcoin.c
iguana/exchanges/LP_privkey.c
iguana/exchanges/opreturn
@ -3412,6 +3412,7 @@ bits256 bitcoin_sigtxid(char *symbol,uint8_t taddr,uint8_t pubtype,uint8_t p2sht
sbtcflag = 1 ;
sbtcflag = 1 ;
else if ( strcmp ( symbol , " BTCP " ) = = 0 )
else if ( strcmp ( symbol , " BTCP " ) = = 0 )
btcpflag = 1 ;
btcpflag = 1 ;
else printf ( " normal symbol.(%s) \ n " ,symbol) ;
if ( ( ( hashtype & ~ SIGHASH_FORKID ) & 0xff ) ! = SIGHASH_ALL )
if ( ( ( hashtype & ~ SIGHASH_FORKID ) & 0xff ) ! = SIGHASH_ALL )
{
{
printf ( " currently only SIGHASH_ALL supported, not %d \n " , hashtype ) ;
printf ( " currently only SIGHASH_ALL supported, not %d \n " , hashtype ) ;
@ -536,7 +536,7 @@ int32_t JPG_encrypt(uint16_t ind,uint8_t encoded[JPG_ENCRYPTED_MAXSIZE],uint8_t
int32_t i ; for ( i = 0 ; i < msglen ; i + + )
int32_t i ; for ( i = 0 ; i < msglen ; i + + )
printf ( " %02x " , encoded [ i ] ) ;
printf ( " %02x " , encoded [ i ] ) ;
printf ( " encoded.%d \n " , msglen ) ;
printf ( " encoded.%d \n " , msglen ) ;
return ( msglen ) ;
return ( msglen ) ;
}
}
uint8_t * JPG_decrypt ( uint16_t * indp , int32_t * recvlenp , uint8_t space [ JPG_ENCRYPTED_MAXSIZE + crypto_box_ZEROBYTES ] , uint8_t * encoded , bits256 privkey )
uint8_t * JPG_decrypt ( uint16_t * indp , int32_t * recvlenp , uint8_t space [ JPG_ENCRYPTED_MAXSIZE + crypto_box_ZEROBYTES ] , uint8_t * encoded , bits256 privkey )
@ -0,0 +1,6 @@
#!/bin/bash
source userpass
curl -X POST -H --url 'http://127.0.0.1:7783' --data '{"userpass":"'$userpass'","method":"withdraw","coin":"COQUI","outputs":[{"RGCVXhUxepCxh77thy7XgMrQ5XU9u7SWSR":0.01}], "opreturn":"$(echo -n \"$1\" | od -A n -t x1 | sed \'s/ //g\')"}'
#curl --url "http://127.0.0.1:7783" --data "{\"userpass\":\"$userpass\",\"method\":\"withdraw\",\"coin\":\"HUSH\",\"outputs\":[{\"t1JTXxWyBrxdWNTaNa5gYPPfpJkhqESvyov\":$1}], \"opreturn\":\"deadbeef\"}"