diff --git a/gopath/src/github.com/skycoin/skycoin b/gopath/src/github.com/skycoin/skycoin index c4b8ad9..dbf18a0 160000 --- a/gopath/src/github.com/skycoin/skycoin +++ b/gopath/src/github.com/skycoin/skycoin @@ -1 +1 @@ -Subproject commit c4b8ad9e4cd81883eb9c6df135c2c1c94417440e +Subproject commit dbf18a068d25132bcb74d2d88954008955868168 diff --git a/libskycoin.so b/libskycoin.so index 779b8f2..7e34fa3 100755 Binary files a/libskycoin.so and b/libskycoin.so differ diff --git a/skycoin_wrap.c b/skycoin_wrap.c index bd4a5d5..d04fe65 100644 --- a/skycoin_wrap.c +++ b/skycoin_wrap.c @@ -8869,98 +8869,48 @@ SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_delete_1GoSlice(JNIEnv * } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewBlock_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, cipher_SecKey* jarg3, jobject jarg3_, jlong jarg4, jlong jarg5, jlong jarg6) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewWalletResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Block__Handle arg1 ; - GoUint64 arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transactions__Handle arg4 ; - FeeCalculator *arg5 = (FeeCalculator *) 0 ; - Block__Handle *arg6 = (Block__Handle *) 0 ; - Block__Handle *argp1 ; - Transactions__Handle *argp4 ; + Wallet__Handle arg1 ; + WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Block__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg3 = *(cipher__SHA256 **)&jarg3; - argp4 = *(Transactions__Handle **)&jarg4; - if (!argp4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); - return 0; - } - arg4 = *argp4; - arg5 = *(FeeCalculator **)&jarg5; - arg6 = *(Block__Handle **)&jarg6; - result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SignedBlock_1VerifySignature(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(coin__SignedBlock **)&jarg1; - arg2 = *(cipher__PubKey **)&jarg2; - result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); + arg2 = *(WalletResponse__Handle **)&jarg2; + result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewGenesisBlock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jobject jarg3, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GenerateAddressesInFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jlong jarg3, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString arg1 ; GoUint64 arg2 ; - GoUint64 arg3 ; - Block__Handle *arg4 = (Block__Handle *) 0 ; + PasswordReader__Handle arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoString *argp1 ; + PasswordReader__Handle *argp3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(cipher__Address **)&jarg1; + (void)jarg4_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; { jclass clazz; jmethodID mid; @@ -8987,242 +8937,270 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewGenesisBl } (*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0); } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg3); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg3 = 0; - if (sz > 0) { - arg3 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + argp3 = *(PasswordReader__Handle **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); + return 0; } - arg4 = *(Block__Handle **)&jarg4; - result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); + arg3 = *argp3; + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1HashHeader_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1FormatAddressesAsJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(Block__Handle **)&jarg1; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1PreHashHeader_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1FormatAddressesAsJoinedArray(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(Block__Handle **)&jarg1; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1Time(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1AddressesToStrings(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Block__Handle *argp1 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Block__Handle **)&jarg1; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1Seq(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewReadableEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Block__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Block__Handle *argp1 ; + GoString arg1 ; + wallet__Entry *arg2 = (wallet__Entry *) 0 ; + ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Block__Handle **)&jarg1; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); + arg2 = *(wallet__Entry **)&jarg2; + arg3 = *(ReadableEntry__Handle **)&jarg3; + result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1HashBody_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1LoadReadableWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Block__Handle *argp1 ; + GoString arg1 ; + ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Block__Handle **)&jarg1; + (void)jarg1_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); + arg2 = *(ReadableWallet__Handle **)&jarg2; + result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ReadableWallet_1Save(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Block__Handle *argp1 ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + ReadableWallet__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Block__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(ReadableWallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null ReadableWallet__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ReadableWallet_1Load(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Block__Handle *argp1 ; + ReadableWallet__Handle arg1 ; + GoString arg2 ; + ReadableWallet__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Block__Handle **)&jarg1; + argp1 = *(ReadableWallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null ReadableWallet__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_coin_Block_String(arg1,arg2); - jresult = (jlong)result; - return jresult; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); + jresult = (jlong)result; + return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1GetTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_, jlong jarg3, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ReadableWallet_1Erase(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - Block__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - Block__Handle *argp1 ; + ReadableWallet__Handle arg1 ; + ReadableWallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Block__Handle **)&jarg1; + argp1 = *(ReadableWallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null ReadableWallet__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(Transaction__Handle **)&jarg3; - arg4 = *(GoUint8 **)&jarg4; - result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); + result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewBlockHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, jobject jarg3, jobject jarg4, jlong jarg5, jlong jarg6, jobject jarg6_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1logging_1EnableColors(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - BlockBody__Handle arg5 ; - coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; - BlockBody__Handle *argp5 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - (void)jarg6_; - arg1 = *(coin__BlockHeader **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_logging_EnableColors(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1logging_1DisableColors(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + result = (GoUint32)SKY_logging_DisableColors(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1logging_1Disable(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + result = (GoUint32)SKY_logging_Disable(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1VerifyTransactionFee(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { + jlong jresult = 0 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + GoUint32 arg3 ; + Transaction__Handle *argp1 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + argp1 = *(Transaction__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg1 = *argp1; { jclass clazz; jmethodID mid; @@ -9231,24 +9209,40 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewBlockHead jsize sz; int i; - if (!jarg3) { + if (!jarg2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); return 0; } - clazz = (*jenv)->GetObjectClass(jenv, jarg3); + clazz = (*jenv)->GetObjectClass(jenv, jarg2); mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); sz = (*jenv)->GetArrayLength(jenv, ba); - arg3 = 0; + arg2 = 0; if (sz > 0) { - arg3 = (GoUint64)(signed char)bae[0]; + arg2 = (GoUint64)(signed char)bae[0]; for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } + arg3 = (GoUint32)jarg3; + result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1VerifyTransactionFeeForHours(JNIEnv *jenv, jclass jcls, jobject jarg1, jobject jarg2, jlong jarg3) { + jlong jresult = 0 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint32 arg3 ; + GoUint32 result; + + (void)jenv; + (void)jcls; { jclass clazz; jmethodID mid; @@ -9257,889 +9251,892 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewBlockHead jsize sz; int i; - if (!jarg4) { + if (!jarg1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); return 0; } - clazz = (*jenv)->GetObjectClass(jenv, jarg4); + clazz = (*jenv)->GetObjectClass(jenv, jarg1); mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); sz = (*jenv)->GetArrayLength(jenv, ba); - arg4 = 0; + arg1 = 0; if (sz > 0) { - arg4 = (GoUint64)(signed char)bae[0]; + arg1 = (GoUint64)(signed char)bae[0]; for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - argp5 = *(BlockBody__Handle **)&jarg5; - if (!argp5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BlockBody__Handle"); - return 0; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg5 = *argp5; - arg6 = *(coin__BlockHeader **)&jarg6; - result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); + arg3 = (GoUint32)jarg3; + result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockHeader_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1RequiredFee(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg1 ; + GoUint32 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(coin__BlockHeader **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg1); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg1 = 0; + if (sz > 0) { + arg1 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg2 = (GoUint32)jarg2; + arg3 = *(GoUint64 **)&jarg3; + result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockHeader_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1RemainingHours(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint64 arg1 ; + GoUint32 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(coin__BlockHeader **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg1); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg1 = 0; + if (sz > 0) { + arg1 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg2 = (GoUint32)jarg2; + arg3 = *(GoUint64 **)&jarg3; + result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockHeader_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1TransactionFee_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_, jlong jarg4) { jlong jresult = 0 ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(coin__BlockHeader **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); + (void)jarg3_; + argp1 = *(Transaction__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg1 = *argp1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg3 = *(coin__UxArray **)&jarg3; + arg4 = *(GoUint64 **)&jarg4; + result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockBody_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - BlockBody__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - BlockBody__Handle *argp1 ; - GoUint32 result; +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1params_1GetDistributionAddresses(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { + coin__UxArray *arg1 = (coin__UxArray *) 0 ; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(BlockBody__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BlockBody__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); - jresult = (jlong)result; - return jresult; + (void)jarg1_; + arg1 = *(coin__UxArray **)&jarg1; + SKY_params_GetDistributionAddresses(arg1); } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockBody_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { - jlong jresult = 0 ; - BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - GoUint32 result; +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1params_1GetUnlockedDistributionAddresses(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { + coin__UxArray *arg1 = (coin__UxArray *) 0 ; (void)jenv; (void)jcls; - arg1 = *(BlockBody__Handle **)&jarg1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); - jresult = (jlong)result; - return jresult; + (void)jarg1_; + arg1 = *(coin__UxArray **)&jarg1; + SKY_params_GetUnlockedDistributionAddresses(arg1); } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockBody_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1params_1GetLockedDistributionAddresses(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(coin__UxArray **)&jarg1; + SKY_params_GetLockedDistributionAddresses(arg1); +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1JsonEncode_1Handle(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - BlockBody__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - BlockBody__Handle *argp1 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(BlockBody__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BlockBody__Handle"); - return 0; + { + jarg1 = (jlong*)&arg1; } - arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1CreateUnspents_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Progress_1GetCurrent(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Transaction__Handle *argp2 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg3_; - arg1 = *(coin__BlockHeader **)&jarg1; - argp2 = *(Transaction__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; + { + jarg1 = (jlong*)&arg1; } - arg2 = *argp2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1CreateUnspent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Block_1GetHeadSeq(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; - Transaction__Handle arg2 ; - GoInt arg3 ; - coin__UxOut *arg4 = (coin__UxOut *) 0 ; - Transaction__Handle *argp2 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg4_; - arg1 = *(coin__BlockHeader **)&jarg1; - argp2 = *(Transaction__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; + { + jarg1 = (jlong*)&arg1; } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - arg4 = *(coin__UxOut **)&jarg4; - result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetBlockObject(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Block_1GetHeadHash(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - coin__Block **arg2 = (coin__Block **) 0 ; - Block__Handle *argp1 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Block__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); - return 0; + (void)jarg2_; + { + jarg1 = (jlong*)&arg1; } - arg1 = *argp1; - arg2 = *(coin__Block ***)&jarg2; - result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetBlockBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Block_1GetPreviousBlockHash(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Block__Handle arg1 ; - BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; - Block__Handle *argp1 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Block__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); - return 0; + (void)jarg2_; + { + jarg1 = (jlong*)&arg1; } - arg1 = *argp1; - arg2 = *(BlockBody__Handle **)&jarg2; - result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewEmptyBlock(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Blocks_1GetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - Block__Handle *arg2 = (Block__Handle *) 0 ; - Transactions__Handle *argp1 ; + Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); - return 0; + { + jarg1 = (jlong*)&arg1; } - arg1 = *argp1; - arg2 = *(Block__Handle **)&jarg2; - result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1NewDefaultMnemomic(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Blocks_1GetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoString_ *arg1 = (GoString_ *) 0 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(GoString_ **)&jarg1; - result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); + { + jarg1 = (jlong*)&arg1; + } + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1NewEntropy(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Connections_1GetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - arg1 = (GoInt)jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); + { + jarg1 = (jlong*)&arg1; + } + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1NewMnemonic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Strings_1GetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + Strings__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Strings__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(Strings__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Strings__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1MnemonicToByteArray(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Strings_1Sort(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; + Strings__Handle arg1 ; + Strings__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; + argp1 = *(Strings__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Strings__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); + result = (GoUint32)SKY_Handle_Strings_Sort(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1IsMnemonicValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Strings_1GetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; + Strings__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Strings__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; + (void)jarg3_; + argp1 = *(Strings__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Strings__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewClient(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletDir(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoString arg1 ; - Client__Handle *arg2 = (Client__Handle *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(Client__Handle **)&jarg2; - result = (GoUint32)SKY_api_NewClient(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CSRF(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletFileName(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; + WalletResponse__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + WalletResponse__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(WalletResponse__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); return 0; } arg1 = *argp1; arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); + result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Version(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletLabel(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(WalletResponse__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_api_Client_Version(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Outputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletFullPath(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + WalletResponse__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; Client__Handle *argp1 ; + WalletResponse__Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg3_; argp1 = *(Client__Handle **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; + argp2 = *(WalletResponse__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); + return 0; } - result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); + arg2 = *argp2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1OutputsForAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletMeta(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + Wallet__Handle arg1 ; + GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); + arg2 = *(GoStringMap_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1OutputsForHashes(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletEntriesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + Wallet__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CoinSupply(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletResponseEntriesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + WalletResponse__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(WalletResponse__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockByHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletGetEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_, cipher__PubKey* jarg4, jobject jarg4_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Wallet__Handle arg1 ; + GoUint32 arg2 ; + cipher__Address *arg3 = (cipher__Address *) 0 ; + cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + (void)jarg4_; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); + arg2 = (GoUint32)jarg2; + arg3 = *(cipher__Address **)&jarg3; + arg4 = *(cipher__PubKey **)&jarg4; + result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockBySeq(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletResponseGetEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + WalletResponse__Handle arg1 ; + GoUint32 arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + (void)jarg4_; + argp1 = *(WalletResponse__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); return 0; } arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); + arg2 = (GoUint32)jarg2; + arg3 = *(GoString_ **)&jarg3; + arg4 = *(GoString_ **)&jarg4; + result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Blocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletResponseIsEncrypted(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + WalletResponse__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(WalletResponse__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3); + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1LastBlocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletResponseGetCryptoType(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + WalletResponse__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WalletResponse__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(WalletResponse__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); return 0; } arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockchainMetadata(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletsResponseGetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Wallets__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Wallets__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallets__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallets__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockchainProgress(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletsResponseGetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Wallets__Handle arg1 ; + GoUint32 arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Wallets__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallets__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallets__Handle"); return 0; } arg1 = *argp1; + arg2 = (GoUint32)jarg2; + arg3 = *(WalletResponse__Handle **)&jarg3; + result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletFolderAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { + jlong jresult = 0 ; + Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg2_; { - jarg2 = (jlong*)&arg2; + jarg1 = (jlong*)&arg1; } - result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Balance(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - arg3 = *(wallet__BalancePair **)&jarg3; - result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UxOut(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletLastSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1AddressUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetBuildInfoData(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_, GoString* jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + BuildInfo_Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString_ *arg4 = (GoString_ *) 0 ; + BuildInfo_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + (void)jarg4_; + argp1 = *(BuildInfo_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BuildInfo_Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); + arg2 = *(GoString_ **)&jarg2; + arg3 = *(GoString_ **)&jarg3; + arg4 = *(GoString_ **)&jarg4; + result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Wallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1AddPrivateKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; + Wallet__Handle arg1 ; GoString arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; + Wallet__Handle *argp1 ; GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; @@ -10149,54 +10146,29 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Walle return 0; } arg2 = *argp2; - arg3 = *(WalletResponse__Handle **)&jarg3; - result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); + result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Wallets(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1AddPrivateKeyToFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Client__Handle arg1 ; - Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; - Client__Handle *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - argp1 = *(Client__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(Wallets__Handle **)&jarg2; - result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CreateUnencryptedWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jlong jarg5) { - jlong jresult = 0 ; - Client__Handle arg1 ; + GoString arg1 ; GoString arg2 ; - GoString arg3 ; - GoInt arg4 ; - WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; + PasswordReader__Handle arg3 ; + GoString *argp1 ; GoString *argp2 ; - GoString *argp3 ; + PasswordReader__Handle *argp3 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; @@ -10206,1429 +10178,1176 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Creat return 0; } arg2 = *argp2; - argp3 = *(GoString **)&jarg3; + argp3 = *(PasswordReader__Handle **)&jarg3; if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); return 0; } arg3 = *argp3; - arg4 = (GoInt)jarg4; - arg5 = *(WalletResponse__Handle **)&jarg5; - result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); + result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CreateEncryptedWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jlong jarg6) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Create_1Transaction(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoInt arg5 ; - WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; + Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - argp1 = *(Client__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - argp4 = *(GoString **)&jarg4; - if (!argp4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg4 = *argp4; - arg5 = (GoInt)jarg5; - arg6 = *(WalletResponse__Handle **)&jarg6; - result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); + arg1 = *(Transaction__Handle **)&jarg1; + result = (GoUint32)SKY_coin_Create_Transaction(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NewWalletAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jlong jarg4, jobject jarg4_, jlong jarg5) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Copy(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoInt arg3 ; - GoString arg4 ; - Strings__Handle *arg5 = (Strings__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp4 ; + Transaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg4_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - arg3 = (GoInt)jarg3; - argp4 = *(GoString **)&jarg4; - if (!argp4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg4 = *argp4; - arg5 = *(Strings__Handle **)&jarg5; - result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); + arg2 = *(Transaction__Handle **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1WalletBalance(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetTransactionObject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + coin__Transaction **arg2 = (coin__Transaction **) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - arg3 = *(wallet__BalancePair **)&jarg3; - result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); + arg2 = *(coin__Transaction ***)&jarg2; + result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Spend(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jobject jarg4, jlong jarg5, jobject jarg5_, jlong jarg6) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1ResetInputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint64 arg4 ; - GoString arg5 ; - SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - (void)jarg5_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg4); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg4 = 0; - if (sz > 0) { - arg4 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - argp5 = *(GoString **)&jarg5; - if (!argp5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg5 = *argp5; - arg6 = *(SpendResult_Handle **)&jarg6; - result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CreateTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetInputsCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - arg3 = *(CreateTransactionResponse__Handle **)&jarg3; - result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UpdateWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetInputAt_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); + arg2 = (GoInt)jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1WalletFolderName(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SetInputAt_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NewSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetOutputsCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1WalletSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetOutputAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; (void)jarg3_; - (void)jarg4_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - arg4 = *(GoString_ **)&jarg4; - result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); + arg2 = (GoInt)jarg2; + arg3 = *(coin__TransactionOutput **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkConnection(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SetOutputAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); + arg2 = (GoInt)jarg2; + arg3 = *(coin__TransactionOutput **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkConnections(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetSignaturesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - api__NetworkConnectionsFilter *arg2 = (api__NetworkConnectionsFilter *) 0 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(api__NetworkConnectionsFilter **)&jarg2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2,arg3); + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkDefaultPeers(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetSignatureAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_Sig* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = *(cipher__Sig **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkTrustedPeers(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SetSignatureAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_Sig* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = *(cipher__Sig **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkExchangedPeers(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1PushSignature(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_Sig* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); + arg2 = *(cipher__Sig **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1PendingTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1ResetOutputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Transaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1ResetSignatures(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); + arg2 = (GoInt)jarg2; + result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Transactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Transaction_Verify(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1ConfirmedTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1VerifyInput_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UnconfirmedTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1PushInput_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoSlice arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoSlice *argp2 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); + arg2 = *(cipher__SHA256 **)&jarg2; + arg3 = *(GoUint16 **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1InjectTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1TransactionOutput_1UxID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - Transaction__Handle *argp2 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(Transaction__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; - } - arg2 = *argp2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); + arg1 = *(coin__TransactionOutput **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1ResendUnconfirmedTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1PushOutput(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jobject jarg3, jobject jarg4) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; + arg2 = *(cipher__Address **)&jarg2; { - jarg2 = (jlong*)&arg2; + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg3); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg3 = 0; + if (sz > 0) { + arg3 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg4); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg4 = 0; + if (sz > 0) { + arg4 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1RawTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoString* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SignInputs_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; + argp2 = *(GoSlice **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg2 = *argp2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1AddressTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Richlist(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; - Handle *arg3 = (Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(api__RichlistParams **)&jarg2; - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1AddressCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SizeHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); + arg2 = *(GoUint32 **)&jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UnloadWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1TxID(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - Client__Handle *argp1 ; - GoString *argp2 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Health(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1TxIDHex(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; - Client__Handle *argp1 ; + Transaction__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_api_Client_Health(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1EncryptWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1UpdateHeader(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + Transaction__Handle arg1 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - arg4 = *(WalletResponse__Handle **)&jarg4; - result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); + result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1DecryptWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1HashInner_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; - Client__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + Transaction__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - arg4 = *(WalletResponse__Handle **)&jarg4; - result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewWalletResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Serialize(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - WalletResponse__Handle *arg2 = (WalletResponse__Handle *) 0 ; - Wallet__Handle *argp1 ; + Transaction__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallet__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(WalletResponse__Handle **)&jarg2; - result = (GoUint32)SKY_api_NewWalletResponse(arg1,arg2); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreateTransactionResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1TransactionDeserialize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; - Transaction__Handle *argp1 ; - GoSlice *argp2 ; + GoSlice arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg1_; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg2 = *argp2; - arg3 = *(CreateTransactionResponse__Handle **)&jarg3; - result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = *(Transaction__Handle **)&jarg2; + result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreatedTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1OutputHours(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; Transaction__Handle arg1 ; - GoSlice arg2 ; - CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; Transaction__Handle *argp1 ; - GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - arg3 = *(CreatedTransaction__Handle **)&jarg3; - result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1CreatedTransaction_1ToTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Create_1Transactions(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - CreatedTransaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - CreatedTransaction__Handle *argp1 ; + Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(CreatedTransaction__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null CreatedTransaction__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(Transaction__Handle **)&jarg2; - result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); + arg1 = *(Transactions__Handle **)&jarg1; + result = (GoUint32)SKY_coin_Create_Transactions(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreatedTransactionOutput(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetTransactionsObject(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; + Transactions__Handle arg1 ; + coin__UxArray **arg2 = (coin__UxArray **) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(coin__TransactionOutput **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(CreatedTransactionOutput__Handle **)&jarg3; - result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); + argp1 = *(Transactions__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__UxArray ***)&jarg2; + result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreatedTransactionInput(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Length(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; - CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; + Transactions__Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(wallet__UxBalance **)&jarg1; - arg2 = *(CreatedTransactionInput__Handle **)&jarg2; - result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); + argp1 = *(Transactions__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Add(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoInterface arg1 ; - GoInterface *argp1 ; + Transactions__Handle arg1 ; + Transaction__Handle arg2 ; + Transactions__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoInterface **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoInterface"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_wallet_NewError(arg1); + argp2 = *(Transaction__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Fees(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - GoString arg1 ; - Options__Handle arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - Options__Handle *argp2 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - argp2 = *(Options__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Options__Handle"); - return 0; - } - arg2 = *argp2; - arg3 = *(Wallet__Handle **)&jarg3; - result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + arg2 = *(FeeCalculator **)&jarg2; + arg3 = *(GoUint64 **)&jarg3; + result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Lock(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1GetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoSlice arg2 ; - GoString arg3 ; - Wallet__Handle *argp1 ; - GoSlice *argp2 ; - GoString *argp3 ; + Transactions__Handle arg1 ; + GoInt arg2 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); + arg2 = (GoInt)jarg2; + arg3 = *(Transaction__Handle **)&jarg3; + result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Unlock(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Hashes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoSlice arg2 ; - Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; - Wallet__Handle *argp1 ; - GoSlice *argp2 ; + Transactions__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - arg3 = *(Wallet__Handle **)&jarg3; - result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Load(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoString arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - GoString *argp1 ; + Transactions__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - arg2 = *(Wallet__Handle **)&jarg2; - result = (GoUint32)SKY_wallet_Load(arg1,arg2); + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Save(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1TruncateBytesTo(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString arg2 ; - Wallet__Handle *argp1 ; - GoString *argp2 ; + Transactions__Handle arg1 ; + GoUint32 arg2 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); + arg2 = (GoUint32)jarg2; + arg3 = *(Transactions__Handle **)&jarg3; + result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Validate(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - Wallet__Handle *argp1 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); + arg2 = *(FeeCalculator **)&jarg2; + arg3 = *(Transactions__Handle **)&jarg3; + result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Type(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewSortableTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + Transactions__Handle arg1 ; + FeeCalculator *arg2 = (FeeCalculator *) 0 ; + SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Transactions__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); + arg2 = *(FeeCalculator **)&jarg2; + arg3 = *(SortableTransactionResult_Handle **)&jarg3; + result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Version(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Sort(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + SortableTransactionResult_Handle arg1 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(SortableTransactionResult_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Filename(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Len(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + SortableTransactionResult_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(SortableTransactionResult_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Label(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Less(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(SortableTransactionResult_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = *(GoUint8 **)&jarg4; + result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1IsEncrypted(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Swap(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - Wallet__Handle *argp1 ; + SortableTransactionResult_Handle arg1 ; + GoInt arg2 ; + GoInt arg3 ; + SortableTransactionResult_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(SortableTransactionResult_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1GenerateAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1VerifyTransactionCoinsSpending_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoUint64 arg2 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1VerifyTransactionHoursSpending_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jobject jarg1, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { + jlong jresult = 0 ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; coin__UxArray *arg3 = (coin__UxArray *) 0 ; - Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg2_; (void)jarg3_; - argp1 = *(Wallet__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); - return 0; - } - arg1 = *argp1; { jclass clazz; jmethodID mid; @@ -11637,61 +11356,107 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Ge jsize sz; int i; - if (!jarg2) { + if (!jarg1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); return 0; } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); + clazz = (*jenv)->GetObjectClass(jenv, jarg1); mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; + arg1 = 0; if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; + arg1 = (GoUint64)(signed char)bae[0]; for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } + arg2 = *(coin__UxArray **)&jarg2; arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); + result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1GetAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1testutil_1MakeAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Wallet__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + (void)jarg1_; + arg1 = *(cipher__Address **)&jarg1; + result = (GoUint32)SKY_testutil_MakeAddress(arg1); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewError(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + GoInterface arg1 ; + GoInterface *argp1 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + argp1 = *(GoInterface **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoInterface"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); + result = (GoUint32)SKY_wallet_NewError(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1GetEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { + jlong jresult = 0 ; + GoString arg1 ; + Options__Handle arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; + GoString *argp1 ; + Options__Handle *argp2 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + argp2 = *(Options__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Options__Handle"); + return 0; + } + arg2 = *argp2; + arg3 = *(Wallet__Handle **)&jarg3; + result = (GoUint32)SKY_wallet_NewWallet(arg1,arg2,arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Lock(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; Wallet__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - wallet__Entry *arg3 = (wallet__Entry *) 0 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; + GoSlice arg2 ; + GoString arg3 ; Wallet__Handle *argp1 ; + GoSlice *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; @@ -11704,20 +11469,31 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Ge return 0; } arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - arg3 = *(wallet__Entry **)&jarg3; - arg4 = *(GoUint8 **)&jarg4; - result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_wallet_Wallet_Lock(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1AddEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Unlock(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; Wallet__Handle arg1 ; - wallet__Entry *arg2 = (wallet__Entry *) 0 ; + GoSlice arg2 ; + Wallet__Handle *arg3 = (Wallet__Handle *) 0 ; Wallet__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; @@ -11729,323 +11505,219 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Ad return 0; } arg1 = *argp1; - arg2 = *(wallet__Entry **)&jarg2; - result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + arg3 = *(Wallet__Handle **)&jarg3; + result = (GoUint32)SKY_wallet_Wallet_Unlock(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1DistributeSpendHours(JNIEnv *jenv, jclass jcls, jobject jarg1, jobject jarg2, jshort jarg3, jlong jarg4, GoSlice_ * jarg5, jobject jarg5_, jlong jarg6) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Load(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - GoUint64 arg1 ; - GoUint64 arg2 ; - GoUint8 arg3 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoUint64 *arg6 = (GoUint64 *) 0 ; + GoString arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg5_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + (void)jarg1_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; } - arg3 = (GoUint8)jarg3; - arg4 = *(GoUint64 **)&jarg4; - arg5 = *(coin__UxArray **)&jarg5; - arg6 = *(GoUint64 **)&jarg6; - result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); + arg1 = *argp1; + arg2 = *(Wallet__Handle **)&jarg2; + result = (GoUint32)SKY_wallet_Load(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1DistributeCoinHoursProportional(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Save(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Wallet__Handle arg1 ; + GoString arg2 ; + Wallet__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg3_; - argp1 = *(GoSlice **)&jarg1; + (void)jarg2_; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; } - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); + arg2 = *argp2; + result = (GoUint32)SKY_wallet_Wallet_Save(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewUxBalances(JNIEnv *jenv, jclass jcls, jobject jarg1, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Validate(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Wallet__Handle arg1 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + argp1 = *(Wallet__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + return 0; } - arg2 = *(coin__UxArray **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); + arg1 = *argp1; + result = (GoUint32)SKY_wallet_Wallet_Validate(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewUxBalance(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Type(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - (void)jarg3_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + argp1 = *(Wallet__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + return 0; } - arg2 = *(coin__UxOut **)&jarg2; - arg3 = *(wallet__UxBalance **)&jarg3; - result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_wallet_Wallet_Type(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ChooseSpendsMinimizeUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jobject jarg3, GoSlice_ * jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Version(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg4_; - argp1 = *(GoSlice **)&jarg1; + (void)jarg2_; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_wallet_Wallet_Version(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Filename(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { + jlong jresult = 0 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg2_; + argp1 = *(Wallet__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + return 0; } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg3); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg3 = 0; - if (sz > 0) { - arg3 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_wallet_Wallet_Filename(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1Label(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { + jlong jresult = 0 ; + Wallet__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg2_; + argp1 = *(Wallet__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + return 0; } - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_wallet_Wallet_Label(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ChooseSpendsMaximizeUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jobject jarg3, GoSlice_ * jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1IsEncrypted(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoSlice arg1 ; + Wallet__Handle arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + argp1 = *(Wallet__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_wallet_Wallet_IsEncrypted(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1GenerateAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_) { + jlong jresult = 0 ; + Wallet__Handle arg1 ; GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg4_; - argp1 = *(GoSlice **)&jarg1; + (void)jarg3_; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; @@ -12075,478 +11747,426 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ChooseSpen } (*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0); } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg3); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg3 = 0; - if (sz > 0) { - arg3 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_wallet_Wallet_GenerateAddresses(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CheckWalletBalance(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1GetAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; + Wallet__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(WebRpcClient__Handle **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - arg3 = *(BalanceResult_Handle **)&jarg3; - result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_wallet_Wallet_GetAddresses(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GetBalanceOfAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1GetEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoSlice *argp2 ; + Wallet__Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + wallet__Entry *arg3 = (wallet__Entry *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(WebRpcClient__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - arg3 = *(BalanceResult_Handle **)&jarg3; - result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); + arg2 = *(cipher__Address **)&jarg2; + arg3 = *(wallet__Entry **)&jarg3; + arg4 = *(GoUint8 **)&jarg4; + result = (GoUint32)SKY_wallet_Wallet_GetEntry(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewReadableEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Wallet_1AddEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoString arg1 ; + Wallet__Handle arg1 ; wallet__Entry *arg2 = (wallet__Entry *) 0 ; - ReadableEntry__Handle *arg3 = (ReadableEntry__Handle *) 0 ; - GoString *argp1 ; + Wallet__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - argp1 = *(GoString **)&jarg1; + argp1 = *(Wallet__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg1 = *argp1; arg2 = *(wallet__Entry **)&jarg2; - arg3 = *(ReadableEntry__Handle **)&jarg3; - result = (GoUint32)SKY_wallet_NewReadableEntry(arg1,arg2,arg3); + result = (GoUint32)SKY_wallet_Wallet_AddEntry(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1LoadReadableWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1DistributeSpendHours(JNIEnv *jenv, jclass jcls, jobject jarg1, jobject jarg2, jshort jarg3, jlong jarg4, GoSlice_ * jarg5, jobject jarg5_, jlong jarg6) { jlong jresult = 0 ; - GoString arg1 ; - ReadableWallet__Handle *arg2 = (ReadableWallet__Handle *) 0 ; - GoString *argp1 ; + GoUint64 arg1 ; + GoUint64 arg2 ; + GoUint8 arg3 ; + GoUint64 *arg4 = (GoUint64 *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoUint64 *arg6 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; + (void)jarg5_; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg1); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg1 = 0; + if (sz > 0) { + arg1 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = *(ReadableWallet__Handle **)&jarg2; - result = (GoUint32)SKY_wallet_LoadReadableWallet(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg3 = (GoUint8)jarg3; + arg4 = *(GoUint64 **)&jarg4; + arg5 = *(coin__UxArray **)&jarg5; + arg6 = *(GoUint64 **)&jarg6; + result = (GoUint32)SKY_wallet_DistributeSpendHours(arg1,arg2,arg3,arg4,arg5,arg6); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ReadableWallet_1Save(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1DistributeCoinHoursProportional(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - ReadableWallet__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + GoUint64 arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(ReadableWallet__Handle **)&jarg1; + (void)jarg1_; + (void)jarg3_; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null ReadableWallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Save(arg1,arg2); + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_wallet_DistributeCoinHoursProportional(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ReadableWallet_1Load(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewUxBalances(JNIEnv *jenv, jclass jcls, jobject jarg1, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - ReadableWallet__Handle arg1 ; - GoString arg2 ; - ReadableWallet__Handle *argp1 ; - GoString *argp2 ; + GoUint64 arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(ReadableWallet__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null ReadableWallet__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; + (void)jarg3_; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg1); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg1 = 0; + if (sz > 0) { + arg1 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg2 = *argp2; - result = (GoUint32)SKY_wallet_ReadableWallet_Load(arg1,arg2); + arg2 = *(coin__UxArray **)&jarg2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_wallet_NewUxBalances(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ReadableWallet_1Erase(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewUxBalance(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - ReadableWallet__Handle arg1 ; - ReadableWallet__Handle *argp1 ; + GoUint64 arg1 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__UxBalance *arg3 = (wallet__UxBalance *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(ReadableWallet__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null ReadableWallet__Handle"); - return 0; - } - arg1 = *argp1; - result = (GoUint32)SKY_wallet_ReadableWallet_Erase(arg1); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1String2Hex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1ToInt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { - jlong jresult = 0 ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1ToHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1Base582Int(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { - jlong jresult = 0 ; - GoString arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base582Hex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1BitHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoString arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; + (void)jarg3_; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg1); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg1 = 0; + if (sz > 0) { + arg1 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Int2Base58(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoInt arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg2_; - arg1 = (GoInt)jarg1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + arg2 = *(coin__UxOut **)&jarg2; + arg3 = *(wallet__UxBalance **)&jarg3; + result = (GoUint32)SKY_wallet_NewUxBalance(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Hex2Base58(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ChooseSpendsMinimizeUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jobject jarg3, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; + (void)jarg4_; argp1 = *(GoSlice **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Hex2Base58String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg3); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg3 = 0; + if (sz > 0) { + arg3 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMinimizeUxOuts(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Hex2Base58Str(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1ChooseSpendsMaximizeUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jobject jarg3, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; + (void)jarg4_; argp1 = *(GoSlice **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GenerateWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg3, jlong jarg4) { - jlong jresult = 0 ; - GoString arg1 ; - Options__Handle *arg2 = (Options__Handle *) 0 ; - GoUint64 arg3 ; - Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; - GoString *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = *(Options__Handle **)&jarg2; { jclass clazz; jmethodID mid; @@ -12573,139 +12193,181 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GenerateWalle } (*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0); } - arg4 = *(Wallet__Handle **)&jarg4; - result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1MakeAlphanumericSeed(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { - jlong jresult = 0 ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(GoString_ **)&jarg1; - result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_wallet_ChooseSpendsMaximizeUxOuts(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1NewClient(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1CreateOptionsHandle(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jshort jarg4, jlong jarg5, jobject jarg5_, jlong jarg6, jobject jarg6_, jobject jarg7, jlong jarg8) { jlong jresult = 0 ; GoString arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoString arg2 ; + GoString arg3 ; + GoUint8 arg4 ; + GoString arg5 ; + GoString arg6 ; + GoUint64 arg7 ; + Options__Handle *arg8 = (Options__Handle *) 0 ; GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; + GoString *argp6 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + (void)jarg5_; + (void)jarg6_; argp1 = *(GoString **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } - arg1 = *argp1; - arg2 = *(WebRpcClient__Handle **)&jarg2; - result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); + arg1 = *argp1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + arg4 = (GoUint8)jarg4; + argp5 = *(GoString **)&jarg5; + if (!argp5) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg5 = *argp5; + argp6 = *(GoString **)&jarg6; + if (!argp6) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg6 = *argp6; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg7) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg7); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg7, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg7 = 0; + if (sz > 0) { + arg7 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg8 = *(Options__Handle **)&jarg8; + result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1CSRF(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTxFromWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jlong jarg6) { jlong jresult = 0 ; WebRpcClient__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + GoString arg2 ; + GoString arg3 ; + GoSlice arg4 ; + PasswordReader__Handle arg5 ; + Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; WebRpcClient__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoSlice *argp4 ; + PasswordReader__Handle *argp5 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(WebRpcClient__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1InjectTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { - jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - Transaction__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - WebRpcClient__Handle *argp1 ; - Transaction__Handle *argp2 ; - GoUint32 result; - - (void)jenv; - (void)jcls; (void)jarg3_; + (void)jarg4_; argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); return 0; } arg1 = *argp1; - argp2 = *(Transaction__Handle **)&jarg2; + argp2 = *(GoString **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg2 = *argp2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetStatus(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { - jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - argp1 = *(WebRpcClient__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } - arg1 = *argp1; - arg2 = *(StatusResult_Handle **)&jarg2; - result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); + arg3 = *argp3; + argp4 = *(GoSlice **)&jarg4; + if (!argp4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg4 = *argp4; + argp5 = *(PasswordReader__Handle **)&jarg5; + if (!argp5) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); + return 0; + } + arg5 = *argp5; + arg6 = *(Transaction__Handle **)&jarg6; + result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetTransactionByID(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTxFromAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jobject jarg5_, jlong jarg6, jlong jarg7) { jlong jresult = 0 ; WebRpcClient__Handle arg1 ; GoString arg2 ; - TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + GoString arg3 ; + GoString arg4 ; + GoSlice arg5 ; + PasswordReader__Handle arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; WebRpcClient__Handle *argp1 ; GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + PasswordReader__Handle *argp6 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; + (void)jarg3_; + (void)jarg4_; + (void)jarg5_; argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); @@ -12718,138 +12380,122 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1Ge return 0; } arg2 = *argp2; - arg3 = *(TransactionResult_Handle **)&jarg3; - result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + argp4 = *(GoString **)&jarg4; + if (!argp4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg4 = *argp4; + argp5 = *(GoSlice **)&jarg5; + if (!argp5) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg5 = *argp5; + argp6 = *(PasswordReader__Handle **)&jarg6; + if (!argp6) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); + return 0; + } + arg6 = *argp6; + arg7 = *(Transaction__Handle **)&jarg7; + result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetAddressUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTx(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jobject jarg5_, jlong jarg6, jobject jarg6_, jlong jarg7) { jlong jresult = 0 ; WebRpcClient__Handle arg1 ; - GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Wallet__Handle arg2 ; + GoSlice arg3 ; + GoString arg4 ; + GoSlice arg5 ; + GoSlice arg6 ; + Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; WebRpcClient__Handle *argp1 ; - GoSlice *argp2 ; + Wallet__Handle *argp2 ; + GoSlice *argp3 ; + GoString *argp4 ; + GoSlice *argp5 ; + GoSlice *argp6 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; (void)jarg3_; + (void)jarg4_; + (void)jarg5_; + (void)jarg6_; argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; + argp2 = *(Wallet__Handle **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); return 0; } arg2 = *argp2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetBlocksInRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jobject jarg3, GoSlice_ * jarg4, jobject jarg4_) { - jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - GoUint64 arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg4_; - argp1 = *(WebRpcClient__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + argp3 = *(GoSlice **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + arg3 = *argp3; + argp4 = *(GoString **)&jarg4; + if (!argp4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg3); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg3 = 0; - if (sz > 0) { - arg3 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + arg4 = *argp4; + argp5 = *(GoSlice **)&jarg5; + if (!argp5) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; } - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_webrpc_Client_GetBlocksInRange(arg1,arg2,arg3,arg4); + arg5 = *argp5; + argp6 = *(GoSlice **)&jarg6; + if (!argp6) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg6 = *argp6; + arg7 = *(Transaction__Handle **)&jarg7; + result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetBlocksBySeq(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1NewTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; + GoSlice arg1 ; GoSlice arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg3 ; + Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; + GoSlice *argp1 ; GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; (void)jarg3_; - argp1 = *(WebRpcClient__Handle **)&jarg1; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; @@ -12859,286 +12505,203 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1Ge return 0; } arg2 = *argp2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetLastBlocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_) { - jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - WebRpcClient__Handle *argp1 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg3_; - argp1 = *(WebRpcClient__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + argp3 = *(GoSlice **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1iputil_1LocalhostIP(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { - jlong jresult = 0 ; - GoString_ *arg1 = (GoString_ *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(GoString_ **)&jarg1; - result = (GoUint32)SKY_iputil_LocalhostIP(arg1); + arg3 = *argp3; + arg4 = *(Transaction__Handle **)&jarg4; + result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1iputil_1IsLocalhost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1encrypt_1ScryptChacha20poly1305_1Encrypt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; - GoString arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - GoString *argp1 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + (void)jarg2_; + (void)jarg3_; + (void)jarg4_; + arg1 = *(encrypt__ScryptChacha20poly1305 **)&jarg1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); + arg2 = *argp2; + argp3 = *(GoSlice **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg3 = *argp3; + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1iputil_1SplitAddr(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1encrypt_1ScryptChacha20poly1305_1Decrypt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - GoString *argp1 ; + encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; + GoSlice arg2 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp2 ; + GoSlice *argp3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + (void)jarg3_; + (void)jarg4_; + arg1 = *(encrypt__ScryptChacha20poly1305 **)&jarg1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - arg3 = *(GoUint16 **)&jarg3; - result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); + arg2 = *argp2; + argp3 = *(GoSlice **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg3 = *argp3; + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1params_1GetDistributionAddresses(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - SKY_params_GetDistributionAddresses(arg1); -} - - -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1params_1GetUnlockedDistributionAddresses(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - SKY_params_GetUnlockedDistributionAddresses(arg1); -} - - -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1params_1GetLockedDistributionAddresses(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - SKY_params_GetLockedDistributionAddresses(arg1); -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GenerateAddressesInFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jlong jarg3, GoSlice_ * jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CheckWalletBalance(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoString arg1 ; - GoUint64 arg2 ; - PasswordReader__Handle arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoString *argp1 ; - PasswordReader__Handle *argp3 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg4_; - argp1 = *(GoString **)&jarg1; + (void)jarg2_; + argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); return 0; } arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - argp3 = *(PasswordReader__Handle **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } - arg3 = *argp3; - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_cli_GenerateAddressesInFile(arg1,arg2,arg3,arg4); + arg2 = *argp2; + arg3 = *(BalanceResult_Handle **)&jarg3; + result = (GoUint32)SKY_cli_CheckWalletBalance(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1FormatAddressesAsJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GetBalanceOfAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + BalanceResult_Handle *arg3 = (BalanceResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJSON(arg1,arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + arg3 = *(BalanceResult_Handle **)&jarg3; + result = (GoUint32)SKY_cli_GetBalanceOfAddresses(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1FormatAddressesAsJoinedArray(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GetWalletOutputsFromFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoSlice arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoSlice *argp1 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_FormatAddressesAsJoinedArray(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = *(ReadableUnspentOutputsSummary_Handle **)&jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1AddressesToStrings(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GetWalletOutputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - GoSlice arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + WebRpcClient__Handle arg1 ; + Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; + ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(WebRpcClient__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_cli_AddressesToStrings(arg1,arg2); + arg2 = *(Wallet__Handle **)&jarg2; + arg3 = *(ReadableUnspentOutputsSummary_Handle **)&jarg3; + result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } @@ -13285,51 +12848,69 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1IntToUint32( } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1RandByte(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1handle_1copy(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoInt arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - arg1 = (GoInt)jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); + { + jarg1 = (jlong*)&arg1; + } + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_handle_copy(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewPubKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1InitDataDir(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - GoSlice *argp1 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(cipher__PubKey **)&jarg2; - result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFromHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1UserHome(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { + jlong jresult = 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(GoString_ **)&jarg1; + result = (GoUint32)SKY_file_UserHome(arg1); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1ResolveResourceDirectory(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; GoString arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoString *argp1 ; GoUint32 result; @@ -13343,107 +12924,193 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFrom return 0; } arg1 = *argp1; - arg2 = *(cipher__PubKey **)&jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFromSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1DetermineResourcePath(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { jlong jresult = 0 ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + GoString *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__SecKey **)&jarg1; - arg2 = *(cipher__PubKey **)&jarg2; - result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); + (void)jarg3_; + (void)jarg4_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + arg4 = *(GoString_ **)&jarg4; + result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFromSig_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_Sig* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher__PubKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1iputil_1LocalhostIP(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { jlong jresult = 0 ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - arg1 = *(cipher__Sig **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(cipher__PubKey **)&jarg3; - result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); + arg1 = *(GoString_ **)&jarg1; + result = (GoUint32)SKY_iputil_LocalhostIP(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKey_1Verify(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1iputil_1IsLocalhost(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(cipher__PubKey **)&jarg1; - result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_iputil_IsLocalhost(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKey_1Hex(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1iputil_1SplitAddr(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + GoString arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; + GoUint16 *arg3 = (GoUint16 *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__PubKey **)&jarg1; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); + arg3 = *(GoUint16 **)&jarg3; + result = (GoUint32)SKY_iputil_SplitAddr(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyRipemd160(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_Ripemd160* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DecodeBase58BitcoinAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoString arg1 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + GoString *argp1 ; GoUint32 result; + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(cipher__BitcoinAddress **)&jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddressFromPubKey(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; arg1 = *(cipher__PubKey **)&jarg1; - arg2 = *(cipher__Ripemd160 **)&jarg2; - result = (GoUint32)SKY_cipher_PubKeyRipemd160((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); + arg2 = *(cipher__BitcoinAddress **)&jarg2; + SKY_cipher_BitcoinAddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddressFromSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jlong jresult = 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__SecKey **)&jarg1; + arg2 = *(cipher__BitcoinAddress **)&jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewSecKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinWalletImportFormatFromSeckey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__SecKey **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddressFromBytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; GoSlice arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -13457,14 +13124,14 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewSecKey( return 0; } arg1 = *argp1; - arg2 = *(cipher__SecKey **)&jarg2; - result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); + arg2 = *(cipher__BitcoinAddress **)&jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKeyFromHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKeyFromBitcoinWalletImportFormat(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; GoString arg1 ; cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; @@ -13482,477 +13149,421 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKeyFrom } arg1 = *argp1; arg2 = *(cipher__SecKey **)&jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKey_1Verify(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_) { - jlong jresult = 0 ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(cipher__SecKey **)&jarg1; - result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); + result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKey_1Hex(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT jshort JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Null(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jshort jresult = 0 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoUint8 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__SecKey **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); - jresult = (jlong)result; + arg1 = *(cipher__BitcoinAddress **)&jarg1; + result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); + jresult = (jshort)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1ECDH(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { - jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint32 result; +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(cipher__PubKey **)&jarg1; - arg2 = *(cipher__SecKey **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); - jresult = (jlong)result; - return jresult; + arg1 = *(cipher__BitcoinAddress **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewSig(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoSlice *argp1 ; + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__Sig **)&jarg2; - result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); + arg1 = *(cipher__BitcoinAddress **)&jarg1; + arg2 = *(cipher__PubKey **)&jarg2; + result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SigFromHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - GoString arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - GoString *argp1 ; - GoUint32 result; +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__Sig **)&jarg2; - result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); - jresult = (jlong)result; - return jresult; + arg1 = *(cipher__BitcoinAddress **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + SKY_cipher_BitcoinAddress_String(arg1,arg2); } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Sig_1Hex(JNIEnv *jenv, jclass jcls, cipher_Sig* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; +SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Checksum(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__Sig **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); - jresult = (jlong)result; - return jresult; + arg1 = *(cipher__BitcoinAddress **)&jarg1; + arg2 = *(cipher__Checksum **)&jarg2; + SKY_cipher_BitcoinAddress_Checksum(arg1,(GoUint8_ (*)[4])arg2); } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SignHash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_Sig* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1map_1Get(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; (void)jarg3_; - arg1 = *(cipher__SHA256 **)&jarg1; - arg2 = *(cipher__SecKey **)&jarg2; - arg3 = *(cipher__Sig **)&jarg3; - result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); + arg1 = *(GoStringMap_ **)&jarg1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1VerifyAddressSignedHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { - jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - GoUint32 result; +SWIGEXPORT jshort JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1map_1HasKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { + jshort jresult = 0 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg2 ; + GoString *argp2 ; + GoUint8 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(cipher__Address **)&jarg1; - arg2 = *(cipher__Sig **)&jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); - jresult = (jlong)result; + arg1 = *(GoStringMap_ **)&jarg1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + result = (GoUint8)SKY_map_HasKey(arg1,arg2); + jresult = (jshort)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1VerifySignedHash(JNIEnv *jenv, jclass jcls, cipher_Sig* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1map_1Close(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - cipher__Sig *arg1 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__Sig **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); + arg1 = *(GoStringMap_ **)&jarg1; + result = (GoUint32)SKY_map_Close(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1VerifyPubKeySignedHash(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1droplet_1FromString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoString arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - arg1 = *(cipher__PubKey **)&jarg1; - arg2 = *(cipher__Sig **)&jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_cipher_VerifyPubKeySignedHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_droplet_FromString(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateKeyPair(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1droplet_1ToString(JNIEnv *jenv, jclass jcls, jobject jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoUint64 arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__PubKey **)&jarg1; - arg2 = *(cipher__SecKey **)&jarg2; - result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg1); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg1 = 0; + if (sz > 0) { + arg1 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_droplet_ToString(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateDeterministicKeyPair(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1CryptoTypeFromString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - argp1 = *(GoSlice **)&jarg1; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(cipher__PubKey **)&jarg2; - arg3 = *(cipher__SecKey **)&jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DeterministicKeyPairIterator(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_, cipher__PubKey* jarg3, jobject jarg3_, cipher_SecKey* jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1RandByte(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; + GoInt arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; - cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; - GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - argp1 = *(GoSlice **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg1 = *argp1; + arg1 = (GoInt)jarg1; arg2 = *(coin__UxArray **)&jarg2; - arg3 = *(cipher__PubKey **)&jarg3; - arg4 = *(cipher__SecKey **)&jarg4; - result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); + result = (GoUint32)SKY_cipher_RandByte(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateDeterministicKeyPairs_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewPubKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg3_; + (void)jarg2_; argp1 = *(GoSlice **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); + arg2 = *(cipher__PubKey **)&jarg2; + result = (GoUint32)SKY_cipher_NewPubKey(arg1,(GoUint8_ (*)[33])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateDeterministicKeyPairsSeed_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, GoSlice_ * jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFromHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - GoInt arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp1 ; + GoString arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg3_; - (void)jarg4_; - argp1 = *(GoSlice **)&jarg1; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(coin__UxArray **)&jarg3; - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); + arg2 = *(cipher__PubKey **)&jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromHex(arg1,(GoUint8_ (*)[33])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1CheckSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFromSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; + (void)jarg2_; arg1 = *(cipher__SecKey **)&jarg1; - result = (GoUint32)SKY_cipher_CheckSecKey((GoUint8_ (*)[32])arg1); + arg2 = *(cipher__PubKey **)&jarg2; + result = (GoUint32)SKY_cipher_PubKeyFromSecKey((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[33])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1CheckSecKeyHash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyFromSig_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_Sig* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher__PubKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__SecKey **)&jarg1; + (void)jarg3_; + arg1 = *(cipher__Sig **)&jarg1; arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_cipher_CheckSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); + arg3 = *(cipher__PubKey **)&jarg3; + result = (GoUint32)SKY_cipher_PubKeyFromSig((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[33])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1App_1Run(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKey_1Verify(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_) { jlong jresult = 0 ; - App__Handle arg1 ; - GoString arg2 ; - App__Handle *argp1 ; - GoString *argp2 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(App__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null App__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_App_Run(arg1,arg2); + (void)jarg1_; + arg1 = *(cipher__PubKey **)&jarg1; + result = (GoUint32)SKY_cipher_PubKey_Verify((GoUint8_ (*)[33])arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1GetCoin(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKey_1Hex(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Config__Handle arg1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(Config__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); - return 0; - } - arg1 = *argp1; + arg1 = *(cipher__PubKey **)&jarg1; arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); + result = (GoUint32)SKY_cipher_PubKey_Hex((GoUint8_ (*)[33])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1GetRPCAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1PubKeyRipemd160(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_Ripemd160* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(Config__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); + arg1 = *(cipher__PubKey **)&jarg1; + arg2 = *(cipher__Ripemd160 **)&jarg2; + result = (GoUint32)SKY_cipher_PubKeyRipemd160((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[20])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1RPCClientFromApp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewSecKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - App__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - App__Handle *argp1 ; + GoSlice arg1 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(App__Handle **)&jarg1; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null App__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(WebRpcClient__Handle **)&jarg2; - result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); + arg2 = *(cipher__SecKey **)&jarg2; + result = (GoUint32)SKY_cipher_NewSecKey(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Getenv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKeyFromHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; GoString *argp1 ; GoUint32 result; @@ -13966,632 +13577,620 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Getenv(JNIEnv return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_Getenv(arg1,arg2); + arg2 = *(cipher__SecKey **)&jarg2; + result = (GoUint32)SKY_cipher_SecKeyFromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Setenv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKey_1Verify(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_) { jlong jresult = 0 ; - GoString arg1 ; - GoString arg2 ; - GoString *argp1 ; - GoString *argp2 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_Setenv(arg1,arg2); + arg1 = *(cipher__SecKey **)&jarg1; + result = (GoUint32)SKY_cipher_SecKey_Verify((GoUint8_ (*)[32])arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewBalance(JNIEnv *jenv, jclass jcls, jobject jarg1, jobject jarg2, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKey_1Hex(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoUint64 arg1 ; - GoUint64 arg2 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg3 = *(wallet__Balance **)&jarg3; - result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__SecKey **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cipher_SecKey_Hex((GoUint8_ (*)[32])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewBalanceFromUxOut(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1ECDH(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - GoUint64 arg1 ; - coin__UxOut *arg2 = (coin__UxOut *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; (void)jarg3_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg2 = *(coin__UxOut **)&jarg2; - arg3 = *(wallet__Balance **)&jarg3; - result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); + arg1 = *(cipher__PubKey **)&jarg1; + arg2 = *(cipher__SecKey **)&jarg2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_cipher_ECDH((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1Add(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1NewSig(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_) { jlong jresult = 0 ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoSlice arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(wallet__Balance **)&jarg1; - arg2 = *(wallet__Balance **)&jarg2; - arg3 = *(wallet__Balance **)&jarg3; - result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg1 = *argp1; + arg2 = *(cipher__Sig **)&jarg2; + result = (GoUint32)SKY_cipher_NewSig(arg1,(GoUint8_ (*)[65])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1Sub(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SigFromHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_) { jlong jresult = 0 ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - wallet__Balance *arg3 = (wallet__Balance *) 0 ; + GoString arg1 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(wallet__Balance **)&jarg1; - arg2 = *(wallet__Balance **)&jarg2; - arg3 = *(wallet__Balance **)&jarg3; - result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(cipher__Sig **)&jarg2; + result = (GoUint32)SKY_cipher_SigFromHex(arg1,(GoUint8_ (*)[65])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1Equals(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Sig_1Hex(JNIEnv *jenv, jclass jcls, cipher_Sig* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - wallet__Balance *arg2 = (wallet__Balance *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(wallet__Balance **)&jarg1; - arg2 = *(wallet__Balance **)&jarg2; - arg3 = *(GoUint8 **)&jarg3; - result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); + arg1 = *(cipher__Sig **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cipher_Sig_Hex((GoUint8_ (*)[65])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1IsZero(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SignHash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_Sig* jarg3, jobject jarg3_) { jlong jresult = 0 ; - wallet__Balance *arg1 = (wallet__Balance *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; + cipher__Sig *arg3 = (cipher__Sig *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(wallet__Balance **)&jarg1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); + (void)jarg2_; + (void)jarg3_; + arg1 = *(cipher__SHA256 **)&jarg1; + arg2 = *(cipher__SecKey **)&jarg2; + arg3 = *(cipher__Sig **)&jarg3; + result = (GoUint32)SKY_cipher_SignHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[65])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Address_1UnmarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1VerifyAddressSignedHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(httphelper__Address **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); + (void)jarg3_; + arg1 = *(cipher__Address **)&jarg1; + arg2 = *(cipher__Sig **)&jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_cipher_VerifyAddressSignedHash(arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Address_1MarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1VerifySignedHash(JNIEnv *jenv, jclass jcls, cipher_Sig* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - httphelper__Address *arg1 = (httphelper__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__Sig *arg1 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(httphelper__Address **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); + arg1 = *(cipher__Sig **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_cipher_VerifySignedHash((GoUint8_ (*)[65])arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Coins_1UnmarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1VerifyPubKeySignedHash(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_Sig* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Sig *arg2 = (cipher__Sig *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - arg1 = *(httphelper__Coins **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); + (void)jarg3_; + arg1 = *(cipher__PubKey **)&jarg1; + arg2 = *(cipher__Sig **)&jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_cipher_VerifyPubKeySignedHash((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[65])arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Coins_1MarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateKeyPair(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - arg1 = *(httphelper__Coins **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); + arg1 = *(cipher__PubKey **)&jarg1; + arg2 = *(cipher__SecKey **)&jarg2; + result = (GoUint32)SKY_cipher_GenerateKeyPair((GoUint8_ (*)[33])arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Coins_1Value(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateDeterministicKeyPair(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoSlice arg1 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg3 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - arg1 = *(httphelper__Coins **)&jarg1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg1 = *argp1; + arg2 = *(cipher__PubKey **)&jarg2; + arg3 = *(cipher__SecKey **)&jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPair(arg1,(GoUint8_ (*)[33])arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Hours_1UnmarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DeterministicKeyPairIterator(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_, cipher__PubKey* jarg3, jobject jarg3_, cipher_SecKey* jarg4, jobject jarg4_) { jlong jresult = 0 ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + GoSlice arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + cipher__PubKey *arg3 = (cipher__PubKey *) 0 ; + cipher__SecKey *arg4 = (cipher__SecKey *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - arg1 = *(httphelper__Hours **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { + (void)jarg3_; + (void)jarg4_; + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + arg3 = *(cipher__PubKey **)&jarg3; + arg4 = *(cipher__SecKey **)&jarg4; + result = (GoUint32)SKY_cipher_DeterministicKeyPairIterator(arg1,arg2,(GoUint8_ (*)[33])arg3,(GoUint8_ (*)[32])arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Hours_1MarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateDeterministicKeyPairs_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - arg1 = *(httphelper__Hours **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); + (void)jarg1_; + (void)jarg3_; + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairs(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Hours_1Value(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1GenerateDeterministicKeyPairsSeed_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, GoSlice_ * jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; - httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + GoSlice arg1 ; + GoInt arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - arg1 = *(httphelper__Hours **)&jarg1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); + (void)jarg1_; + (void)jarg3_; + (void)jarg4_; + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = *(coin__UxArray **)&jarg3; + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_cipher_GenerateDeterministicKeyPairsSeed(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Entry_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1CheckSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_) { jlong jresult = 0 ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(wallet__Entry **)&jarg1; - result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + arg1 = *(cipher__SecKey **)&jarg1; + result = (GoUint32)SKY_cipher_CheckSecKey((GoUint8_ (*)[32])arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Entry_1VerifyPublic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1CheckSecKeyHash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - wallet__Entry *arg1 = (wallet__Entry *) 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(wallet__Entry **)&jarg1; - result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); + (void)jarg2_; + arg1 = *(cipher__SecKey **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_cipher_CheckSecKeyHash((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1droplet_1FromString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreateTransactionResponse(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoString arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoString *argp1 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoString **)&jarg1; + (void)jarg2_; + argp1 = *(Transaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_droplet_FromString(arg1,arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + arg3 = *(CreateTransactionResponse__Handle **)&jarg3; + result = (GoUint32)SKY_api_NewCreateTransactionResponse(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1droplet_1ToString(JNIEnv *jenv, jclass jcls, jobject jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreatedTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoUint64 arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Transaction__Handle arg1 ; + GoSlice arg2 ; + CreatedTransaction__Handle *arg3 = (CreatedTransaction__Handle *) 0 ; + Transaction__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + argp1 = *(Transaction__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; } - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_droplet_ToString(arg1,arg2); + arg1 = *argp1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + arg3 = *(CreatedTransaction__Handle **)&jarg3; + result = (GoUint32)SKY_api_NewCreatedTransaction(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1CryptoTypeFromString(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1CreatedTransaction_1ToTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + CreatedTransaction__Handle arg1 ; + Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; + CreatedTransaction__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; + argp1 = *(CreatedTransaction__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null CreatedTransaction__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_wallet_CryptoTypeFromString(arg1,arg2); + arg2 = *(Transaction__Handle **)&jarg2; + result = (GoUint32)SKY_api_CreatedTransaction_ToTransaction(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1handle_1copy(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreatedTransactionOutput(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Handle arg1 ; - Handle *arg2 = (Handle *) 0 ; + coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + CreatedTransactionOutput__Handle *arg3 = (CreatedTransactionOutput__Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - { - jarg1 = (jlong*)&arg1; - } - { - jarg2 = (jlong*)&arg2; - } - result = (GoUint32)SKY_handle_copy(arg1,arg2); + (void)jarg1_; + (void)jarg2_; + arg1 = *(coin__TransactionOutput **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + arg3 = *(CreatedTransactionOutput__Handle **)&jarg3; + result = (GoUint32)SKY_api_NewCreatedTransactionOutput(arg1,(GoUint8_ (*)[32])arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1logging_1EnableColors(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewCreatedTransactionInput(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; + wallet__UxBalance *arg1 = (wallet__UxBalance *) 0 ; + CreatedTransactionInput__Handle *arg2 = (CreatedTransactionInput__Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - result = (GoUint32)SKY_logging_EnableColors(); + (void)jarg1_; + arg1 = *(wallet__UxBalance **)&jarg1; + arg2 = *(CreatedTransactionInput__Handle **)&jarg2; + result = (GoUint32)SKY_api_NewCreatedTransactionInput(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1logging_1DisableColors(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1String2Hex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - result = (GoUint32)SKY_logging_DisableColors(); + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_base58_String2Hex(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1logging_1Disable(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1ToInt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - result = (GoUint32)SKY_logging_Disable(); + (void)jarg1_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_base58_Base58_ToInt(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1map_1Get(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoString* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1ToHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString *argp2 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(GoStringMap_ **)&jarg1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { + argp1 = *(GoString **)&jarg1; + if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } - arg2 = *argp2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_map_Get(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_base58_Base58_ToHex(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jshort JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1map_1HasKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { - jshort jresult = 0 ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; - GoString arg2 ; - GoString *argp2 ; - GoUint8 result; +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1Base582Int(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jlong jresult = 0 ; + GoString arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + GoString *argp1 ; + GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - arg1 = *(GoStringMap_ **)&jarg1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { + (void)jarg1_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } - arg2 = *argp2; - result = (GoUint8)SKY_map_HasKey(arg1,arg2); - jresult = (jshort)result; + arg1 = *argp1; + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_base58_Base58_Base582Int(arg1,arg2); + jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1map_1Close(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base582Hex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoStringMap_ *arg1 = (GoStringMap_ *) 0 ; + GoString arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - arg1 = *(GoStringMap_ **)&jarg1; - result = (GoUint32)SKY_map_Close(arg1); + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_base58_Base582Hex(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DecodeBase58Address(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Base58_1BitHex(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; GoString arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoString *argp1 ; GoUint32 result; @@ -14605,17 +14204,34 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DecodeBase return 0; } arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_base58_Base58_BitHex(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFromBytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Int2Base58(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { + jlong jresult = 0 ; + GoInt arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg2_; + arg1 = (GoInt)jarg1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_base58_Int2Base58(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Hex2Base58(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; GoSlice arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoSlice *argp1 ; GoUint32 result; @@ -14629,242 +14245,349 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFro return 0; } arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_base58_Hex2Base58(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFromPubKey(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Hex2Base58String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__PubKey **)&jarg1; - arg2 = *(cipher__Address **)&jarg2; - result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_base58_Hex2Base58String(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFromSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1base58_1Hex2Base58Str(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__SecKey **)&jarg1; - arg2 = *(cipher__Address **)&jarg2; - result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + argp1 = *(GoSlice **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_base58_Hex2Base58Str(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Null(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1NewClient(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(cipher__Address **)&jarg1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(WebRpcClient__Handle **)&jarg2; + result = (GoUint32)SKY_webrpc_NewClient(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1CSRF(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + WebRpcClient__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__Address **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_webrpc_Client_CSRF(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1InjectTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + WebRpcClient__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + WebRpcClient__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__Address **)&jarg1; - arg2 = *(cipher__PubKey **)&jarg2; - result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); + (void)jarg3_; + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; + } + arg1 = *argp1; + argp2 = *(Transaction__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg2 = *argp2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_webrpc_Client_InjectTransaction(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetStatus(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle arg1 ; + StatusResult_Handle *arg2 = (StatusResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__Address **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(StatusResult_Handle **)&jarg2; + result = (GoUint32)SKY_webrpc_Client_GetStatus(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Checksum(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetTransactionByID(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; + WebRpcClient__Handle arg1 ; + GoString arg2 ; + TransactionResult_Handle *arg3 = (TransactionResult_Handle *) 0 ; + WebRpcClient__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(cipher__Address **)&jarg1; - arg2 = *(cipher__Checksum **)&jarg2; - result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); + (void)jarg2_; + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; + } + arg1 = *argp1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = *(TransactionResult_Handle **)&jarg3; + result = (GoUint32)SKY_webrpc_Client_GetTransactionByID(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1JsonEncode_1Handle(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetAddressUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - { - jarg1 = (jlong*)&arg1; + (void)jarg3_; + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; } - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_JsonEncode_Handle(arg1,arg2); + arg1 = *argp1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_webrpc_Client_GetAddressUxOuts(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Progress_1GetCurrent(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetBlocksInRange(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jobject jarg3, GoSlice_ * jarg4, jobject jarg4_) { jlong jresult = 0 ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + WebRpcClient__Handle arg1 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg4_; + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; + } + arg1 = *argp1; { - jarg1 = (jlong*)&arg1; + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_Handle_Progress_GetCurrent(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Block_1GetHeadSeq(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { - jlong jresult = 0 ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; { - jarg1 = (jlong*)&arg1; + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg3); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg3 = 0; + if (sz > 0) { + arg3 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadSeq(arg1,arg2); + arg4 = *(coin__UxArray **)&jarg4; + result = (GoUint32)SKY_webrpc_Client_GetBlocksInRange(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Block_1GetHeadHash(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetBlocksBySeq(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + WebRpcClient__Handle arg1 ; + GoSlice arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - { - jarg1 = (jlong*)&arg1; + (void)jarg3_; + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; } - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_Handle_Block_GetHeadHash(arg1,arg2); - jresult = (jlong)result; - return jresult; -} - - -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Block_1GetPreviousBlockHash(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { - jlong jresult = 0 ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoUint32 result; - - (void)jenv; - (void)jcls; - (void)jarg2_; - { - jarg1 = (jlong*)&arg1; + arg1 = *argp1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; } - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_Handle_Block_GetPreviousBlockHash(arg1,arg2); + arg2 = *argp2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_webrpc_Client_GetBlocksBySeq(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Blocks_1GetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1webrpc_1Client_1GetLastBlocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - Handle arg1 ; + WebRpcClient__Handle arg1 ; GoUint64 arg2 ; - Handle *arg3 = (Handle *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + WebRpcClient__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - { - jarg1 = (jlong*)&arg1; + (void)jarg3_; + argp1 = *(WebRpcClient__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + return 0; } + arg1 = *argp1; { jclass clazz; jmethodID mid; @@ -14891,528 +14614,661 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Blocks_1Ge } (*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0); } - { - jarg3 = (jlong*)&arg3; - } - result = (GoUint32)SKY_Handle_Blocks_GetAt(arg1,arg2,arg3); + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_webrpc_Client_GetLastBlocks(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Blocks_1GetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1LoadConfig(JNIEnv *jenv, jclass jcls, jlong jarg1) { jlong jresult = 0 ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Config__Handle *arg1 = (Config__Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - { - jarg1 = (jlong*)&arg1; - } - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_Handle_Blocks_GetCount(arg1,arg2); + arg1 = *(Config__Handle **)&jarg1; + result = (GoUint32)SKY_cli_LoadConfig(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Connections_1GetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1FullWalletPath(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - { - jarg1 = (jlong*)&arg1; + (void)jarg2_; + argp1 = *(Config__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); + return 0; } - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_Handle_Connections_GetCount(arg1,arg2); + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Strings_1GetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1FullDBPath(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Strings__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Strings__Handle *argp1 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Strings__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Config__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Strings__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_Handle_Strings_GetCount(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Strings_1Sort(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1NewApp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Strings__Handle arg1 ; - Strings__Handle *argp1 ; + Config__Handle arg1 ; + App__Handle *arg2 = (App__Handle *) 0 ; + Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Strings__Handle **)&jarg1; + argp1 = *(Config__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Strings__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_Handle_Strings_Sort(arg1); + arg2 = *(App__Handle **)&jarg2; + result = (GoUint32)SKY_cli_NewApp(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1Handle_1Strings_1GetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1RPCClientFromContext(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Strings__Handle arg1 ; - GoInt arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Strings__Handle *argp1 ; + Context__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Strings__Handle **)&jarg1; + argp1 = *(Context__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Strings__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Context__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_Handle_Strings_GetAt(arg1,arg2,arg3); + arg2 = *(WebRpcClient__Handle **)&jarg2; + result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletDir(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1ConfigFromContext(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Client__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Client__Handle *argp1 ; + Context__Handle arg1 ; + Config__Handle *arg2 = (Config__Handle *) 0 ; + Context__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Client__Handle **)&jarg1; + argp1 = *(Context__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Context__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletDir(arg1,arg2); + arg2 = *(Config__Handle **)&jarg2; + result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletFileName(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1PasswordFromBytes_1Password(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(WalletResponse__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFileName(arg1,arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletLabel(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1PasswordFromTerm_1Password(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { jlong jresult = 0 ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(WalletResponse__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletLabel(arg1,arg2); + (void)jarg1_; + arg1 = *(coin__UxArray **)&jarg1; + result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletFullPath(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GenerateWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg3, jlong jarg4) { jlong jresult = 0 ; - Client__Handle arg1 ; - WalletResponse__Handle arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - Client__Handle *argp1 ; - WalletResponse__Handle *argp2 ; + GoString arg1 ; + Options__Handle *arg2 = (Options__Handle *) 0 ; + GoUint64 arg3 ; + Wallet__Handle *arg4 = (Wallet__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Client__Handle **)&jarg1; + (void)jarg1_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - argp2 = *(WalletResponse__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); - return 0; + arg2 = *(Options__Handle **)&jarg2; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg3); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg3 = 0; + if (sz > 0) { + arg3 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg2 = *argp2; - arg3 = *(GoString_ **)&jarg3; - result = (GoUint32)SKY_api_Handle_Client_GetWalletFullPath(arg1,arg2,arg3); + arg4 = *(Wallet__Handle **)&jarg4; + result = (GoUint32)SKY_cli_GenerateWallet(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletMeta(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1MakeAlphanumericSeed(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoStringMap_ *arg2 = (GoStringMap_ *) 0 ; - Wallet__Handle *argp1 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallet__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoStringMap_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletMeta(arg1,arg2); + (void)jarg1_; + arg1 = *(GoString_ **)&jarg1; + result = (GoUint32)SKY_cli_MakeAlphanumericSeed(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletEntriesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewBlock_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, cipher_SecKey* jarg3, jobject jarg3_, jlong jarg4, jlong jarg5, jlong jarg6) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Wallet__Handle *argp1 ; + Block__Handle arg1 ; + GoUint64 arg2 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Transactions__Handle arg4 ; + FeeCalculator *arg5 = (FeeCalculator *) 0 ; + Block__Handle *arg6 = (Block__Handle *) 0 ; + Block__Handle *argp1 ; + Transactions__Handle *argp4 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallet__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletEntriesCount(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg3 = *(cipher__SHA256 **)&jarg3; + argp4 = *(Transactions__Handle **)&jarg4; + if (!argp4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + return 0; + } + arg4 = *argp4; + arg5 = *(FeeCalculator **)&jarg5; + arg6 = *(Block__Handle **)&jarg6; + result = (GoUint32)SKY_coin_NewBlock(arg1,arg2,(GoUint8_ (*)[32])arg3,arg4,arg5,arg6); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1Client_1GetWalletResponseEntriesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SignedBlock_1VerifySignature(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - WalletResponse__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - WalletResponse__Handle *argp1 ; + coin__SignedBlock *arg1 = (coin__SignedBlock *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(WalletResponse__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_api_Handle_Client_GetWalletResponseEntriesCount(arg1,arg2); + (void)jarg1_; + (void)jarg2_; + arg1 = *(coin__SignedBlock **)&jarg1; + arg2 = *(cipher__PubKey **)&jarg2; + result = (GoUint32)SKY_coin_SignedBlock_VerifySignature(arg1,(GoUint8_ (*)[33])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletGetEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_, cipher__PubKey* jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewGenesisBlock(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jobject jarg3, jlong jarg4) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoUint32 arg2 ; - cipher__Address *arg3 = (cipher__Address *) 0 ; - cipher__PubKey *arg4 = (cipher__PubKey *) 0 ; - Wallet__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint64 arg2 ; + GoUint64 arg3 ; + Block__Handle *arg4 = (Block__Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - (void)jarg4_; - argp1 = *(Wallet__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); - return 0; + (void)jarg1_; + arg1 = *(cipher__Address **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = *(cipher__Address **)&jarg3; - arg4 = *(cipher__PubKey **)&jarg4; - result = (GoUint32)SKY_api_Handle_WalletGetEntry(arg1,arg2,arg3,(GoUint8_ (*)[33])arg4); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg3); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg3 = 0; + if (sz > 0) { + arg3 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + arg4 = *(Block__Handle **)&jarg4; + result = (GoUint32)SKY_coin_NewGenesisBlock(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletResponseGetEntry(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1HashHeader_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - WalletResponse__Handle arg1 ; - GoUint32 arg2 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - (void)jarg4_; - argp1 = *(WalletResponse__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = *(GoString_ **)&jarg3; - arg4 = *(GoString_ **)&jarg4; - result = (GoUint32)SKY_api_Handle_WalletResponseGetEntry(arg1,arg2,arg3,arg4); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_Block_HashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletResponseIsEncrypted(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1PreHashHeader_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - WalletResponse__Handle arg1 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; - WalletResponse__Handle *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(WalletResponse__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseIsEncrypted(arg1,arg2); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_Block_PreHashHeader(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletResponseGetCryptoType(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1Time(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - WalletResponse__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - WalletResponse__Handle *argp1 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(WalletResponse__Handle **)&jarg1; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WalletResponse__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_WalletResponseGetCryptoType(arg1,arg2); + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_coin_Block_Time(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletsResponseGetCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1Seq(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Wallets__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Wallets__Handle *argp1 ; + Block__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallets__Handle **)&jarg1; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallets__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetCount(arg1,arg2); + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_coin_Block_Seq(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1WalletsResponseGetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1HashBody_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Wallets__Handle arg1 ; - GoUint32 arg2 ; - WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; - Wallets__Handle *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Wallets__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallets__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = *(WalletResponse__Handle **)&jarg3; - result = (GoUint32)SKY_api_Handle_WalletsResponseGetAt(arg1,arg2,arg3); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_Block_HashBody(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletFolderAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; + Block__Handle arg1 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - { - jarg1 = (jlong*)&arg1; + argp1 = *(Block__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + return 0; } - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletFolderAddress(arg1,arg2); + arg1 = *argp1; + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_coin_Block_Size(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; + Block__Handle arg1 ; GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletSeed(arg1,arg2); + result = (GoUint32)SKY_coin_Block_String(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetWalletLastSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Block_1GetTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_, jlong jarg3, jlong jarg4) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Wallet__Handle *argp1 ; + Block__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(Block__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_api_Handle_GetWalletLastSeed(arg1,arg2); + arg2 = *(cipher__SHA256 **)&jarg2; + arg3 = *(Transaction__Handle **)&jarg3; + arg4 = *(GoUint8 **)&jarg4; + result = (GoUint32)SKY_coin_Block_GetTransaction(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Handle_1GetBuildInfoData(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_, GoString* jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewBlockHeader(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, jobject jarg3, jobject jarg4, jlong jarg5, jlong jarg6, jobject jarg6_) { jlong jresult = 0 ; - BuildInfo_Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString_ *arg3 = (GoString_ *) 0 ; - GoString_ *arg4 = (GoString_ *) 0 ; - BuildInfo_Handle *argp1 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint64 arg3 ; + GoUint64 arg4 ; + BlockBody__Handle arg5 ; + coin__BlockHeader *arg6 = (coin__BlockHeader *) 0 ; + BlockBody__Handle *argp5 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - argp1 = *(BuildInfo_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BuildInfo_Handle"); + (void)jarg6_; + arg1 = *(coin__BlockHeader **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg3); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg3 = 0; + if (sz > 0) { + arg3 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg4); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg4 = 0; + if (sz > 0) { + arg4 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + argp5 = *(BlockBody__Handle **)&jarg5; + if (!argp5) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BlockBody__Handle"); return 0; } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - arg3 = *(GoString_ **)&jarg3; - arg4 = *(GoString_ **)&jarg4; - result = (GoUint32)SKY_api_Handle_GetBuildInfoData(arg1,arg2,arg3,arg4); + arg5 = *argp5; + arg6 = *(coin__BlockHeader **)&jarg6; + result = (GoUint32)SKY_coin_NewBlockHeader(arg1,(GoUint8_ (*)[32])arg2,arg3,arg4,arg5,arg6); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockHeader_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; @@ -15420,559 +15276,571 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1Hash_ (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(coin__UxOut **)&jarg1; + arg1 = *(coin__BlockHeader **)&jarg1; arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); + result = (GoUint32)SKY_coin_BlockHeader_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1SnapshotHash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockHeader_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(coin__UxOut **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); + arg1 = *(coin__BlockHeader **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_BlockHeader_Bytes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxBody_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockHeader_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxBody *arg1 = (coin__UxBody *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(coin__UxBody **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); + arg1 = *(coin__BlockHeader **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_coin_BlockHeader_String(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1CoinHours(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockBody_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxOut *arg1 = (coin__UxOut *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + BlockBody__Handle arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + BlockBody__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxOut **)&jarg1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + (void)jarg2_; + argp1 = *(BlockBody__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BlockBody__Handle"); + return 0; } - arg3 = *(GoUint64 **)&jarg3; - result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); + arg1 = *argp1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_BlockBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Hashes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockBody_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; + BlockBody__Handle *arg1 = (BlockBody__Handle *) 0 ; + GoUint32 *arg2 = (GoUint32 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); + arg1 = *(BlockBody__Handle **)&jarg1; + arg2 = *(GoUint32 **)&jarg2; + result = (GoUint32)SKY_coin_BlockBody_Size(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1HasDupes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1BlockBody_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + BlockBody__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + BlockBody__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); + (void)jarg2_; + argp1 = *(BlockBody__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null BlockBody__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_BlockBody_Bytes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Sort(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1CreateUnspents_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Transaction__Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - result = (GoUint32)SKY_coin_UxArray_Sort(arg1); + (void)jarg3_; + arg1 = *(coin__BlockHeader **)&jarg1; + argp2 = *(Transaction__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg2 = *argp2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_coin_CreateUnspents(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Len(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1CreateUnspent(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4, jobject jarg4_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt *arg2 = (GoInt *) 0 ; + coin__BlockHeader *arg1 = (coin__BlockHeader *) 0 ; + Transaction__Handle arg2 ; + GoInt arg3 ; + coin__UxOut *arg4 = (coin__UxOut *) 0 ; + Transaction__Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); + (void)jarg4_; + arg1 = *(coin__BlockHeader **)&jarg1; + argp2 = *(Transaction__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + arg4 = *(coin__UxOut **)&jarg4; + result = (GoUint32)SKY_coin_CreateUnspent(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Less_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetBlockObject(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; + Block__Handle arg1 ; + coin__Block **arg2 = (coin__Block **) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = *(GoUint8 **)&jarg4; - result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + argp1 = *(Block__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__Block ***)&jarg2; + result = (GoUint32)SKY_coin_GetBlockObject(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Swap_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetBlockBody(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoInt arg2 ; - GoInt arg3 ; + Block__Handle arg1 ; + BlockBody__Handle *arg2 = (BlockBody__Handle *) 0 ; + Block__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); + argp1 = *(Block__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Block__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(BlockBody__Handle **)&jarg2; + result = (GoUint32)SKY_coin_GetBlockBody(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Coins_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewEmptyBlock(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; + Transactions__Handle arg1 ; + Block__Handle *arg2 = (Block__Handle *) 0 ; + Transactions__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + argp1 = *(Transactions__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(Block__Handle **)&jarg2; + result = (GoUint32)SKY_coin_NewEmptyBlock(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1CoinHours_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1App_1Run(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - GoUint64 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + App__Handle arg1 ; + GoString arg2 ; + App__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + (void)jarg2_; + argp1 = *(App__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null App__Handle"); + return 0; } - arg3 = *(GoUint64 **)&jarg3; - result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); + arg1 = *argp1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_App_Run(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Sub_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1GetCoin(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); + argp1 = *(Config__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_Config_GetCoin(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Add_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1GetRPCAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + Config__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(coin__UxArray **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + argp1 = *(Config__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_Config_GetRPCAddress(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewAddressUxOuts_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1RPCClientFromApp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; + App__Handle arg1 ; + WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; + App__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - arg2 = *(AddressUxOuts_Handle **)&jarg2; - result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); + argp1 = *(App__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null App__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(WebRpcClient__Handle **)&jarg2; + result = (GoUint32)SKY_cli_RPCClientFromApp(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Keys_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Getenv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + GoString arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(AddressUxOuts_Handle **)&jarg1; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cli_Getenv(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Flatten_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Setenv(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + GoString arg1 ; + GoString arg2 ; + GoString *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(AddressUxOuts_Handle **)&jarg1; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_cli_Setenv(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Sub(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Ripemd160_1Set(JNIEnv *jenv, jclass jcls, cipher_Ripemd160* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; + cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(AddressUxOuts_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(AddressUxOuts_Handle **)&jarg2; + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__Ripemd160 **)&jarg1; + argp2 = *(GoSlice **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg2 = *argp2; - arg3 = *(AddressUxOuts_Handle **)&jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Add(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1HashRipemd160(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Ripemd160* jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - AddressUxOuts_Handle arg2 ; - AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; - AddressUxOuts_Handle *argp1 ; - AddressUxOuts_Handle *argp2 ; + GoSlice arg1 ; + cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(AddressUxOuts_Handle **)&jarg1; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - argp2 = *(AddressUxOuts_Handle **)&jarg2; + arg2 = *(cipher__Ripemd160 **)&jarg2; + result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Set_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { + jlong jresult = 0 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__SHA256 **)&jarg1; + argp2 = *(GoSlice **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg2 = *argp2; - arg3 = *(AddressUxOuts_Handle **)&jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); + result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Get_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Hex_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - (void)jarg3_; - argp1 = *(AddressUxOuts_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); + arg1 = *(cipher__SHA256 **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1HasKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Xor(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint8 *arg3 = (GoUint8 *) 0 ; - AddressUxOuts_Handle *argp1 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(AddressUxOuts_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - arg3 = *(GoUint8 **)&jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); + (void)jarg3_; + arg1 = *(cipher__SHA256 **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1GetOutputLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SumSHA256_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoInt *arg3 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(AddressUxOuts_Handle **)&jarg1; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - arg3 = *(GoInt **)&jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Length(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256FromHex_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - AddressUxOuts_Handle *argp1 ; + GoString arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(AddressUxOuts_Handle **)&jarg1; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Set_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DoubleSHA256(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - AddressUxOuts_Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - AddressUxOuts_Handle *argp1 ; + GoSlice arg1 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - (void)jarg3_; - argp1 = *(AddressUxOuts_Handle **)&jarg1; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1encrypt_1ScryptChacha20poly1305_1Encrypt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddSHA256_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { jlong jresult = 0 ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; @@ -15980,357 +15848,232 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1encrypt_1ScryptCha (void)jarg1_; (void)jarg2_; (void)jarg3_; - (void)jarg4_; - arg1 = *(encrypt__ScryptChacha20poly1305 **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoSlice **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg3 = *argp3; - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Encrypt(arg1,arg2,arg3,arg4); + arg1 = *(cipher__SHA256 **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + arg3 = *(cipher__SHA256 **)&jarg3; + result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Merkle(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { + jlong jresult = 0 ; + GoSlice *arg1 = (GoSlice *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(GoSlice **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1encrypt_1ScryptChacha20poly1305_1Decrypt(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Null(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - encrypt__ScryptChacha20poly1305 *arg1 = (encrypt__ScryptChacha20poly1305 *) 0 ; - GoSlice arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - arg1 = *(encrypt__ScryptChacha20poly1305 **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoSlice **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg3 = *argp3; - arg4 = *(coin__UxArray **)&jarg4; - result = (GoUint32)SKY_encrypt_ScryptChacha20poly1305_Decrypt(arg1,arg2,arg3,arg4); + arg1 = *(cipher__SHA256 **)&jarg1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1CreateOptionsHandle(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jshort jarg4, jlong jarg5, jobject jarg5_, jlong jarg6, jobject jarg6_, jobject jarg7, jlong jarg8) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DecodeBase58Address(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoUint8 arg4 ; - GoString arg5 ; - GoString arg6 ; - GoUint64 arg7 ; - Options__Handle *arg8 = (Options__Handle *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp5 ; - GoString *argp6 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - (void)jarg3_; - (void)jarg5_; - (void)jarg6_; argp1 = *(GoString **)&jarg1; if (!argp1) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - arg4 = (GoUint8)jarg4; - argp5 = *(GoString **)&jarg5; - if (!argp5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg5 = *argp5; - argp6 = *(GoString **)&jarg6; - if (!argp6) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg6 = *argp6; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg7) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg7); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg7, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg7 = 0; - if (sz > 0) { - arg7 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg8 = *(Options__Handle **)&jarg8; - result = (GoUint32)SKY_wallet_CreateOptionsHandle(arg1,arg2,arg3,arg4,arg5,arg6,arg7,arg8); + arg2 = *(cipher__Address **)&jarg2; + result = (GoUint32)SKY_cipher_DecodeBase58Address(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1AddPrivateKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFromBytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Wallet__Handle arg1 ; - GoString arg2 ; - Wallet__Handle *argp1 ; - GoString *argp2 ; + GoSlice arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - argp1 = *(Wallet__Handle **)&jarg1; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - result = (GoUint32)SKY_cli_AddPrivateKey(arg1,arg2); + arg2 = *(cipher__Address **)&jarg2; + result = (GoUint32)SKY_cipher_AddressFromBytes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1AddPrivateKeyToFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFromPubKey(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoString arg1 ; - GoString arg2 ; - PasswordReader__Handle arg3 ; - GoString *argp1 ; - GoString *argp2 ; - PasswordReader__Handle *argp3 ; + cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(PasswordReader__Handle **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); - return 0; - } - arg3 = *argp3; - result = (GoUint32)SKY_cli_AddPrivateKeyToFile(arg1,arg2,arg3); + arg1 = *(cipher__PubKey **)&jarg1; + arg2 = *(cipher__Address **)&jarg2; + result = (GoUint32)SKY_cipher_AddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1apputil_1CatchInterruptPanic(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddressFromSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; + cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - result = (GoUint32)SKY_apputil_CatchInterruptPanic(); + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__SecKey **)&jarg1; + arg2 = *(cipher__Address **)&jarg2; + result = (GoUint32)SKY_cipher_AddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1apputil_1CatchDebug(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Null(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - result = (GoUint32)SKY_apputil_CatchDebug(); + (void)jarg1_; + arg1 = *(cipher__Address **)&jarg1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_cipher_Address_Null(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1apputil_1PrintProgramStatus(JNIEnv *jenv, jclass jcls) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - result = (GoUint32)SKY_apputil_PrintProgramStatus(); + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__Address **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_cipher_Address_Bytes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1certutil_1NewTLSCertPair(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_, GoSlice_ * jarg5, jobject jarg5_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoString arg1 ; - GoString arg2 ; - GoSlice arg3 ; - coin__UxArray *arg4 = (coin__UxArray *) 0 ; - coin__UxArray *arg5 = (coin__UxArray *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoSlice *argp3 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - (void)jarg5_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoSlice **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg3 = *argp3; - arg4 = *(coin__UxArray **)&jarg4; - arg5 = *(coin__UxArray **)&jarg5; - result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); + arg1 = *(cipher__Address **)&jarg1; + arg2 = *(cipher__PubKey **)&jarg2; + result = (GoUint32)SKY_cipher_Address_Verify(arg1,(GoUint8_ (*)[33])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1VerifyTransactionFee(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - GoUint32 arg3 ; - Transaction__Handle *argp1 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(cipher__Address **)&jarg1; + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_cipher_Address_String(arg1,arg2); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Address_1Checksum(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { + jlong jresult = 0 ; + cipher__Address *arg1 = (cipher__Address *) 0 ; + cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; - } - arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg3 = (GoUint32)jarg3; - result = (GoUint32)SKY_fee_VerifyTransactionFee(arg1,arg2,arg3); + (void)jarg1_; + arg1 = *(cipher__Address **)&jarg1; + arg2 = *(cipher__Checksum **)&jarg2; + result = (GoUint32)SKY_cipher_Address_Checksum(arg1,(GoUint8_ (*)[4])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1VerifyTransactionFeeForHours(JNIEnv *jenv, jclass jcls, jobject jarg1, jobject jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewBalance(JNIEnv *jenv, jclass jcls, jobject jarg1, jobject jarg2, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; GoUint64 arg1 ; GoUint64 arg2 ; - GoUint32 arg3 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg3_; { jclass clazz; jmethodID mid; @@ -16383,22 +16126,24 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1VerifyTransac } (*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0); } - arg3 = (GoUint32)jarg3; - result = (GoUint32)SKY_fee_VerifyTransactionFeeForHours(arg1,arg2,arg3); + arg3 = *(wallet__Balance **)&jarg3; + result = (GoUint32)SKY_wallet_NewBalance(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1RequiredFee(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1NewBalanceFromUxOut(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; GoUint64 arg1 ; - GoUint32 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + coin__UxOut *arg2 = (coin__UxOut *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg2_; + (void)jarg3_; { jclass clazz; jmethodID mid; @@ -16425,291 +16170,284 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1RequiredFee(J } (*jenv)->ReleaseByteArrayElements(jenv, ba, bae, 0); } - arg2 = (GoUint32)jarg2; - arg3 = *(GoUint64 **)&jarg3; - result = (GoUint32)SKY_fee_RequiredFee(arg1,arg2,arg3); + arg2 = *(coin__UxOut **)&jarg2; + arg3 = *(wallet__Balance **)&jarg3; + result = (GoUint32)SKY_wallet_NewBalanceFromUxOut(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1RemainingHours(JNIEnv *jenv, jclass jcls, jobject jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1Add(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - GoUint64 arg1 ; - GoUint32 arg2 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg2 = (GoUint32)jarg2; - arg3 = *(GoUint64 **)&jarg3; - result = (GoUint32)SKY_fee_RemainingHours(arg1,arg2,arg3); + (void)jarg1_; + (void)jarg2_; + (void)jarg3_; + arg1 = *(wallet__Balance **)&jarg1; + arg2 = *(wallet__Balance **)&jarg2; + arg3 = *(wallet__Balance **)&jarg3; + result = (GoUint32)SKY_wallet_Balance_Add(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1fee_1TransactionFee_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, GoSlice_ * jarg3, jobject jarg3_, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1Sub(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoUint64 arg2 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; - GoUint64 *arg4 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + wallet__Balance *arg3 = (wallet__Balance *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; + (void)jarg2_; (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; - } - arg1 = *argp1; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg2); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg2 = 0; - if (sz > 0) { - arg2 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg3 = *(coin__UxArray **)&jarg3; - arg4 = *(GoUint64 **)&jarg4; - result = (GoUint32)SKY_fee_TransactionFee(arg1,arg2,arg3,arg4); + arg1 = *(wallet__Balance **)&jarg1; + arg2 = *(wallet__Balance **)&jarg2; + arg3 = *(wallet__Balance **)&jarg3; + result = (GoUint32)SKY_wallet_Balance_Sub(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1LoadConfig(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1Equals(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Config__Handle *arg1 = (Config__Handle *) 0 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + wallet__Balance *arg2 = (wallet__Balance *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - arg1 = *(Config__Handle **)&jarg1; - result = (GoUint32)SKY_cli_LoadConfig(arg1); + (void)jarg1_; + (void)jarg2_; + arg1 = *(wallet__Balance **)&jarg1; + arg2 = *(wallet__Balance **)&jarg2; + arg3 = *(GoUint8 **)&jarg3; + result = (GoUint32)SKY_wallet_Balance_Equals(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1FullWalletPath(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Balance_1IsZero(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; + wallet__Balance *arg1 = (wallet__Balance *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Config__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_Config_FullWalletPath(arg1,arg2); + (void)jarg1_; + arg1 = *(wallet__Balance **)&jarg1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_wallet_Balance_IsZero(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1Config_1FullDBPath(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1apputil_1CatchInterruptPanic(JNIEnv *jenv, jclass jcls) { jlong jresult = 0 ; - Config__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Config__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Config__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cli_Config_FullDBPath(arg1,arg2); + result = (GoUint32)SKY_apputil_CatchInterruptPanic(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1apputil_1CatchDebug(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + result = (GoUint32)SKY_apputil_CatchDebug(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1apputil_1PrintProgramStatus(JNIEnv *jenv, jclass jcls) { + jlong jresult = 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + result = (GoUint32)SKY_apputil_PrintProgramStatus(); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Entry_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(wallet__Entry **)&jarg1; + result = (GoUint32)SKY_wallet_Entry_Verify(arg1); + jresult = (jlong)result; + return jresult; +} + + +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1wallet_1Entry_1VerifyPublic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { + jlong jresult = 0 ; + wallet__Entry *arg1 = (wallet__Entry *) 0 ; + GoUint32 result; + + (void)jenv; + (void)jcls; + (void)jarg1_; + arg1 = *(wallet__Entry **)&jarg1; + result = (GoUint32)SKY_wallet_Entry_VerifyPublic(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1NewApp(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1NewDefaultMnemomic(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { jlong jresult = 0 ; - Config__Handle arg1 ; - App__Handle *arg2 = (App__Handle *) 0 ; - Config__Handle *argp1 ; + GoString_ *arg1 = (GoString_ *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Config__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Config__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(App__Handle **)&jarg2; - result = (GoUint32)SKY_cli_NewApp(arg1,arg2); + (void)jarg1_; + arg1 = *(GoString_ **)&jarg1; + result = (GoUint32)SKY_bip39_NewDefaultMnemomic(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1RPCClientFromContext(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1NewEntropy(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Context__Handle arg1 ; - WebRpcClient__Handle *arg2 = (WebRpcClient__Handle *) 0 ; - Context__Handle *argp1 ; + GoInt arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Context__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Context__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(WebRpcClient__Handle **)&jarg2; - result = (GoUint32)SKY_cli_RPCClientFromContext(arg1,arg2); + (void)jarg2_; + arg1 = (GoInt)jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_bip39_NewEntropy(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1ConfigFromContext(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1NewMnemonic(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - Context__Handle arg1 ; - Config__Handle *arg2 = (Config__Handle *) 0 ; - Context__Handle *argp1 ; + GoSlice arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + GoSlice *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Context__Handle **)&jarg1; + (void)jarg1_; + (void)jarg2_; + argp1 = *(GoSlice **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Context__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } arg1 = *argp1; - arg2 = *(Config__Handle **)&jarg2; - result = (GoUint32)SKY_cli_ConfigFromContext(arg1,arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_bip39_NewMnemonic(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1PasswordFromBytes_1Password(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1MnemonicToByteArray(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoString arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(coin__UxArray **)&jarg1; + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_cli_PasswordFromBytes_Password(arg1,arg2); + result = (GoUint32)SKY_bip39_MnemonicToByteArray(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1PasswordFromTerm_1Password(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1bip39_1IsMnemonicValid(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoString arg1 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(coin__UxArray **)&jarg1; - result = (GoUint32)SKY_cli_PasswordFromTerm_Password(arg1); + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_bip39_IsMnemonicValid(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTxFromWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jlong jarg6) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1certutil_1NewTLSCertPair(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoSlice_ * jarg4, jobject jarg4_, GoSlice_ * jarg5, jobject jarg5_) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; + GoString arg1 ; GoString arg2 ; - GoString arg3 ; - GoSlice arg4 ; - PasswordReader__Handle arg5 ; - Transaction__Handle *arg6 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + GoSlice arg3 ; + coin__UxArray *arg4 = (coin__UxArray *) 0 ; + coin__UxArray *arg5 = (coin__UxArray *) 0 ; + GoString *argp1 ; GoString *argp2 ; - GoString *argp3 ; - GoSlice *argp4 ; - PasswordReader__Handle *argp5 ; + GoSlice *argp3 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; (void)jarg3_; (void)jarg4_; - argp1 = *(WebRpcClient__Handle **)&jarg1; + (void)jarg5_; + argp1 = *(GoString **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg1 = *argp1; @@ -16719,1997 +16457,2259 @@ SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTxFr return 0; } arg2 = *argp2; - argp3 = *(GoString **)&jarg3; + argp3 = *(GoSlice **)&jarg3; if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - argp4 = *(GoSlice **)&jarg4; - if (!argp4) { SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg4 = *argp4; - argp5 = *(PasswordReader__Handle **)&jarg5; - if (!argp5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); - return 0; - } - arg5 = *argp5; - arg6 = *(Transaction__Handle **)&jarg6; - result = (GoUint32)SKY_cli_CreateRawTxFromWallet(arg1,arg2,arg3,arg4,arg5,arg6); + arg3 = *argp3; + arg4 = *(coin__UxArray **)&jarg4; + arg5 = *(coin__UxArray **)&jarg5; + result = (GoUint32)SKY_certutil_NewTLSCertPair(arg1,arg2,arg3,arg4,arg5); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTxFromAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jobject jarg5_, jlong jarg6, jlong jarg7) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString arg4 ; - GoSlice arg5 ; - PasswordReader__Handle arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; - GoString *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - PasswordReader__Handle *argp6 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg1_; (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - (void)jarg5_; - argp1 = *(WebRpcClient__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - argp4 = *(GoString **)&jarg4; - if (!argp4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg4 = *argp4; - argp5 = *(GoSlice **)&jarg5; - if (!argp5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg5 = *argp5; - argp6 = *(PasswordReader__Handle **)&jarg6; - if (!argp6) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null PasswordReader__Handle"); - return 0; - } - arg6 = *argp6; - arg7 = *(Transaction__Handle **)&jarg7; - result = (GoUint32)SKY_cli_CreateRawTxFromAddress(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + arg1 = *(coin__UxOut **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_UxOut_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1CreateRawTx(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jobject jarg5_, jlong jarg6, jobject jarg6_, jlong jarg7) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1SnapshotHash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - Wallet__Handle arg2 ; - GoSlice arg3 ; - GoString arg4 ; - GoSlice arg5 ; - GoSlice arg6 ; - Transaction__Handle *arg7 = (Transaction__Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - Wallet__Handle *argp2 ; - GoSlice *argp3 ; - GoString *argp4 ; - GoSlice *argp5 ; - GoSlice *argp6 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; - (void)jenv; - (void)jcls; - (void)jarg3_; - (void)jarg4_; - (void)jarg5_; - (void)jarg6_; - argp1 = *(WebRpcClient__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); - return 0; - } - arg1 = *argp1; - argp2 = *(Wallet__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Wallet__Handle"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoSlice **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg3 = *argp3; - argp4 = *(GoString **)&jarg4; - if (!argp4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg4 = *argp4; - argp5 = *(GoSlice **)&jarg5; - if (!argp5) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg5 = *argp5; - argp6 = *(GoSlice **)&jarg6; - if (!argp6) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg6 = *argp6; - arg7 = *(Transaction__Handle **)&jarg7; - result = (GoUint32)SKY_cli_CreateRawTx(arg1,arg2,arg3,arg4,arg5,arg6,arg7); + (void)jenv; + (void)jcls; + (void)jarg1_; + (void)jarg2_; + arg1 = *(coin__UxOut **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_UxOut_SnapshotHash(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1NewTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxBody_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - GoSlice arg2 ; - GoSlice arg3 ; - Transaction__Handle *arg4 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; - GoSlice *argp2 ; - GoSlice *argp3 ; + coin__UxBody *arg1 = (coin__UxBody *) 0 ; + cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - (void)jarg3_; - argp1 = *(GoSlice **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoSlice **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; - } - arg3 = *argp3; - arg4 = *(Transaction__Handle **)&jarg4; - result = (GoUint32)SKY_cli_NewTransaction(arg1,arg2,arg3,arg4); + arg1 = *(coin__UxBody **)&jarg1; + arg2 = *(cipher__SHA256 **)&jarg2; + result = (GoUint32)SKY_coin_UxBody_Hash(arg1,(GoUint8_ (*)[32])arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1InitDataDir(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxOut_1CoinHours(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jobject jarg2, jlong jarg3) { jlong jresult = 0 ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + coin__UxOut *arg1 = (coin__UxOut *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; + arg1 = *(coin__UxOut **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_file_InitDataDir(arg1,arg2); + arg3 = *(GoUint64 **)&jarg3; + result = (GoUint32)SKY_coin_UxOut_CoinHours(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1UserHome(JNIEnv *jenv, jclass jcls, GoString* jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Hashes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoString_ *arg1 = (GoString_ *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - arg1 = *(GoString_ **)&jarg1; - result = (GoUint32)SKY_file_UserHome(arg1); + (void)jarg2_; + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_UxArray_Hashes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1ResolveResourceDirectory(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1HasDupes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - GoString arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - GoString *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint8 *arg2 = (GoUint8 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_file_ResolveResourceDirectory(arg1,arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(GoUint8 **)&jarg2; + result = (GoUint32)SKY_coin_UxArray_HasDupes(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1file_1DetermineResourcePath(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Sort(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_) { jlong jresult = 0 ; - GoString arg1 ; - GoString arg2 ; - GoString arg3 ; - GoString_ *arg4 = (GoString_ *) 0 ; - GoString *argp1 ; - GoString *argp2 ; - GoString *argp3 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - (void)jarg4_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - argp2 = *(GoString **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg2 = *argp2; - argp3 = *(GoString **)&jarg3; - if (!argp3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg3 = *argp3; - arg4 = *(GoString_ **)&jarg4; - result = (GoUint32)SKY_file_DetermineResourcePath(arg1,arg2,arg3,arg4); + arg1 = *(coin__UxArray **)&jarg1; + result = (GoUint32)SKY_coin_UxArray_Sort(arg1); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DecodeBase58BitcoinAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Len(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - GoString arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - GoString *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt *arg2 = (GoInt *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__BitcoinAddress **)&jarg2; - result = (GoUint32)SKY_cipher_DecodeBase58BitcoinAddress(arg1,arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_UxArray_Len(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddressFromPubKey(JNIEnv *jenv, jclass jcls, cipher__PubKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { - cipher__PubKey *arg1 = (cipher__PubKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Less_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2, jlong jarg3, jlong jarg4) { + jlong jresult = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; + GoUint8 *arg4 = (GoUint8 *) 0 ; + GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__PubKey **)&jarg1; - arg2 = *(cipher__BitcoinAddress **)&jarg2; - SKY_cipher_BitcoinAddressFromPubKey((GoUint8_ (*)[33])arg1,arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + arg4 = *(GoUint8 **)&jarg4; + result = (GoUint32)SKY_coin_UxArray_Less(arg1,arg2,arg3,arg4); + jresult = (jlong)result; + return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddressFromSecKey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Swap_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoInt arg2 ; + GoInt arg3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__SecKey **)&jarg1; - arg2 = *(cipher__BitcoinAddress **)&jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromSecKey((GoUint8_ (*)[32])arg1,arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = (GoInt)jarg2; + arg3 = (GoInt)jarg3; + result = (GoUint32)SKY_coin_UxArray_Swap(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinWalletImportFormatFromSeckey(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { - cipher__SecKey *arg1 = (cipher__SecKey *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Coins_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { + jlong jresult = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__SecKey **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - SKY_cipher_BitcoinWalletImportFormatFromSeckey((GoUint8_ (*)[32])arg1,arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_coin_UxArray_Coins(arg1,arg2); + jresult = (jlong)result; + return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddressFromBytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1CoinHours_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jobject jarg2, jlong jarg3) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__BitcoinAddress *arg2 = (cipher__BitcoinAddress *) 0 ; - GoSlice *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + GoUint64 arg2 ; + GoUint64 *arg3 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); - return 0; + arg1 = *(coin__UxArray **)&jarg1; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); } - arg1 = *argp1; - arg2 = *(cipher__BitcoinAddress **)&jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddressFromBytes(arg1,arg2); + arg3 = *(GoUint64 **)&jarg3; + result = (GoUint32)SKY_coin_UxArray_CoinHours(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SecKeyFromBitcoinWalletImportFormat(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Sub_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - GoString arg1 ; - cipher__SecKey *arg2 = (cipher__SecKey *) 0 ; - GoString *argp1 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - argp1 = *(GoString **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); - return 0; - } - arg1 = *argp1; - arg2 = *(cipher__SecKey **)&jarg2; - result = (GoUint32)SKY_cipher_SecKeyFromBitcoinWalletImportFormat(arg1,(GoUint8_ (*)[32])arg2); + (void)jarg3_; + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_coin_UxArray_Sub(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jshort JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Null(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { - jshort jresult = 0 ; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoUint8 result; - - (void)jenv; - (void)jcls; - (void)jarg1_; - arg1 = *(cipher__BitcoinAddress **)&jarg1; - result = (GoUint8)SKY_cipher_BitcoinAddress_Null(arg1); - jresult = (jshort)result; - return jresult; -} - - -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Bytes(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1UxArray_1Add_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { + jlong jresult = 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__BitcoinAddress **)&jarg1; + (void)jarg3_; + arg1 = *(coin__UxArray **)&jarg1; arg2 = *(coin__UxArray **)&jarg2; - SKY_cipher_BitcoinAddress_Bytes(arg1,arg2); + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_coin_UxArray_Add(arg1,arg2,arg3); + jresult = (jlong)result; + return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher__PubKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewAddressUxOuts_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__PubKey *arg2 = (cipher__PubKey *) 0 ; + coin__UxArray *arg1 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *arg2 = (AddressUxOuts_Handle *) 0 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__BitcoinAddress **)&jarg1; - arg2 = *(cipher__PubKey **)&jarg2; - result = (GoUint32)SKY_cipher_BitcoinAddress_Verify(arg1,(GoUint8_ (*)[33])arg2); + arg1 = *(coin__UxArray **)&jarg1; + arg2 = *(AddressUxOuts_Handle **)&jarg2; + result = (GoUint32)SKY_coin_NewAddressUxOuts(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1String(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Keys_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { + jlong jresult = 0 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__BitcoinAddress **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - SKY_cipher_BitcoinAddress_String(arg1,arg2); + argp1 = *(AddressUxOuts_Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Keys(arg1,arg2); + jresult = (jlong)result; + return jresult; } -SWIGEXPORT void JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1BitcoinAddress_1Checksum(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { - cipher__BitcoinAddress *arg1 = (cipher__BitcoinAddress *) 0 ; - cipher__Checksum *arg2 = (cipher__Checksum *) 0 ; +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Flatten_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { + jlong jresult = 0 ; + AddressUxOuts_Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; + GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(cipher__BitcoinAddress **)&jarg1; - arg2 = *(cipher__Checksum **)&jarg2; - SKY_cipher_BitcoinAddress_Checksum(arg1,(GoUint8_ (*)[4])arg2); + (void)jarg2_; + argp1 = *(AddressUxOuts_Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Flatten(arg1,arg2); + jresult = (jlong)result; + return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GetWalletOutputsFromFile(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Sub(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - GoString arg2 ; - ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; - GoString *argp2 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(WebRpcClient__Handle **)&jarg1; + argp1 = *(AddressUxOuts_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoString **)&jarg2; + argp2 = *(AddressUxOuts_Handle **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); return 0; } arg2 = *argp2; - arg3 = *(ReadableUnspentOutputsSummary_Handle **)&jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputsFromFile(arg1,arg2,arg3); + arg3 = *(AddressUxOuts_Handle **)&jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Sub(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cli_1GetWalletOutputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Add(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - WebRpcClient__Handle arg1 ; - Wallet__Handle *arg2 = (Wallet__Handle *) 0 ; - ReadableUnspentOutputsSummary_Handle *arg3 = (ReadableUnspentOutputsSummary_Handle *) 0 ; - WebRpcClient__Handle *argp1 ; + AddressUxOuts_Handle arg1 ; + AddressUxOuts_Handle arg2 ; + AddressUxOuts_Handle *arg3 = (AddressUxOuts_Handle *) 0 ; + AddressUxOuts_Handle *argp1 ; + AddressUxOuts_Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(WebRpcClient__Handle **)&jarg1; + argp1 = *(AddressUxOuts_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null WebRpcClient__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); return 0; } arg1 = *argp1; - arg2 = *(Wallet__Handle **)&jarg2; - arg3 = *(ReadableUnspentOutputsSummary_Handle **)&jarg3; - result = (GoUint32)SKY_cli_GetWalletOutputs(arg1,arg2,arg3); + argp2 = *(AddressUxOuts_Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + return 0; + } + arg2 = *argp2; + arg3 = *(AddressUxOuts_Handle **)&jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Add(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1testutil_1MakeAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Get_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - cipher__Address *arg1 = (cipher__Address *) 0 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(cipher__Address **)&jarg1; - result = (GoUint32)SKY_testutil_MakeAddress(arg1); + (void)jarg2_; + (void)jarg3_; + argp1 = *(AddressUxOuts_Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(cipher__Address **)&jarg2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Get(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Ripemd160_1Set(JNIEnv *jenv, jclass jcls, cipher_Ripemd160* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1HasKey(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - cipher__Ripemd160 *arg1 = (cipher__Ripemd160 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoUint8 *arg3 = (GoUint8 *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__Ripemd160 **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + argp1 = *(AddressUxOuts_Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_cipher_Ripemd160_Set((GoUint8_ (*)[20])arg1,arg2); + arg1 = *argp1; + arg2 = *(cipher__Address **)&jarg2; + arg3 = *(GoUint8 **)&jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_HasKey(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1HashRipemd160(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_Ripemd160* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1GetOutputLength(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__Ripemd160 *arg2 = (cipher__Ripemd160 *) 0 ; - GoSlice *argp1 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + GoInt *arg3 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(AddressUxOuts_Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__Ripemd160 **)&jarg2; - result = (GoUint32)SKY_cipher_HashRipemd160(arg1,(GoUint8_ (*)[20])arg2); + arg2 = *(cipher__Address **)&jarg2; + arg3 = *(GoInt **)&jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_GetOutputLength(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Set_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Length(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoSlice arg2 ; - GoSlice *argp2 ; + AddressUxOuts_Handle arg1 ; + GoInt *arg2 = (GoInt *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - arg1 = *(cipher__SHA256 **)&jarg1; - argp2 = *(GoSlice **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + argp1 = *(AddressUxOuts_Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); return 0; } - arg2 = *argp2; - result = (GoUint32)SKY_cipher_SHA256_Set((GoUint8_ (*)[32])arg1,arg2); + arg1 = *argp1; + arg2 = *(GoInt **)&jarg2; + result = (GoUint32)SKY_coin_AddressUxOuts_Length(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Hex_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1AddressUxOuts_1Set_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { jlong jresult = 0 ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoString_ *arg2 = (GoString_ *) 0 ; + AddressUxOuts_Handle arg1 ; + cipher__Address *arg2 = (cipher__Address *) 0 ; + coin__UxArray *arg3 = (coin__UxArray *) 0 ; + AddressUxOuts_Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(cipher__SHA256 **)&jarg1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_cipher_SHA256_Hex((GoUint8_ (*)[32])arg1,arg2); + (void)jarg3_; + argp1 = *(AddressUxOuts_Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null AddressUxOuts_Handle"); + return 0; + } + arg1 = *argp1; + arg2 = *(cipher__Address **)&jarg2; + arg3 = *(coin__UxArray **)&jarg3; + result = (GoUint32)SKY_coin_AddressUxOuts_Set(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Xor(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1NewClient(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { jlong jresult = 0 ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + GoString arg1 ; + Client__Handle *arg2 = (Client__Handle *) 0 ; + GoString *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg1_; - (void)jarg2_; - (void)jarg3_; - arg1 = *(cipher__SHA256 **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_cipher_SHA256_Xor((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + argp1 = *(GoString **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg1 = *argp1; + arg2 = *(Client__Handle **)&jarg2; + result = (GoUint32)SKY_api_NewClient(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SumSHA256_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CSRF(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + GoString_ *arg2 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_cipher_SumSHA256(arg1,(GoUint8_ (*)[32])arg2); + arg2 = *(GoString_ **)&jarg2; + result = (GoUint32)SKY_api_Client_CSRF(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256FromHex_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Version(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoString arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoString *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoString **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_cipher_SHA256FromHex(arg1,(GoUint8_ (*)[32])arg2); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_Version(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1DoubleSHA256(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Outputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoSlice arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; - argp1 = *(GoSlice **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_cipher_DoubleSHA256(arg1,(GoUint8_ (*)[32])arg2); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_Outputs(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1AddSHA256_1_1SWIG_11(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1OutputsForAddresses(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - (void)jarg3_; - arg1 = *(cipher__SHA256 **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_cipher_AddSHA256((GoUint8_ (*)[32])arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + argp1 = *(Client__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + return 0; + } + arg1 = *argp1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_OutputsForAddresses(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1Merkle(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1OutputsForHashes(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoSlice *arg1 = (GoSlice *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(GoSlice **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_cipher_Merkle(arg1,(GoUint8_ (*)[32])arg2); + argp1 = *(Client__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + return 0; + } + arg1 = *argp1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_OutputsForHashes(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1cipher_1SHA256_1Null(JNIEnv *jenv, jclass jcls, cipher_SecKey* jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CoinSupply(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - cipher__SHA256 *arg1 = (cipher__SHA256 *) 0 ; - GoUint8 *arg2 = (GoUint8 *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - arg1 = *(cipher__SHA256 **)&jarg1; - arg2 = *(GoUint8 **)&jarg2; - result = (GoUint32)SKY_cipher_SHA256_Null((GoUint8_ (*)[32])arg1,arg2); + argp1 = *(Client__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + return 0; + } + arg1 = *argp1; + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_CoinSupply(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Create_1Transaction(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockByHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle *arg1 = (Transaction__Handle *) 0 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - arg1 = *(Transaction__Handle **)&jarg1; - result = (GoUint32)SKY_coin_Create_Transaction(arg1); + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + return 0; + } + arg1 = *argp1; + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_BlockByHash(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Copy(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockBySeq(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(Transaction__Handle **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_Copy(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_BlockBySeq(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetTransactionObject_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Blocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - coin__Transaction **arg2 = (coin__Transaction **) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__Transaction ***)&jarg2; - result = (GoUint32)SKY_coin_GetTransactionObject(arg1,arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_Blocks(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1ResetInputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1LastBlocks(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg2, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoUint64 arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetInputs(arg1,arg2); + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg2); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg2, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg2 = 0; + if (sz > 0) { + arg2 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_LastBlocks(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetInputsCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockchainMetadata(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_GetInputsCount(arg1,arg2); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_BlockchainMetadata(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetInputAt_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1BlockchainProgress(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_GetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_BlockchainProgress(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SetInputAt_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Balance(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoSlice arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg2_; (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_SetInputAt(arg1,arg2,(GoUint8_ (*)[32])arg3); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + arg3 = *(wallet__BalancePair **)&jarg3; + result = (GoUint32)SKY_api_Client_Balance(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetOutputsCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UxOut(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_GetOutputsCount(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_UxOut(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetOutputAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1AddressUxOuts(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(coin__TransactionOutput **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_GetOutputAt(arg1,arg2,arg3); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_AddressUxOuts(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SetOutputAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Wallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - coin__TransactionOutput *arg3 = (coin__TransactionOutput *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + WalletResponse__Handle *arg3 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(coin__TransactionOutput **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_SetOutputAt(arg1,arg2,arg3); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = *(WalletResponse__Handle **)&jarg3; + result = (GoUint32)SKY_api_Client_Wallet(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetSignaturesCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Wallets(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Wallets__Handle *arg2 = (Wallets__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_GetSignaturesCount(arg1,arg2); + arg2 = *(Wallets__Handle **)&jarg2; + result = (GoUint32)SKY_api_Client_Wallets(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1GetSignatureAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_Sig* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CreateUnencryptedWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jlong jarg5) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoInt arg4 ; + WalletResponse__Handle *arg5 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg2_; (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(cipher__Sig **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_GetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + arg4 = (GoInt)jarg4; + arg5 = *(WalletResponse__Handle **)&jarg5; + result = (GoUint32)SKY_api_Client_CreateUnencryptedWallet(arg1,arg2,arg3,arg4,arg5); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SetSignatureAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_Sig* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CreateEncryptedWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4, jobject jarg4_, jlong jarg5, jlong jarg6) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - cipher__Sig *arg3 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString arg4 ; + GoInt arg5 ; + WalletResponse__Handle *arg6 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp4 ; GoUint32 result; (void)jenv; (void)jcls; + (void)jarg2_; (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg4_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(cipher__Sig **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_SetSignatureAt(arg1,arg2,(GoUint8_ (*)[65])arg3); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + argp4 = *(GoString **)&jarg4; + if (!argp4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg4 = *argp4; + arg5 = (GoInt)jarg5; + arg6 = *(WalletResponse__Handle **)&jarg6; + result = (GoUint32)SKY_api_Client_CreateEncryptedWallet(arg1,arg2,arg3,arg4,arg5,arg6); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1PushSignature(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_Sig* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NewWalletAddress(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jlong jarg4, jobject jarg4_, jlong jarg5) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - cipher__Sig *arg2 = (cipher__Sig *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoInt arg3 ; + GoString arg4 ; + Strings__Handle *arg5 = (Strings__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp4 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg4_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__Sig **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_PushSignature(arg1,(GoUint8_ (*)[65])arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = (GoInt)jarg3; + argp4 = *(GoString **)&jarg4; + if (!argp4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg4 = *argp4; + arg5 = *(Strings__Handle **)&jarg5; + result = (GoUint32)SKY_api_Client_NewWalletAddress(arg1,arg2,arg3,arg4,arg5); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1ResetOutputs(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1WalletBalance(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + wallet__BalancePair *arg3 = (wallet__BalancePair *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + (void)jarg3_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetOutputs(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = *(wallet__BalancePair **)&jarg3; + result = (GoUint32)SKY_api_Client_WalletBalance(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1ResetSignatures(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Spend(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jobject jarg4, jlong jarg5, jobject jarg5_, jlong jarg6) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoUint64 arg4 ; + GoString arg5 ; + SpendResult_Handle *arg6 = (SpendResult_Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; + GoString *argp5 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + (void)jarg3_; + (void)jarg5_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - result = (GoUint32)SKY_coin_Transaction_ResetSignatures(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + { + jclass clazz; + jmethodID mid; + jbyteArray ba; + jbyte* bae; + jsize sz; + int i; + + if (!jarg4) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); + return 0; + } + clazz = (*jenv)->GetObjectClass(jenv, jarg4); + mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); + ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid); + bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); + sz = (*jenv)->GetArrayLength(jenv, ba); + arg4 = 0; + if (sz > 0) { + arg4 = (GoUint64)(signed char)bae[0]; + for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + } + argp5 = *(GoString **)&jarg5; + if (!argp5) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg5 = *argp5; + arg6 = *(SpendResult_Handle **)&jarg6; + result = (GoUint32)SKY_api_Client_Spend(arg1,arg2,arg3,arg4,arg5,arg6); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Verify(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1CreateTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + CreateTransactionResponse__Handle *arg3 = (CreateTransactionResponse__Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_coin_Transaction_Verify(arg1); + { + jarg2 = (jlong*)&arg2; + } + arg3 = *(CreateTransactionResponse__Handle **)&jarg3; + result = (GoUint32)SKY_api_Client_CreateTransaction(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1VerifyInput_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UpdateWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_VerifyInput(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + result = (GoUint32)SKY_api_Client_UpdateWallet(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1PushInput_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1WalletFolderName(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - GoUint16 *arg3 = (GoUint16 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(GoUint16 **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_PushInput(arg1,(GoUint8_ (*)[32])arg2,arg3); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_WalletFolderName(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1TransactionOutput_1UxID(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, cipher_SecKey* jarg2, jobject jarg2_, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NewSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; - coin__TransactionOutput *arg1 = (coin__TransactionOutput *) 0 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; + Client__Handle arg1 ; + GoInt arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - (void)jarg2_; (void)jarg3_; - arg1 = *(coin__TransactionOutput **)&jarg1; - arg2 = *(cipher__SHA256 **)&jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_coin_TransactionOutput_UxID(arg1,(GoUint8_ (*)[32])arg2,(GoUint8_ (*)[32])arg3); + argp1 = *(Client__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + return 0; + } + arg1 = *argp1; + arg2 = (GoInt)jarg2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_api_Client_NewSeed(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1PushOutput(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jobject jarg3, jobject jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1WalletSeed(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, GoString* jarg4, jobject jarg4_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - cipher__Address *arg2 = (cipher__Address *) 0 ; - GoUint64 arg3 ; - GoUint64 arg4 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + GoString_ *arg4 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg3_; + (void)jarg4_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__Address **)&jarg2; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg3) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg3); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg3, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg3 = 0; - if (sz > 0) { - arg3 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; } - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg4) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg4); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg4, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg4 = 0; - if (sz > 0) { - arg4 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; } - result = (GoUint32)SKY_coin_Transaction_PushOutput(arg1,arg2,arg3,arg4); + arg3 = *argp3; + arg4 = *(GoString_ **)&jarg4; + result = (GoUint32)SKY_api_Client_WalletSeed(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SignInputs_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkConnection(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoSlice arg2 ; - Transaction__Handle *argp1 ; - GoSlice *argp2 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - argp2 = *(GoSlice **)&jarg2; + argp2 = *(GoString **)&jarg2; if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); return 0; } arg2 = *argp2; - result = (GoUint32)SKY_coin_Transaction_SignInputs(arg1,arg2); + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_NetworkConnection(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkConnections(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + api__NetworkConnectionsFilter *arg2 = (api__NetworkConnectionsFilter *) 0 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_Size(arg1,arg2); + arg2 = *(api__NetworkConnectionsFilter **)&jarg2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_NetworkConnections(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Hash_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkDefaultPeers(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_Hash(arg1,(GoUint8_ (*)[32])arg2); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_api_Client_NetworkDefaultPeers(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1SizeHash(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, cipher_SecKey* jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkTrustedPeers(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - cipher__SHA256 *arg3 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg3_; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - arg3 = *(cipher__SHA256 **)&jarg3; - result = (GoUint32)SKY_coin_Transaction_SizeHash(arg1,arg2,(GoUint8_ (*)[32])arg3); + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_api_Client_NetworkTrustedPeers(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1TxID(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1NetworkExchangedPeers(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; + Client__Handle arg1 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_TxID(arg1,arg2); + result = (GoUint32)SKY_api_Client_NetworkExchangedPeers(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1TxIDHex(JNIEnv *jenv, jclass jcls, jlong jarg1, GoString* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1PendingTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoString_ *arg2 = (GoString_ *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoString_ **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_TxIDHex(arg1,arg2); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_PendingTransactions(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1UpdateHeader(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Transaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - result = (GoUint32)SKY_coin_Transaction_UpdateHeader(arg1); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_Transaction(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1HashInner_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, cipher_SecKey* jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Transactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - cipher__SHA256 *arg2 = (cipher__SHA256 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(cipher__SHA256 **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_HashInner(arg1,(GoUint8_ (*)[32])arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_Transactions(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1Serialize(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1ConfirmedTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transaction__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_Serialize(arg1,arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_ConfirmedTransactions(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1TransactionDeserialize(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UnconfirmedTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - GoSlice arg1 ; - Transaction__Handle *arg2 = (Transaction__Handle *) 0 ; - GoSlice *argp1 ; + Client__Handle arg1 ; + GoSlice arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; - argp1 = *(GoSlice **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(Transaction__Handle **)&jarg2; - result = (GoUint32)SKY_coin_TransactionDeserialize(arg1,arg2); + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_UnconfirmedTransactions(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transaction_1OutputHours(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1InjectTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Transaction__Handle arg1 ; - GoUint64 *arg2 = (GoUint64 *) 0 ; - Transaction__Handle *argp1 ; + Client__Handle arg1 ; + Transaction__Handle arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + Transaction__Handle *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transaction__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint64 **)&jarg2; - result = (GoUint32)SKY_coin_Transaction_OutputHours(arg1,arg2); + argp2 = *(Transaction__Handle **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); + return 0; + } + arg2 = *argp2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_api_Client_InjectTransaction(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Create_1Transactions(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1ResendUnconfirmedTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transactions__Handle *arg1 = (Transactions__Handle *) 0 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - arg1 = *(Transactions__Handle **)&jarg1; - result = (GoUint32)SKY_coin_Create_Transactions(arg1); + argp1 = *(Client__Handle **)&jarg1; + if (!argp1) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); + return 0; + } + arg1 = *argp1; + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_ResendUnconfirmedTransactions(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1GetTransactionsObject(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1RawTransaction(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, GoString* jarg3, jobject jarg3_) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - coin__UxArray **arg2 = (coin__UxArray **) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString_ *arg3 = (GoString_ *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; (void)jarg2_; - argp1 = *(Transactions__Handle **)&jarg1; + (void)jarg3_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray ***)&jarg2; - result = (GoUint32)SKY_coin_GetTransactionsObject(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + arg3 = *(GoString_ **)&jarg3; + result = (GoUint32)SKY_api_Client_RawTransaction(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Length(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1AddressTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_Transactions_Length(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + { + jarg3 = (jlong*)&arg3; + } + result = (GoUint32)SKY_api_Client_AddressTransactions(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Add(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Richlist(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - Transaction__Handle arg2 ; - Transactions__Handle *argp1 ; - Transaction__Handle *argp2 ; + Client__Handle arg1 ; + api__RichlistParams *arg2 = (api__RichlistParams *) 0 ; + Handle *arg3 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - argp2 = *(Transaction__Handle **)&jarg2; - if (!argp2) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transaction__Handle"); - return 0; + arg2 = *(api__RichlistParams **)&jarg2; + { + jarg3 = (jlong*)&arg3; } - arg2 = *argp2; - result = (GoUint32)SKY_coin_Transactions_Add(arg1,arg2); + result = (GoUint32)SKY_api_Client_Richlist(arg1,arg2,arg3); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Fees(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1AddressCount(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - GoUint64 *arg3 = (GoUint64 *) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(FeeCalculator **)&jarg2; - arg3 = *(GoUint64 **)&jarg3; - result = (GoUint32)SKY_coin_Transactions_Fees(arg1,arg2,arg3); + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_api_Client_AddressCount(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1GetAt(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1UnloadWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - GoInt arg2 ; - Transaction__Handle *arg3 = (Transaction__Handle *) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + Client__Handle *argp1 ; + GoString *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; + (void)jarg2_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = *(Transaction__Handle **)&jarg3; - result = (GoUint32)SKY_coin_Transactions_GetAt(arg1,arg2,arg3); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + result = (GoUint32)SKY_api_Client_UnloadWallet(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Hashes_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1Health(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + Handle *arg2 = (Handle *) 0 ; + Client__Handle *argp1 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - argp1 = *(Transactions__Handle **)&jarg1; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_Transactions_Hashes(arg1,arg2); + { + jarg2 = (jlong*)&arg2; + } + result = (GoUint32)SKY_api_Client_Health(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1Size(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1EncryptWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - GoUint32 *arg2 = (GoUint32 *) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; + (void)jarg2_; + (void)jarg3_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = *(GoUint32 **)&jarg2; - result = (GoUint32)SKY_coin_Transactions_Size(arg1,arg2); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + arg4 = *(WalletResponse__Handle **)&jarg4; + result = (GoUint32)SKY_api_Client_EncryptWallet(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1Transactions_1TruncateBytesTo(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1api_1Client_1DecryptWallet(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_, jlong jarg3, jobject jarg3_, jlong jarg4) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - GoUint32 arg2 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Transactions__Handle *argp1 ; + Client__Handle arg1 ; + GoString arg2 ; + GoString arg3 ; + WalletResponse__Handle *arg4 = (WalletResponse__Handle *) 0 ; + Client__Handle *argp1 ; + GoString *argp2 ; + GoString *argp3 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; + (void)jarg2_; + (void)jarg3_; + argp1 = *(Client__Handle **)&jarg1; if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Client__Handle"); return 0; } arg1 = *argp1; - arg2 = (GoUint32)jarg2; - arg3 = *(Transactions__Handle **)&jarg3; - result = (GoUint32)SKY_coin_Transactions_TruncateBytesTo(arg1,arg2,arg3); + argp2 = *(GoString **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg2 = *argp2; + argp3 = *(GoString **)&jarg3; + if (!argp3) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoString"); + return 0; + } + arg3 = *argp3; + arg4 = *(WalletResponse__Handle **)&jarg4; + result = (GoUint32)SKY_api_Client_DecryptWallet(arg1,arg2,arg3,arg4); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Address_1UnmarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - Transactions__Handle *arg3 = (Transactions__Handle *) 0 ; - Transactions__Handle *argp1 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); + (void)jarg1_; + (void)jarg2_; + arg1 = *(httphelper__Address **)&jarg1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - arg2 = *(FeeCalculator **)&jarg2; - arg3 = *(Transactions__Handle **)&jarg3; - result = (GoUint32)SKY_coin_SortTransactions(arg1,arg2,arg3); + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Address_UnmarshalJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1NewSortableTransactions(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Address_1MarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - Transactions__Handle arg1 ; - FeeCalculator *arg2 = (FeeCalculator *) 0 ; - SortableTransactionResult_Handle *arg3 = (SortableTransactionResult_Handle *) 0 ; - Transactions__Handle *argp1 ; + httphelper__Address *arg1 = (httphelper__Address *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(Transactions__Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null Transactions__Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(FeeCalculator **)&jarg2; - arg3 = *(SortableTransactionResult_Handle **)&jarg3; - result = (GoUint32)SKY_coin_NewSortableTransactions(arg1,arg2,arg3); + (void)jarg1_; + (void)jarg2_; + arg1 = *(httphelper__Address **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_httphelper_Address_MarshalJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Sort(JNIEnv *jenv, jclass jcls, jlong jarg1) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Coins_1UnmarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - SortableTransactionResult_Handle arg1 ; - SortableTransactionResult_Handle *argp1 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(SortableTransactionResult_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); + (void)jarg2_; + arg1 = *(httphelper__Coins **)&jarg1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - result = (GoUint32)SKY_coin_SortableTransactions_Sort(arg1); + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Coins_UnmarshalJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Len(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Coins_1MarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - SortableTransactionResult_Handle arg1 ; - GoInt *arg2 = (GoInt *) 0 ; - SortableTransactionResult_Handle *argp1 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(SortableTransactionResult_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); - return 0; - } - arg1 = *argp1; - arg2 = *(GoInt **)&jarg2; - result = (GoUint32)SKY_coin_SortableTransactions_Len(arg1,arg2); + (void)jarg2_; + arg1 = *(httphelper__Coins **)&jarg1; + arg2 = *(coin__UxArray **)&jarg2; + result = (GoUint32)SKY_httphelper_Coins_MarshalJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Less(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3, jlong jarg4) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Coins_1Value(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - GoUint8 *arg4 = (GoUint8 *) 0 ; - SortableTransactionResult_Handle *argp1 ; + httphelper__Coins *arg1 = (httphelper__Coins *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(SortableTransactionResult_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); - return 0; - } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - arg4 = *(GoUint8 **)&jarg4; - result = (GoUint32)SKY_coin_SortableTransactions_Less(arg1,arg2,arg3,arg4); + arg1 = *(httphelper__Coins **)&jarg1; + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_httphelper_Coins_Value(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1SortableTransactions_1Swap(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jlong jarg3) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Hours_1UnmarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2, jobject jarg2_) { jlong jresult = 0 ; - SortableTransactionResult_Handle arg1 ; - GoInt arg2 ; - GoInt arg3 ; - SortableTransactionResult_Handle *argp1 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoSlice arg2 ; + GoSlice *argp2 ; GoUint32 result; (void)jenv; (void)jcls; - argp1 = *(SortableTransactionResult_Handle **)&jarg1; - if (!argp1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null SortableTransactionResult_Handle"); + (void)jarg2_; + arg1 = *(httphelper__Hours **)&jarg1; + argp2 = *(GoSlice **)&jarg2; + if (!argp2) { + SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "Attempt to dereference null GoSlice"); return 0; } - arg1 = *argp1; - arg2 = (GoInt)jarg2; - arg3 = (GoInt)jarg3; - result = (GoUint32)SKY_coin_SortableTransactions_Swap(arg1,arg2,arg3); + arg2 = *argp2; + result = (GoUint32)SKY_httphelper_Hours_UnmarshalJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1VerifyTransactionCoinsSpending_1_1SWIG_11(JNIEnv *jenv, jclass jcls, GoSlice_ * jarg1, jobject jarg1_, GoSlice_ * jarg2, jobject jarg2_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Hours_1MarshalJSON(JNIEnv *jenv, jclass jcls, jlong jarg1, GoSlice_ * jarg2, jobject jarg2_) { jlong jresult = 0 ; - coin__UxArray *arg1 = (coin__UxArray *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; coin__UxArray *arg2 = (coin__UxArray *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg1_; (void)jarg2_; - arg1 = *(coin__UxArray **)&jarg1; + arg1 = *(httphelper__Hours **)&jarg1; arg2 = *(coin__UxArray **)&jarg2; - result = (GoUint32)SKY_coin_VerifyTransactionCoinsSpending(arg1,arg2); + result = (GoUint32)SKY_httphelper_Hours_MarshalJSON(arg1,arg2); jresult = (jlong)result; return jresult; } -SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1coin_1VerifyTransactionHoursSpending_1_1SWIG_11(JNIEnv *jenv, jclass jcls, jobject jarg1, GoSlice_ * jarg2, jobject jarg2_, GoSlice_ * jarg3, jobject jarg3_) { +SWIGEXPORT jlong JNICALL Java_skycoin_libjava_skycoinJNI_SKY_1httphelper_1Hours_1Value(JNIEnv *jenv, jclass jcls, jlong jarg1, jlong jarg2) { jlong jresult = 0 ; - GoUint64 arg1 ; - coin__UxArray *arg2 = (coin__UxArray *) 0 ; - coin__UxArray *arg3 = (coin__UxArray *) 0 ; + httphelper__Hours *arg1 = (httphelper__Hours *) 0 ; + GoUint64 *arg2 = (GoUint64 *) 0 ; GoUint32 result; (void)jenv; (void)jcls; - (void)jarg2_; - (void)jarg3_; - { - jclass clazz; - jmethodID mid; - jbyteArray ba; - jbyte* bae; - jsize sz; - int i; - - if (!jarg1) { - SWIG_JavaThrowException(jenv, SWIG_JavaNullPointerException, "BigInteger null"); - return 0; - } - clazz = (*jenv)->GetObjectClass(jenv, jarg1); - mid = (*jenv)->GetMethodID(jenv, clazz, "toByteArray", "()[B"); - ba = (jbyteArray)(*jenv)->CallObjectMethod(jenv, jarg1, mid); - bae = (*jenv)->GetByteArrayElements(jenv, ba, 0); - sz = (*jenv)->GetArrayLength(jenv, ba); - arg1 = 0; - if (sz > 0) { - arg1 = (GoUint64)(signed char)bae[0]; - for(i=1; iReleaseByteArrayElements(jenv, ba, bae, 0); - } - arg2 = *(coin__UxArray **)&jarg2; - arg3 = *(coin__UxArray **)&jarg3; - result = (GoUint32)SKY_coin_VerifyTransactionHoursSpending(arg1,arg2,arg3); + arg1 = *(httphelper__Hours **)&jarg1; + arg2 = *(GoUint64 **)&jarg2; + result = (GoUint32)SKY_httphelper_Hours_Value(arg1,arg2); jresult = (jlong)result; return jresult; } diff --git a/skycoin_wrap.o b/skycoin_wrap.o index f1df7ff..333c459 100644 Binary files a/skycoin_wrap.o and b/skycoin_wrap.o differ diff --git a/src/main/java/skycoin/libjava/skycoin.java b/src/main/java/skycoin/libjava/skycoin.java index a4a9ee7..0b7d94f 100644 --- a/src/main/java/skycoin/libjava/skycoin.java +++ b/src/main/java/skycoin/libjava/skycoin.java @@ -983,389 +983,496 @@ public static long SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_S return skycoinJNI.SKY_coin_Block_HashBody__SWIG_0(SWIGTYPE_p_Block__Handle.getCPtr(p0), cipher_SHA256.getCPtr(p1), p1); } - public static long SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, java.math.BigInteger p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { -long tmpp2 = cipher_SecKey.getCPtr (p2); + public static long SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { + return skycoinJNI.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + } + + public static long SKY_cli_GenerateAddressesInFile(_GoString_ p0, java.math.BigInteger p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) { + return skycoinJNI.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), GoSlice.getCPtr (p3), p3); + } + + public static long SKY_cli_FormatAddressesAsJSON(GoSlice p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_NewBlock__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, tmpp2, p2, SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); + return skycoinJNI.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, cipher_PubKey p1) { -long tmpp1 = cipher_PubKey.getCPtr (p1); + public static long SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_coin_NewGenesisBlock(cipher__Address p0, java.math.BigInteger p1, java.math.BigInteger p2, SWIGTYPE_p_Block__Handle p3) { - return skycoinJNI.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p0, p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); + public static long SKY_cli_AddressesToStrings(GoSlice p0, GoSlice p1) { + return skycoinJNI.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Block_HashHeader__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_wallet_NewReadableEntry(_GoString_ p0, wallet__Entry p1, SWIGTYPE_p_ReadableEntry__Handle p2) { + return skycoinJNI.SKY_wallet_NewReadableEntry(_GoString_.getCPtr(p0), p0, wallet__Entry.getCPtr(p1), p1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); } - public static long SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Block_PreHashHeader__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { + return skycoinJNI.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); } - public static long SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + return skycoinJNI.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); } - public static long SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { + return skycoinJNI.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); } - public static long SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Block_HashBody__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { + return skycoinJNI.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); } - public static long SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_logging_EnableColors() { + return skycoinJNI.SKY_logging_EnableColors(); } - public static long SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, _GoString_ p1) { + public static long SKY_logging_DisableColors() { + return skycoinJNI.SKY_logging_DisableColors(); + } + + public static long SKY_logging_Disable() { + return skycoinJNI.SKY_logging_Disable(); + } + + public static long SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, java.math.BigInteger p1, long p2) { + return skycoinJNI.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, p2); + } + + public static long SKY_fee_VerifyTransactionFeeForHours(java.math.BigInteger p0, java.math.BigInteger p1, long p2) { + return skycoinJNI.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2); + } + + public static long SKY_fee_RequiredFee(java.math.BigInteger p0, long p1, SWIGTYPE_p_unsigned_long_long p2) { + return skycoinJNI.SKY_fee_RequiredFee(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + } + + public static long SKY_fee_RemainingHours(java.math.BigInteger p0, long p1, SWIGTYPE_p_unsigned_long_long p2) { + return skycoinJNI.SKY_fee_RemainingHours(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + } + + public static long SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, java.math.BigInteger p1, GoSlice p2, SWIGTYPE_p_unsigned_long_long p3) { + return skycoinJNI.SKY_fee_TransactionFee__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + } + + public static void SKY_params_GetDistributionAddresses(GoSlice p0) { + skycoinJNI.SKY_params_GetDistributionAddresses(GoSlice.getCPtr (p0), p0); + } + + public static void SKY_params_GetUnlockedDistributionAddresses(GoSlice p0) { + skycoinJNI.SKY_params_GetUnlockedDistributionAddresses(GoSlice.getCPtr (p0), p0); + } + + public static void SKY_params_GetLockedDistributionAddresses(GoSlice p0) { + skycoinJNI.SKY_params_GetLockedDistributionAddresses(GoSlice.getCPtr (p0), p0); + } + + public static long SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { -long tmpp1 = cipher_SecKey.getCPtr (p1); + public static long SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + } + + public static long SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + } + + public static long SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); + return skycoinJNI.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p1, java.math.BigInteger p2, java.math.BigInteger p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { -long tmpp1 = cipher_SecKey.getCPtr (p1); + public static long SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), p0, tmpp1, p1, p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5), p5); + return skycoinJNI.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); + public static long SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, java.math.BigInteger p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + } + + public static long SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + } + + public static long SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + } + + public static long SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + } + + public static long SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { + return skycoinJNI.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); + } + + public static long SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); { - return skycoinJNI.SKY_coin_BlockHeader_Hash__SWIG_1(coin__BlockHeader.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, tmpp2, p2); } } - public static long SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, GoSlice p1) { - return skycoinJNI.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ p1) { + public static long SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); + public static long SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_coin_BlockBody_Hash__SWIG_1(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); + { + return skycoinJNI.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), tmpp2, p2); + } } - public static long SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { + return skycoinJNI.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); } - public static long SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, GoSlice p2) { - return skycoinJNI.SKY_coin_CreateUnspents__SWIG_1(coin__BlockHeader.getCPtr(p0), p0, SWIGTYPE_p_Transaction__Handle.getCPtr(p1), GoSlice.getCPtr (p2), p2); + public static long SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { - return skycoinJNI.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), p0, SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3), p3); + public static long SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { - return skycoinJNI.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); + public static long SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, long p1, cipher__Address p2, cipher_PubKey p3) { +long tmpp3 = cipher_PubKey.getCPtr (p3); + { + return skycoinJNI.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), p2, tmpp3, p3); + } } - public static long SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { - return skycoinJNI.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); + public static long SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, long p1, _GoString_ p2, _GoString_ p3) { +long tmpp2 = _GoString_.getCPtr (p2); +long tmpp3 = _GoString_.getCPtr (p3); + { + return skycoinJNI.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, tmpp2, p2, tmpp3, p3); + } } - public static long SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { - return skycoinJNI.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); + public static long SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { + return skycoinJNI.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); } - public static long SKY_bip39_NewDefaultMnemomic(_GoString_ p0) { -long tmpp0 = _GoString_.getCPtr (p0); + public static long SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_bip39_NewDefaultMnemomic(tmpp0, p0); + return skycoinJNI.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_bip39_NewEntropy(long p0, GoSlice p1) { - return skycoinJNI.SKY_bip39_NewEntropy(p0, GoSlice.getCPtr (p1), p1); + public static long SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { + public static long SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, long p1, SWIGTYPE_p_WalletResponse__Handle p2) { + return skycoinJNI.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + } + + public static long SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_bip39_MnemonicToByteArray(_GoString_ p0, GoSlice p1) { - return skycoinJNI.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); - } - - public static long SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { - return skycoinJNI.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static long SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { - return skycoinJNI.SKY_api_NewClient(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_Client__Handle.getCPtr(p1)); + public static long SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + public static long SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { long tmpp1 = _GoString_.getCPtr (p1); +long tmpp2 = _GoString_.getCPtr (p2); +long tmpp3 = _GoString_.getCPtr (p3); { - return skycoinJNI.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), tmpp1, p1, tmpp2, p2, tmpp3, p3); } } - public static long SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { + return skycoinJNI.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); } - public static long SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_PasswordReader__Handle p2) { + return skycoinJNI.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); } - public static long SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { + return skycoinJNI.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); } - public static long SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + return skycoinJNI.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); } - public static long SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { + return skycoinJNI.SKY_coin_GetTransactionObject__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); } - public static long SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + return skycoinJNI.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); } - public static long SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, java.math.BigInteger p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_coin_Transaction_GetInputAt__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); + } } - public static long SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, java.math.BigInteger p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_coin_Transaction_SetInputAt__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); + } } - public static long SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + return skycoinJNI.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2), p2); } - public static long SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { - return skycoinJNI.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, wallet__BalancePair.getCPtr(p2), p2); + public static long SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { + return skycoinJNI.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2), p2); } - public static long SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_Sig p2) { +long tmpp2 = cipher_Sig.getCPtr (p2); + { + return skycoinJNI.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); + } } - public static long SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { - return skycoinJNI.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_Sig p2) { +long tmpp2 = cipher_Sig.getCPtr (p2); + { + return skycoinJNI.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); + } } - public static long SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { - return skycoinJNI.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); + public static long SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, cipher_Sig p1) { +long tmpp1 = cipher_Sig.getCPtr (p1); + { + return skycoinJNI.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { - return skycoinJNI.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); + public static long SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { + return skycoinJNI.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); } - public static long SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { - return skycoinJNI.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, _GoString_.getCPtr(p3), p3, p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); + public static long SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { + return skycoinJNI.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); } - public static long SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { - return skycoinJNI.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, p2, _GoString_.getCPtr(p3), p3, SWIGTYPE_p_Strings__Handle.getCPtr(p4)); + public static long SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { + return skycoinJNI.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); } - public static long SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { - return skycoinJNI.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, wallet__BalancePair.getCPtr(p2), p2); + public static long SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_Transaction_VerifyInput__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, java.math.BigInteger p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { - return skycoinJNI.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, p3, _GoString_.getCPtr(p4), p4, SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); + public static long SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_coin_Transaction_PushInput__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); + } } - public static long SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - return skycoinJNI.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + public static long SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, cipher_SecKey p1, cipher_SecKey p2) { +long tmpp1 = cipher_SecKey.getCPtr (p1); +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { - return skycoinJNI.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2); + public static long SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, java.math.BigInteger p2, java.math.BigInteger p3) { + return skycoinJNI.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, p2, p3); + } + + public static long SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_Transaction_SignInputs__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1); } - public static long SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); + public static long SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, tmpp2, p2); + return skycoinJNI.SKY_coin_Transaction_Hash__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_api_Client_WalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { -long tmpp3 = _GoString_.getCPtr (p3); + public static long SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1, cipher_SecKey p2) { +long tmpp2 = cipher_SecKey.getCPtr (p2); { - return skycoinJNI.SKY_api_Client_WalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, tmpp3, p3); + return skycoinJNI.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1), tmpp2, p2); } } - public static long SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); - } - - public static long SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, api__NetworkConnectionsFilter p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__NetworkConnectionsFilter.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_api_Client_NetworkDefaultPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_api_Client_NetworkDefaultPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_api_Client_NetworkTrustedPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_api_Client_NetworkTrustedPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { + return skycoinJNI.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); } - public static long SKY_api_Client_NetworkExchangedPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_api_Client_NetworkExchangedPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_coin_Transaction_HashInner__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { + return skycoinJNI.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), p0, SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); } - public static long SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } - public static long SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { + return skycoinJNI.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); } - public static long SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); - { - return skycoinJNI.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2, p2); - } + public static long SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + return skycoinJNI.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); } - public static long SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); - { - return skycoinJNI.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, tmpp2, p2); - } + public static long SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { + return skycoinJNI.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); } - public static long SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { + return skycoinJNI.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); } - public static long SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_Transactions_Hashes__SWIG_1(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { - return skycoinJNI.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); + public static long SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { + return skycoinJNI.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); } - public static long SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + public static long SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { + return skycoinJNI.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); } - public static long SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - return skycoinJNI.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + public static long SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { + return skycoinJNI.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); } - public static long SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { - return skycoinJNI.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); + public static long SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { + return skycoinJNI.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); } - public static long SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1) { - return skycoinJNI.SKY_api_NewWalletResponse(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1)); + public static long SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { - return skycoinJNI.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); + public static long SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + return skycoinJNI.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); } - public static long SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { - return skycoinJNI.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); + public static long SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { + return skycoinJNI.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); } - public static long SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - return skycoinJNI.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static long SKY_coin_VerifyTransactionCoinsSpending(GoSlice p0, GoSlice p1) { + return skycoinJNI.SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, cipher_SecKey p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), p0, tmpp1, p1, SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); - } + public static long SKY_coin_VerifyTransactionHoursSpending(java.math.BigInteger p0, GoSlice p1, GoSlice p2) { + return skycoinJNI.SKY_coin_VerifyTransactionHoursSpending__SWIG_1(p0, GoSlice.getCPtr (p1), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { - return skycoinJNI.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), p0, SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); + public static long SKY_testutil_MakeAddress(cipher__Address p0) { + return skycoinJNI.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0), p0); } public static long SKY_wallet_NewError(GoInterface p0) { @@ -1468,137 +1575,96 @@ public static long SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, java.math.B return skycoinJNI.SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice.getCPtr(p0), p0, p1, p2, GoSlice.getCPtr (p3), p3); } - public static long SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { - return skycoinJNI.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); - } - - public static long SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { - return skycoinJNI.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); - } - - public static long SKY_wallet_NewReadableEntry(_GoString_ p0, wallet__Entry p1, SWIGTYPE_p_ReadableEntry__Handle p2) { - return skycoinJNI.SKY_wallet_NewReadableEntry(_GoString_.getCPtr(p0), p0, wallet__Entry.getCPtr(p1), p1, SWIGTYPE_p_ReadableEntry__Handle.getCPtr(p2)); - } - - public static long SKY_wallet_LoadReadableWallet(_GoString_ p0, SWIGTYPE_p_ReadableWallet__Handle p1) { - return skycoinJNI.SKY_wallet_LoadReadableWallet(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p1)); - } - - public static long SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - return skycoinJNI.SKY_wallet_ReadableWallet_Save(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); + public static long SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, short p3, _GoString_ p4, _GoString_ p5, java.math.BigInteger p6, SWIGTYPE_p_Options__Handle p7) { + return skycoinJNI.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, p3, _GoString_.getCPtr(p4), p4, _GoString_.getCPtr(p5), p5, p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); } - public static long SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle p0, _GoString_ p1) { - return skycoinJNI.SKY_wallet_ReadableWallet_Load(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); + public static long SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { + return skycoinJNI.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, GoSlice.getCPtr(p3), p3, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); } - public static long SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle p0) { - return skycoinJNI.SKY_wallet_ReadableWallet_Erase(SWIGTYPE_p_ReadableWallet__Handle.getCPtr(p0)); + public static long SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { + return skycoinJNI.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, _GoString_.getCPtr(p3), p3, GoSlice.getCPtr(p4), p4, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); } - public static long SKY_base58_String2Hex(_GoString_ p0, GoSlice p1) { - return skycoinJNI.SKY_base58_String2Hex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { + return skycoinJNI.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), p2, _GoString_.getCPtr(p3), p3, GoSlice.getCPtr(p4), p4, GoSlice.getCPtr(p5), p5, SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); } - public static long SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { + return skycoinJNI.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); } - public static long SKY_base58_Base58_ToHex(_GoString_ p0, GoSlice p1) { - return skycoinJNI.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { + return skycoinJNI.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, GoSlice.getCPtr (p3), p3); } - public static long SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { + return skycoinJNI.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, GoSlice.getCPtr (p3), p3); } - public static long SKY_base58_Base582Hex(_GoString_ p0, GoSlice p1) { - return skycoinJNI.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_BalanceResult_Handle p2) { + return skycoinJNI.SKY_cli_CheckWalletBalance(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); } - public static long SKY_base58_Base58_BitHex(_GoString_ p0, GoSlice p1) { - return skycoinJNI.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, SWIGTYPE_p_BalanceResult_Handle p2) { + return skycoinJNI.SKY_cli_GetBalanceOfAddresses(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_BalanceResult_Handle.getCPtr(p2)); } - public static long SKY_base58_Int2Base58(long p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_base58_Int2Base58(p0, tmpp1, p1); - } + public static long SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle p2) { + return skycoinJNI.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.getCPtr(p2)); } - public static long SKY_base58_Hex2Base58(GoSlice p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle p2) { + return skycoinJNI.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.getCPtr(p2)); } - public static long SKY_base58_Hex2Base58String(GoSlice p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_AddUint64(java.math.BigInteger p0, java.math.BigInteger p1, SWIGTYPE_p_unsigned_long_long p2) { + return skycoinJNI.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); } - public static long SKY_base58_Hex2Base58Str(GoSlice p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_Uint64ToInt64(java.math.BigInteger p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, java.math.BigInteger p2, SWIGTYPE_p_Wallet__Handle p3) { - return skycoinJNI.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); + public static long SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } - public static long SKY_cli_MakeAlphanumericSeed(_GoString_ p0) { -long tmpp0 = _GoString_.getCPtr (p0); - { - return skycoinJNI.SKY_cli_MakeAlphanumericSeed(tmpp0, p0); - } + public static long SKY_coin_IntToUint32(long p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_coin_IntToUint32(p0, SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - return skycoinJNI.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static long SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1) { + public static long SKY_file_InitDataDir(_GoString_ p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, p1); - } - } - - public static long SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); - { - return skycoinJNI.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2, p2); + return skycoinJNI.SKY_file_InitDataDir(_GoString_.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { - return skycoinJNI.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); - } - - public static long SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { - return skycoinJNI.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); - } - - public static long SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { - return skycoinJNI.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); - } - - public static long SKY_webrpc_Client_GetBlocksInRange(SWIGTYPE_p_WebRpcClient__Handle p0, java.math.BigInteger p1, java.math.BigInteger p2, GoSlice p3) { - return skycoinJNI.SKY_webrpc_Client_GetBlocksInRange(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3), p3); + public static long SKY_file_UserHome(_GoString_ p0) { +long tmpp0 = _GoString_.getCPtr (p0); + { + return skycoinJNI.SKY_file_UserHome(tmpp0, p0); + } } - public static long SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { - return skycoinJNI.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_file_ResolveResourceDirectory(_GoString_ p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, java.math.BigInteger p1, GoSlice p2) { - return skycoinJNI.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { +long tmpp3 = _GoString_.getCPtr (p3); + { + return skycoinJNI.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, tmpp3, p3); + } } public static long SKY_iputil_LocalhostIP(_GoString_ p0) { @@ -1619,54 +1685,100 @@ public static long SKY_iputil_SplitAddr(_GoString_ p0, _GoString_ p1, SWIGTYPE_p } } - public static void SKY_params_GetDistributionAddresses(GoSlice p0) { - skycoinJNI.SKY_params_GetDistributionAddresses(GoSlice.getCPtr (p0), p0); + public static long SKY_cipher_DecodeBase58BitcoinAddress(_GoString_ p0, cipher__BitcoinAddress p1) { + return skycoinJNI.SKY_cipher_DecodeBase58BitcoinAddress(_GoString_.getCPtr(p0), p0, cipher__BitcoinAddress.getCPtr(p1), p1); } - public static void SKY_params_GetUnlockedDistributionAddresses(GoSlice p0) { - skycoinJNI.SKY_params_GetUnlockedDistributionAddresses(GoSlice.getCPtr (p0), p0); + public static void SKY_cipher_BitcoinAddressFromPubKey(cipher_PubKey p0, cipher__BitcoinAddress p1) { +long tmpp0 = cipher_PubKey.getCPtr (p0); + { + skycoinJNI.SKY_cipher_BitcoinAddressFromPubKey(tmpp0, p0, cipher__BitcoinAddress.getCPtr(p1), p1); + } } - public static void SKY_params_GetLockedDistributionAddresses(GoSlice p0) { - skycoinJNI.SKY_params_GetLockedDistributionAddresses(GoSlice.getCPtr (p0), p0); + public static long SKY_cipher_BitcoinAddressFromSecKey(cipher_SecKey p0, cipher__BitcoinAddress p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); + { + return skycoinJNI.SKY_cipher_BitcoinAddressFromSecKey(tmpp0, p0, cipher__BitcoinAddress.getCPtr(p1), p1); + } } - public static long SKY_cli_GenerateAddressesInFile(_GoString_ p0, java.math.BigInteger p1, SWIGTYPE_p_PasswordReader__Handle p2, GoSlice p3) { - return skycoinJNI.SKY_cli_GenerateAddressesInFile(_GoString_.getCPtr(p0), p0, p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2), GoSlice.getCPtr (p3), p3); + public static void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, _GoString_ p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); +long tmpp1 = _GoString_.getCPtr (p1); + { + skycoinJNI.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, p0, tmpp1, p1); + } } - public static long SKY_cli_FormatAddressesAsJSON(GoSlice p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress p1) { + return skycoinJNI.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), p0, cipher__BitcoinAddress.getCPtr(p1), p1); + } + + public static long SKY_cipher_SecKeyFromBitcoinWalletImportFormat(_GoString_ p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_cli_FormatAddressesAsJSON(GoSlice.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(_GoString_.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, _GoString_ p1) { + public static short SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress p0) { + return skycoinJNI.SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress.getCPtr(p0), p0); + } + + public static void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress p0, GoSlice p1) { + skycoinJNI.SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + } + + public static long SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress p0, cipher_PubKey p1) { +long tmpp1 = cipher_PubKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress.getCPtr(p0), p0, tmpp1, p1); + } + } + + public static void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_cli_FormatAddressesAsJoinedArray(GoSlice.getCPtr(p0), p0, tmpp1, p1); + skycoinJNI.SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cli_AddressesToStrings(GoSlice p0, GoSlice p1) { - return skycoinJNI.SKY_cli_AddressesToStrings(GoSlice.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + skycoinJNI.SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress.getCPtr(p0), p0, SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); } - public static long SKY_coin_AddUint64(java.math.BigInteger p0, java.math.BigInteger p1, SWIGTYPE_p_unsigned_long_long p2) { - return skycoinJNI.SKY_coin_AddUint64(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static long SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); + { + return skycoinJNI.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), p1, tmpp2, p2); + } } - public static long SKY_coin_Uint64ToInt64(java.math.BigInteger p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_Uint64ToInt64(p0, SWIGTYPE_p_long_long.getCPtr(p1)); + public static short SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { + return skycoinJNI.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), p1); } - public static long SKY_coin_Int64ToUint64(long p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_coin_Int64ToUint64(p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { + return skycoinJNI.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); } - public static long SKY_coin_IntToUint32(long p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_coin_IntToUint32(p0, SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_droplet_FromString(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + } + + public static long SKY_droplet_ToString(java.math.BigInteger p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_droplet_ToString(p0, tmpp1, p1); + } + } + + public static long SKY_wallet_CryptoTypeFromString(_GoString_ p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), p0, tmpp1, p1); + } } public static long SKY_cipher_RandByte(long p0, GoSlice p1) { @@ -1788,1067 +1900,955 @@ public static long SKY_cipher_Sig_Hex(cipher_Sig p0, _GoString_ p1) { public static long SKY_cipher_SignHash(cipher_SecKey p0, cipher_SecKey p1, cipher_Sig p2) { long tmpp0 = cipher_SecKey.getCPtr (p0); -long tmpp1 = cipher_SecKey.getCPtr (p1); -long tmpp2 = cipher_Sig.getCPtr (p2); - { - return skycoinJNI.SKY_cipher_SignHash__SWIG_1(tmpp0, p0, tmpp1, p1, tmpp2, p2); - } - } - - public static long SKY_cipher_VerifyAddressSignedHash(cipher__Address p0, cipher_Sig p1, cipher_SecKey p2) { -long tmpp1 = cipher_Sig.getCPtr (p1); -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_cipher_VerifyAddressSignedHash(cipher__Address.getCPtr(p0), p0, tmpp1, p1, tmpp2, p2); - } - } - - public static long SKY_cipher_VerifySignedHash(cipher_Sig p0, cipher_SecKey p1) { -long tmpp0 = cipher_Sig.getCPtr (p0); -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_VerifySignedHash(tmpp0, p0, tmpp1, p1); - } - } - - public static long SKY_cipher_VerifyPubKeySignedHash(cipher_PubKey p0, cipher_Sig p1, cipher_SecKey p2) { -long tmpp0 = cipher_PubKey.getCPtr (p0); -long tmpp1 = cipher_Sig.getCPtr (p1); -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_cipher_VerifyPubKeySignedHash(tmpp0, p0, tmpp1, p1, tmpp2, p2); - } - } - - public static long SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1) { -long tmpp0 = cipher_PubKey.getCPtr (p0); -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_GenerateKeyPair(tmpp0, p0, tmpp1, p1); - } - } - - public static long SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_PubKey p1, cipher_SecKey p2) { -long tmpp1 = cipher_PubKey.getCPtr (p1); -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), p0, tmpp1, p1, tmpp2, p2); - } - } - - public static long SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, cipher_PubKey p2, cipher_SecKey p3) { -long tmpp2 = cipher_PubKey.getCPtr (p2); -long tmpp3 = cipher_SecKey.getCPtr (p3); - { - return skycoinJNI.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1, tmpp2, p2, tmpp3, p3); - } - } - - public static long SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, GoSlice p2) { - return skycoinJNI.SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(GoSlice.getCPtr(p0), p0, p1, GoSlice.getCPtr (p2), p2); - } - - public static long SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, GoSlice p2, GoSlice p3) { - return skycoinJNI.SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(GoSlice.getCPtr(p0), p0, p1, GoSlice.getCPtr (p2), p2, GoSlice.getCPtr (p3), p3); - } - - public static long SKY_cipher_CheckSecKey(cipher_SecKey p0) { -long tmpp0 = cipher_SecKey.getCPtr (p0); - { - return skycoinJNI.SKY_cipher_CheckSecKey(tmpp0, p0); - } - } - - public static long SKY_cipher_CheckSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_CheckSecKeyHash__SWIG_1(tmpp0, p0, tmpp1, p1); - } - } - - public static long SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { - return skycoinJNI.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); - } - - public static long SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); - } - } - - public static long SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); - } - } - - public static long SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - return skycoinJNI.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); - } - - public static long SKY_cli_Getenv(_GoString_ p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_cli_Getenv(_GoString_.getCPtr(p0), p0, tmpp1, p1); - } - } - - public static long SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { - return skycoinJNI.SKY_cli_Setenv(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1); - } - - public static long SKY_wallet_NewBalance(java.math.BigInteger p0, java.math.BigInteger p1, wallet__Balance p2) { - return skycoinJNI.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2), p2); - } - - public static long SKY_wallet_NewBalanceFromUxOut(java.math.BigInteger p0, coin__UxOut p1, wallet__Balance p2) { - return skycoinJNI.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), p1, wallet__Balance.getCPtr(p2), p2); - } - - public static long SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { - return skycoinJNI.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), p0, wallet__Balance.getCPtr(p1), p1, wallet__Balance.getCPtr(p2), p2); - } - - public static long SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { - return skycoinJNI.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), p0, wallet__Balance.getCPtr(p1), p1, wallet__Balance.getCPtr(p2), p2); - } - - public static long SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { - return skycoinJNI.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), p0, wallet__Balance.getCPtr(p1), p1, SWIGTYPE_p_unsigned_char.getCPtr(p2)); - } - - public static long SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { - return skycoinJNI.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); - } - - public static long SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { - return skycoinJNI.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1); - } - - public static long SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, GoSlice p1) { - return skycoinJNI.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); - } - - public static long SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - return skycoinJNI.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1), p1); +long tmpp1 = cipher_SecKey.getCPtr (p1); +long tmpp2 = cipher_Sig.getCPtr (p2); + { + return skycoinJNI.SKY_cipher_SignHash__SWIG_1(tmpp0, p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - return skycoinJNI.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_cipher_VerifyAddressSignedHash(cipher__Address p0, cipher_Sig p1, cipher_SecKey p2) { +long tmpp1 = cipher_Sig.getCPtr (p1); +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_cipher_VerifyAddressSignedHash(cipher__Address.getCPtr(p0), p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_cipher_VerifySignedHash(cipher_Sig p0, cipher_SecKey p1) { +long tmpp0 = cipher_Sig.getCPtr (p0); +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_VerifySignedHash(tmpp0, p0, tmpp1, p1); + } } - public static long SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - return skycoinJNI.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1), p1); + public static long SKY_cipher_VerifyPubKeySignedHash(cipher_PubKey p0, cipher_Sig p1, cipher_SecKey p2) { +long tmpp0 = cipher_PubKey.getCPtr (p0); +long tmpp1 = cipher_Sig.getCPtr (p1); +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_cipher_VerifyPubKeySignedHash(tmpp0, p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { - return skycoinJNI.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_cipher_GenerateKeyPair(cipher_PubKey p0, cipher_SecKey p1) { +long tmpp0 = cipher_PubKey.getCPtr (p0); +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_GenerateKeyPair(tmpp0, p0, tmpp1, p1); + } } - public static long SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_cipher_GenerateDeterministicKeyPair(GoSlice p0, cipher_PubKey p1, cipher_SecKey p2) { +long tmpp1 = cipher_PubKey.getCPtr (p1); +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_cipher_GenerateDeterministicKeyPair(GoSlice.getCPtr(p0), p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_wallet_Entry_Verify(wallet__Entry p0) { - return skycoinJNI.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0), p0); + public static long SKY_cipher_DeterministicKeyPairIterator(GoSlice p0, GoSlice p1, cipher_PubKey p2, cipher_SecKey p3) { +long tmpp2 = cipher_PubKey.getCPtr (p2); +long tmpp3 = cipher_SecKey.getCPtr (p3); + { + return skycoinJNI.SKY_cipher_DeterministicKeyPairIterator(GoSlice.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1, tmpp2, p2, tmpp3, p3); + } } - public static long SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { - return skycoinJNI.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0), p0); + public static long SKY_cipher_GenerateDeterministicKeyPairs(GoSlice p0, long p1, GoSlice p2) { + return skycoinJNI.SKY_cipher_GenerateDeterministicKeyPairs__SWIG_1(GoSlice.getCPtr(p0), p0, p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_droplet_FromString(_GoString_ p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_droplet_FromString(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_cipher_GenerateDeterministicKeyPairsSeed(GoSlice p0, long p1, GoSlice p2, GoSlice p3) { + return skycoinJNI.SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(GoSlice.getCPtr(p0), p0, p1, GoSlice.getCPtr (p2), p2, GoSlice.getCPtr (p3), p3); } - public static long SKY_droplet_ToString(java.math.BigInteger p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_cipher_CheckSecKey(cipher_SecKey p0) { +long tmpp0 = cipher_SecKey.getCPtr (p0); { - return skycoinJNI.SKY_droplet_ToString(p0, tmpp1, p1); + return skycoinJNI.SKY_cipher_CheckSecKey(tmpp0, p0); } } - public static long SKY_wallet_CryptoTypeFromString(_GoString_ p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_cipher_CheckSecKeyHash(cipher_SecKey p0, cipher_SecKey p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_wallet_CryptoTypeFromString(_GoString_.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_cipher_CheckSecKeyHash__SWIG_1(tmpp0, p0, tmpp1, p1); } } - public static long SKY_handle_copy(SWIGTYPE_p_Handle p0, SWIGTYPE_p_Handle p1) { - return skycoinJNI.SKY_handle_copy(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); - } - - public static long SKY_logging_EnableColors() { - return skycoinJNI.SKY_logging_EnableColors(); + public static long SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + return skycoinJNI.SKY_api_NewCreateTransactionResponse(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); } - public static long SKY_logging_DisableColors() { - return skycoinJNI.SKY_logging_DisableColors(); + public static long SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1, SWIGTYPE_p_CreatedTransaction__Handle p2) { + return skycoinJNI.SKY_api_NewCreatedTransaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p2)); } - public static long SKY_logging_Disable() { - return skycoinJNI.SKY_logging_Disable(); + public static long SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { + return skycoinJNI.SKY_api_CreatedTransaction_ToTransaction(SWIGTYPE_p_CreatedTransaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); } - public static long SKY_map_Get(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); + public static long SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput p0, cipher_SecKey p1, SWIGTYPE_p_CreatedTransactionOutput__Handle p2) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_map_Get(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), p1, tmpp2, p2); + return skycoinJNI.SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput.getCPtr(p0), p0, tmpp1, p1, SWIGTYPE_p_CreatedTransactionOutput__Handle.getCPtr(p2)); } } - public static short SKY_map_HasKey(SWIGTYPE_p_GoStringMap_ p0, _GoString_ p1) { - return skycoinJNI.SKY_map_HasKey(SWIGTYPE_p_GoStringMap_.getCPtr(p0), _GoString_.getCPtr(p1), p1); - } - - public static long SKY_map_Close(SWIGTYPE_p_GoStringMap_ p0) { - return skycoinJNI.SKY_map_Close(SWIGTYPE_p_GoStringMap_.getCPtr(p0)); + public static long SKY_api_NewCreatedTransactionInput(wallet__UxBalance p0, SWIGTYPE_p_CreatedTransactionInput__Handle p1) { + return skycoinJNI.SKY_api_NewCreatedTransactionInput(wallet__UxBalance.getCPtr(p0), p0, SWIGTYPE_p_CreatedTransactionInput__Handle.getCPtr(p1)); } - public static long SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { - return skycoinJNI.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), p0, cipher__Address.getCPtr(p1), p1); + public static long SKY_base58_String2Hex(_GoString_ p0, GoSlice p1) { + return skycoinJNI.SKY_base58_String2Hex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { - return skycoinJNI.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), p0, cipher__Address.getCPtr(p1), p1); + public static long SKY_base58_Base58_ToInt(_GoString_ p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_base58_Base58_ToInt(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_cipher_AddressFromPubKey(cipher_PubKey p0, cipher__Address p1) { -long tmpp0 = cipher_PubKey.getCPtr (p0); - { - return skycoinJNI.SKY_cipher_AddressFromPubKey(tmpp0, p0, cipher__Address.getCPtr(p1), p1); - } + public static long SKY_base58_Base58_ToHex(_GoString_ p0, GoSlice p1) { + return skycoinJNI.SKY_base58_Base58_ToHex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_AddressFromSecKey(cipher_SecKey p0, cipher__Address p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); - { - return skycoinJNI.SKY_cipher_AddressFromSecKey(tmpp0, p0, cipher__Address.getCPtr(p1), p1); - } + public static long SKY_base58_Base58_Base582Int(_GoString_ p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_base58_Base58_Base582Int(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { - return skycoinJNI.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static long SKY_base58_Base582Hex(_GoString_ p0, GoSlice p1) { + return skycoinJNI.SKY_base58_Base582Hex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_Address_Bytes(cipher__Address p0, GoSlice p1) { - return skycoinJNI.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_base58_Base58_BitHex(_GoString_ p0, GoSlice p1) { + return skycoinJNI.SKY_base58_Base58_BitHex(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { -long tmpp1 = cipher_PubKey.getCPtr (p1); + public static long SKY_base58_Int2Base58(long p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_base58_Int2Base58(p0, tmpp1, p1); } } - public static long SKY_cipher_Address_String(cipher__Address p0, _GoString_ p1) { + public static long SKY_base58_Hex2Base58(GoSlice p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_base58_Hex2Base58(GoSlice.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - return skycoinJNI.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), p0, SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); - } - - public static long SKY_JsonEncode_Handle(SWIGTYPE_p_Handle p0, _GoString_ p1) { + public static long SKY_base58_Hex2Base58String(GoSlice p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_JsonEncode_Handle(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_base58_Hex2Base58String(GoSlice.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_Handle_Progress_GetCurrent(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_base58_Hex2Base58Str(GoSlice p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_base58_Hex2Base58Str(GoSlice.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_Handle_Block_GetHeadSeq(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_webrpc_NewClient(_GoString_ p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + return skycoinJNI.SKY_webrpc_NewClient(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); } - public static long SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle p0, _GoString_ p1) { + public static long SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_Handle_Block_GetHeadHash(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_webrpc_Client_CSRF(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Transaction__Handle p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); { - return skycoinJNI.SKY_Handle_Block_GetPreviousBlockHash(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_webrpc_Client_InjectTransaction(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2, p2); } } - public static long SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle p0, java.math.BigInteger p1, SWIGTYPE_p_Handle p2) { - return skycoinJNI.SKY_Handle_Blocks_GetAt(SWIGTYPE_p_Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); + public static long SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_StatusResult_Handle p1) { + return skycoinJNI.SKY_webrpc_Client_GetStatus(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_StatusResult_Handle.getCPtr(p1)); } - public static long SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_Handle_Blocks_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_TransactionResult_Handle p2) { + return skycoinJNI.SKY_webrpc_Client_GetTransactionByID(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_TransactionResult_Handle.getCPtr(p2)); } - public static long SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_Handle_Connections_GetCount(SWIGTYPE_p_Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { + return skycoinJNI.SKY_webrpc_Client_GetAddressUxOuts(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_Handle_Strings_GetCount(SWIGTYPE_p_Strings__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_webrpc_Client_GetBlocksInRange(SWIGTYPE_p_WebRpcClient__Handle p0, java.math.BigInteger p1, java.math.BigInteger p2, GoSlice p3) { + return skycoinJNI.SKY_webrpc_Client_GetBlocksInRange(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, p2, GoSlice.getCPtr (p3), p3); } - public static long SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle p0) { - return skycoinJNI.SKY_Handle_Strings_Sort(SWIGTYPE_p_Strings__Handle.getCPtr(p0)); + public static long SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle p0, GoSlice p1, GoSlice p2) { + return skycoinJNI.SKY_webrpc_Client_GetBlocksBySeq(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle p0, long p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); - { - return skycoinJNI.SKY_Handle_Strings_GetAt(SWIGTYPE_p_Strings__Handle.getCPtr(p0), p1, tmpp2, p2); - } + public static long SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle p0, java.math.BigInteger p1, GoSlice p2) { + return skycoinJNI.SKY_webrpc_Client_GetLastBlocks(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_api_Handle_Client_GetWalletDir(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { + return skycoinJNI.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); } - public static long SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { + public static long SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_api_Handle_Client_GetWalletFileName(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { + public static long SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_api_Handle_Client_GetWalletLabel(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_WalletResponse__Handle p1, _GoString_ p2) { -long tmpp2 = _GoString_.getCPtr (p2); - { - return skycoinJNI.SKY_api_Handle_Client_GetWalletFullPath(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_WalletResponse__Handle.getCPtr(p1), tmpp2, p2); - } + public static long SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { + return skycoinJNI.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); } - public static long SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_GoStringMap_ p1) { - return skycoinJNI.SKY_api_Handle_GetWalletMeta(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_GoStringMap_.getCPtr(p1)); + public static long SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + return skycoinJNI.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); } - public static long SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_api_Handle_GetWalletEntriesCount(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { + return skycoinJNI.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); } - public static long SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_api_Handle_Client_GetWalletResponseEntriesCount(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_cli_PasswordFromBytes_Password(GoSlice p0, GoSlice p1) { + return skycoinJNI.SKY_cli_PasswordFromBytes_Password(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle p0, long p1, cipher__Address p2, cipher_PubKey p3) { -long tmpp3 = cipher_PubKey.getCPtr (p3); + public static long SKY_cli_PasswordFromTerm_Password(GoSlice p0) { + return skycoinJNI.SKY_cli_PasswordFromTerm_Password(GoSlice.getCPtr (p0), p0); + } + + public static long SKY_cli_GenerateWallet(_GoString_ p0, SWIGTYPE_p_Options__Handle p1, java.math.BigInteger p2, SWIGTYPE_p_Wallet__Handle p3) { + return skycoinJNI.SKY_cli_GenerateWallet(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_Options__Handle.getCPtr(p1), p2, SWIGTYPE_p_Wallet__Handle.getCPtr(p3)); + } + + public static long SKY_cli_MakeAlphanumericSeed(_GoString_ p0) { +long tmpp0 = _GoString_.getCPtr (p0); { - return skycoinJNI.SKY_api_Handle_WalletGetEntry(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), p1, cipher__Address.getCPtr(p2), p2, tmpp3, p3); + return skycoinJNI.SKY_cli_MakeAlphanumericSeed(tmpp0, p0); + } + } + + public static long SKY_coin_NewBlock(SWIGTYPE_p_Block__Handle p0, java.math.BigInteger p1, cipher_SecKey p2, SWIGTYPE_p_Transactions__Handle p3, SWIGTYPE_p_FeeCalculator p4, SWIGTYPE_p_Block__Handle p5) { +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_coin_NewBlock__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), p1, tmpp2, p2, SWIGTYPE_p_Transactions__Handle.getCPtr(p3), SWIGTYPE_p_FeeCalculator.getCPtr(p4), SWIGTYPE_p_Block__Handle.getCPtr(p5)); } } - public static long SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle p0, long p1, _GoString_ p2, _GoString_ p3) { -long tmpp2 = _GoString_.getCPtr (p2); -long tmpp3 = _GoString_.getCPtr (p3); + public static long SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock p0, cipher_PubKey p1) { +long tmpp1 = cipher_PubKey.getCPtr (p1); { - return skycoinJNI.SKY_api_Handle_WalletResponseGetEntry(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), p1, tmpp2, p2, tmpp3, p3); + return skycoinJNI.SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle p0, SWIGTYPE_p_unsigned_char p1) { - return skycoinJNI.SKY_api_Handle_WalletResponseIsEncrypted(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_char.getCPtr(p1)); + public static long SKY_coin_NewGenesisBlock(cipher__Address p0, java.math.BigInteger p1, java.math.BigInteger p2, SWIGTYPE_p_Block__Handle p3) { + return skycoinJNI.SKY_coin_NewGenesisBlock(cipher__Address.getCPtr(p0), p0, p1, p2, SWIGTYPE_p_Block__Handle.getCPtr(p3)); } - public static long SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_coin_Block_HashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_api_Handle_WalletResponseGetCryptoType(SWIGTYPE_p_WalletResponse__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_coin_Block_HashHeader__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_api_Handle_WalletsResponseGetCount(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_coin_Block_PreHashHeader(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_coin_Block_PreHashHeader__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle p0, long p1, SWIGTYPE_p_WalletResponse__Handle p2) { - return skycoinJNI.SKY_api_Handle_WalletsResponseGetAt(SWIGTYPE_p_Wallets__Handle.getCPtr(p0), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); + public static long SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_coin_Block_Time(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } - public static long SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_api_Handle_GetWalletFolderAddress(SWIGTYPE_p_Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_coin_Block_Seq(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } - public static long SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_coin_Block_HashBody(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_api_Handle_GetWalletSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_coin_Block_HashBody__SWIG_1(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_api_Handle_GetWalletLastSeed(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_coin_Block_Size(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { + public static long SKY_coin_Block_String(SWIGTYPE_p_Block__Handle p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); -long tmpp2 = _GoString_.getCPtr (p2); -long tmpp3 = _GoString_.getCPtr (p3); { - return skycoinJNI.SKY_api_Handle_GetBuildInfoData(SWIGTYPE_p_BuildInfo_Handle.getCPtr(p0), tmpp1, p1, tmpp2, p2, tmpp3, p3); + return skycoinJNI.SKY_coin_Block_String(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { + public static long SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle p0, cipher_SecKey p1, SWIGTYPE_p_Transaction__Handle p2, SWIGTYPE_p_unsigned_char p3) { long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_coin_UxOut_Hash__SWIG_1(coin__UxOut.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_coin_Block_GetTransaction(SWIGTYPE_p_Block__Handle.getCPtr(p0), tmpp1, p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2), SWIGTYPE_p_unsigned_char.getCPtr(p3)); } } - public static long SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SecKey p1) { + public static long SKY_coin_NewBlockHeader(coin__BlockHeader p0, cipher_SecKey p1, java.math.BigInteger p2, java.math.BigInteger p3, SWIGTYPE_p_BlockBody__Handle p4, coin__BlockHeader p5) { long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_coin_UxOut_SnapshotHash__SWIG_1(coin__UxOut.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_coin_NewBlockHeader(coin__BlockHeader.getCPtr(p0), p0, tmpp1, p1, p2, p3, SWIGTYPE_p_BlockBody__Handle.getCPtr(p4), coin__BlockHeader.getCPtr(p5), p5); } } - public static long SKY_coin_UxBody_Hash(coin__UxBody p0, cipher_SecKey p1) { + public static long SKY_coin_BlockHeader_Hash(coin__BlockHeader p0, cipher_SecKey p1) { long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_coin_UxBody_Hash__SWIG_1(coin__UxBody.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_coin_BlockHeader_Hash__SWIG_1(coin__BlockHeader.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_coin_UxOut_CoinHours(coin__UxOut p0, java.math.BigInteger p1, SWIGTYPE_p_unsigned_long_long p2) { - return skycoinJNI.SKY_coin_UxOut_CoinHours(coin__UxOut.getCPtr(p0), p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); - } - - public static long SKY_coin_UxArray_Hashes(GoSlice p0, GoSlice p1) { - return skycoinJNI.SKY_coin_UxArray_Hashes__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1); - } - - public static long SKY_coin_UxArray_HasDupes(GoSlice p0, SWIGTYPE_p_unsigned_char p1) { - return skycoinJNI.SKY_coin_UxArray_HasDupes__SWIG_1(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); - } - - public static long SKY_coin_UxArray_Sort(GoSlice p0) { - return skycoinJNI.SKY_coin_UxArray_Sort(GoSlice.getCPtr (p0), p0); + public static long SKY_coin_BlockHeader_Bytes(coin__BlockHeader p0, GoSlice p1) { + return skycoinJNI.SKY_coin_BlockHeader_Bytes(coin__BlockHeader.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_UxArray_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_UxArray_Len(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_coin_BlockHeader_String(coin__BlockHeader p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_coin_BlockHeader_String(coin__BlockHeader.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_coin_UxArray_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - return skycoinJNI.SKY_coin_UxArray_Less__SWIG_1(GoSlice.getCPtr (p0), p0, p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static long SKY_coin_BlockBody_Hash(SWIGTYPE_p_BlockBody__Handle p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_coin_BlockBody_Hash__SWIG_1(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_coin_UxArray_Swap(GoSlice p0, long p1, long p2) { - return skycoinJNI.SKY_coin_UxArray_Swap__SWIG_1(GoSlice.getCPtr (p0), p0, p1, p2); + public static long SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle p0, SWIGTYPE_p_unsigned_int p1) { + return skycoinJNI.SKY_coin_BlockBody_Size(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); } - public static long SKY_coin_UxArray_Coins(GoSlice p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_coin_UxArray_Coins__SWIG_1(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_BlockBody_Bytes(SWIGTYPE_p_BlockBody__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_UxArray_CoinHours(GoSlice p0, java.math.BigInteger p1, SWIGTYPE_p_unsigned_long_long p2) { - return skycoinJNI.SKY_coin_UxArray_CoinHours__SWIG_1(GoSlice.getCPtr (p0), p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static long SKY_coin_CreateUnspents(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, GoSlice p2) { + return skycoinJNI.SKY_coin_CreateUnspents__SWIG_1(coin__BlockHeader.getCPtr(p0), p0, SWIGTYPE_p_Transaction__Handle.getCPtr(p1), GoSlice.getCPtr (p2), p2); } - public static long SKY_coin_UxArray_Sub(GoSlice p0, GoSlice p1, GoSlice p2) { - return skycoinJNI.SKY_coin_UxArray_Sub__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_coin_CreateUnspent(coin__BlockHeader p0, SWIGTYPE_p_Transaction__Handle p1, long p2, coin__UxOut p3) { + return skycoinJNI.SKY_coin_CreateUnspent(coin__BlockHeader.getCPtr(p0), p0, SWIGTYPE_p_Transaction__Handle.getCPtr(p1), p2, coin__UxOut.getCPtr(p3), p3); } - public static long SKY_coin_UxArray_Add(GoSlice p0, GoSlice p1, GoSlice p2) { - return skycoinJNI.SKY_coin_UxArray_Add__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_p_coin__Block p1) { + return skycoinJNI.SKY_coin_GetBlockObject(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Block.getCPtr(p1)); } - public static long SKY_coin_NewAddressUxOuts(GoSlice p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { - return skycoinJNI.SKY_coin_NewAddressUxOuts__SWIG_1(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); + public static long SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle p0, SWIGTYPE_p_BlockBody__Handle p1) { + return skycoinJNI.SKY_coin_GetBlockBody(SWIGTYPE_p_Block__Handle.getCPtr(p0), SWIGTYPE_p_BlockBody__Handle.getCPtr(p1)); } - public static long SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_AddressUxOuts_Keys__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Block__Handle p1) { + return skycoinJNI.SKY_coin_NewEmptyBlock(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Block__Handle.getCPtr(p1)); } - public static long SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_AddressUxOuts_Flatten__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_cli_App_Run(SWIGTYPE_p_App__Handle p0, _GoString_ p1) { + return skycoinJNI.SKY_cli_App_Run(SWIGTYPE_p_App__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); } - public static long SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { - return skycoinJNI.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + public static long SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_cli_Config_GetCoin(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { - return skycoinJNI.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); + public static long SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_cli_Config_GetRPCAddress(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); + } } - public static long SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { - return skycoinJNI.SKY_coin_AddressUxOuts_Get__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { + return skycoinJNI.SKY_cli_RPCClientFromApp(SWIGTYPE_p_App__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); } - public static long SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { - return skycoinJNI.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, SWIGTYPE_p_unsigned_char.getCPtr(p2)); + public static long SKY_cli_Getenv(_GoString_ p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_cli_Getenv(_GoString_.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { - return skycoinJNI.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, SWIGTYPE_p_long_long.getCPtr(p2)); + public static long SKY_cli_Setenv(_GoString_ p0, _GoString_ p1) { + return skycoinJNI.SKY_cli_Setenv(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1); } - public static long SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_cipher_Ripemd160_Set(cipher_Ripemd160 p0, GoSlice p1) { +long tmpp0 = cipher_Ripemd160.getCPtr (p0); + { + return skycoinJNI.SKY_cipher_Ripemd160_Set(tmpp0, p0, GoSlice.getCPtr(p1), p1); + } } - public static long SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { - return skycoinJNI.SKY_coin_AddressUxOuts_Set__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_cipher_HashRipemd160(GoSlice p0, cipher_Ripemd160 p1) { +long tmpp1 = cipher_Ripemd160.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { - return skycoinJNI.SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, GoSlice.getCPtr (p3), p3); + public static long SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); + { + return skycoinJNI.SKY_cipher_SHA256_Set__SWIG_1(tmpp0, p0, GoSlice.getCPtr(p1), p1); + } } - public static long SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305 p0, GoSlice p1, GoSlice p2, GoSlice p3) { - return skycoinJNI.SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, GoSlice.getCPtr (p3), p3); + public static long SKY_cipher_SHA256_Hex(cipher_SecKey p0, _GoString_ p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); +long tmpp1 = _GoString_.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_SHA256_Hex__SWIG_1(tmpp0, p0, tmpp1, p1); + } } - public static long SKY_wallet_CreateOptionsHandle(_GoString_ p0, _GoString_ p1, _GoString_ p2, short p3, _GoString_ p4, _GoString_ p5, java.math.BigInteger p6, SWIGTYPE_p_Options__Handle p7) { - return skycoinJNI.SKY_wallet_CreateOptionsHandle(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, p3, _GoString_.getCPtr(p4), p4, _GoString_.getCPtr(p5), p5, p6, SWIGTYPE_p_Options__Handle.getCPtr(p7)); + public static long SKY_cipher_SHA256_Xor(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { +long tmpp0 = cipher_SecKey.getCPtr (p0); +long tmpp1 = cipher_SecKey.getCPtr (p1); +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_cipher_SHA256_Xor(tmpp0, p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle p0, _GoString_ p1) { - return skycoinJNI.SKY_cli_AddPrivateKey(SWIGTYPE_p_Wallet__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); + public static long SKY_cipher_SumSHA256(GoSlice p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_SumSHA256__SWIG_1(GoSlice.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_cli_AddPrivateKeyToFile(_GoString_ p0, _GoString_ p1, SWIGTYPE_p_PasswordReader__Handle p2) { - return skycoinJNI.SKY_cli_AddPrivateKeyToFile(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p2)); + public static long SKY_cipher_SHA256FromHex(_GoString_ p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_SHA256FromHex__SWIG_1(_GoString_.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_apputil_CatchInterruptPanic() { - return skycoinJNI.SKY_apputil_CatchInterruptPanic(); + public static long SKY_cipher_DoubleSHA256(GoSlice p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_apputil_CatchDebug() { - return skycoinJNI.SKY_apputil_CatchDebug(); + public static long SKY_cipher_AddSHA256(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { +long tmpp0 = cipher_SecKey.getCPtr (p0); +long tmpp1 = cipher_SecKey.getCPtr (p1); +long tmpp2 = cipher_SecKey.getCPtr (p2); + { + return skycoinJNI.SKY_cipher_AddSHA256__SWIG_1(tmpp0, p0, tmpp1, p1, tmpp2, p2); + } } - public static long SKY_apputil_PrintProgramStatus() { - return skycoinJNI.SKY_apputil_PrintProgramStatus(); + public static long SKY_cipher_Merkle(GoSlice p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); + { + return skycoinJNI.SKY_cipher_Merkle(GoSlice.getCPtr(p0), p0, tmpp1, p1); + } } - public static long SKY_certutil_NewTLSCertPair(_GoString_ p0, _GoString_ p1, GoSlice p2, GoSlice p3, GoSlice p4) { - return skycoinJNI.SKY_certutil_NewTLSCertPair(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, GoSlice.getCPtr (p3), p3, GoSlice.getCPtr (p4), p4); + public static long SKY_cipher_SHA256_Null(cipher_SecKey p0, SWIGTYPE_p_unsigned_char p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); + { + return skycoinJNI.SKY_cipher_SHA256_Null(tmpp0, p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + } } - public static long SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle p0, java.math.BigInteger p1, long p2) { - return skycoinJNI.SKY_fee_VerifyTransactionFee(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, p2); + public static long SKY_cipher_DecodeBase58Address(_GoString_ p0, cipher__Address p1) { + return skycoinJNI.SKY_cipher_DecodeBase58Address(_GoString_.getCPtr(p0), p0, cipher__Address.getCPtr(p1), p1); } - public static long SKY_fee_VerifyTransactionFeeForHours(java.math.BigInteger p0, java.math.BigInteger p1, long p2) { - return skycoinJNI.SKY_fee_VerifyTransactionFeeForHours(p0, p1, p2); + public static long SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address p1) { + return skycoinJNI.SKY_cipher_AddressFromBytes(GoSlice.getCPtr(p0), p0, cipher__Address.getCPtr(p1), p1); } - public static long SKY_fee_RequiredFee(java.math.BigInteger p0, long p1, SWIGTYPE_p_unsigned_long_long p2) { - return skycoinJNI.SKY_fee_RequiredFee(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static long SKY_cipher_AddressFromPubKey(cipher_PubKey p0, cipher__Address p1) { +long tmpp0 = cipher_PubKey.getCPtr (p0); + { + return skycoinJNI.SKY_cipher_AddressFromPubKey(tmpp0, p0, cipher__Address.getCPtr(p1), p1); + } } - public static long SKY_fee_RemainingHours(java.math.BigInteger p0, long p1, SWIGTYPE_p_unsigned_long_long p2) { - return skycoinJNI.SKY_fee_RemainingHours(p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static long SKY_cipher_AddressFromSecKey(cipher_SecKey p0, cipher__Address p1) { +long tmpp0 = cipher_SecKey.getCPtr (p0); + { + return skycoinJNI.SKY_cipher_AddressFromSecKey(tmpp0, p0, cipher__Address.getCPtr(p1), p1); + } } - public static long SKY_fee_TransactionFee(SWIGTYPE_p_Transaction__Handle p0, java.math.BigInteger p1, GoSlice p2, SWIGTYPE_p_unsigned_long_long p3) { - return skycoinJNI.SKY_fee_TransactionFee__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, GoSlice.getCPtr (p2), p2, SWIGTYPE_p_unsigned_long_long.getCPtr(p3)); + public static long SKY_cipher_Address_Null(cipher__Address p0, SWIGTYPE_p_unsigned_char p1) { + return skycoinJNI.SKY_cipher_Address_Null(cipher__Address.getCPtr(p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); } - public static long SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle p0) { - return skycoinJNI.SKY_cli_LoadConfig(SWIGTYPE_p_Config__Handle.getCPtr(p0)); + public static long SKY_cipher_Address_Bytes(cipher__Address p0, GoSlice p1) { + return skycoinJNI.SKY_cipher_Address_Bytes(cipher__Address.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_cipher_Address_Verify(cipher__Address p0, cipher_PubKey p1) { +long tmpp1 = cipher_PubKey.getCPtr (p1); { - return skycoinJNI.SKY_cli_Config_FullWalletPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_cipher_Address_Verify(cipher__Address.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle p0, _GoString_ p1) { + public static long SKY_cipher_Address_String(cipher__Address p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_cli_Config_FullDBPath(SWIGTYPE_p_Config__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_cipher_Address_String(cipher__Address.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cli_NewApp(SWIGTYPE_p_Config__Handle p0, SWIGTYPE_p_App__Handle p1) { - return skycoinJNI.SKY_cli_NewApp(SWIGTYPE_p_Config__Handle.getCPtr(p0), SWIGTYPE_p_App__Handle.getCPtr(p1)); + public static long SKY_cipher_Address_Checksum(cipher__Address p0, SWIGTYPE_p_a_4__GoUint8_ p1) { + return skycoinJNI.SKY_cipher_Address_Checksum(cipher__Address.getCPtr(p0), p0, SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); } - public static long SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_WebRpcClient__Handle p1) { - return skycoinJNI.SKY_cli_RPCClientFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p1)); + public static long SKY_wallet_NewBalance(java.math.BigInteger p0, java.math.BigInteger p1, wallet__Balance p2) { + return skycoinJNI.SKY_wallet_NewBalance(p0, p1, wallet__Balance.getCPtr(p2), p2); } - public static long SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle p0, SWIGTYPE_p_Config__Handle p1) { - return skycoinJNI.SKY_cli_ConfigFromContext(SWIGTYPE_p_Context__Handle.getCPtr(p0), SWIGTYPE_p_Config__Handle.getCPtr(p1)); + public static long SKY_wallet_NewBalanceFromUxOut(java.math.BigInteger p0, coin__UxOut p1, wallet__Balance p2) { + return skycoinJNI.SKY_wallet_NewBalanceFromUxOut(p0, coin__UxOut.getCPtr(p1), p1, wallet__Balance.getCPtr(p2), p2); } - public static long SKY_cli_PasswordFromBytes_Password(GoSlice p0, GoSlice p1) { - return skycoinJNI.SKY_cli_PasswordFromBytes_Password(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_wallet_Balance_Add(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + return skycoinJNI.SKY_wallet_Balance_Add(wallet__Balance.getCPtr(p0), p0, wallet__Balance.getCPtr(p1), p1, wallet__Balance.getCPtr(p2), p2); } - public static long SKY_cli_PasswordFromTerm_Password(GoSlice p0) { - return skycoinJNI.SKY_cli_PasswordFromTerm_Password(GoSlice.getCPtr (p0), p0); + public static long SKY_wallet_Balance_Sub(wallet__Balance p0, wallet__Balance p1, wallet__Balance p2) { + return skycoinJNI.SKY_wallet_Balance_Sub(wallet__Balance.getCPtr(p0), p0, wallet__Balance.getCPtr(p1), p1, wallet__Balance.getCPtr(p2), p2); } - public static long SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, GoSlice p3, SWIGTYPE_p_PasswordReader__Handle p4, SWIGTYPE_p_Transaction__Handle p5) { - return skycoinJNI.SKY_cli_CreateRawTxFromWallet(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, GoSlice.getCPtr(p3), p3, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p4), SWIGTYPE_p_Transaction__Handle.getCPtr(p5)); + public static long SKY_wallet_Balance_Equals(wallet__Balance p0, wallet__Balance p1, SWIGTYPE_p_unsigned_char p2) { + return skycoinJNI.SKY_wallet_Balance_Equals(wallet__Balance.getCPtr(p0), p0, wallet__Balance.getCPtr(p1), p1, SWIGTYPE_p_unsigned_char.getCPtr(p2)); } - public static long SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, GoSlice p4, SWIGTYPE_p_PasswordReader__Handle p5, SWIGTYPE_p_Transaction__Handle p6) { - return skycoinJNI.SKY_cli_CreateRawTxFromAddress(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, _GoString_.getCPtr(p3), p3, GoSlice.getCPtr(p4), p4, SWIGTYPE_p_PasswordReader__Handle.getCPtr(p5), SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + public static long SKY_wallet_Balance_IsZero(wallet__Balance p0, SWIGTYPE_p_unsigned_char p1) { + return skycoinJNI.SKY_wallet_Balance_IsZero(wallet__Balance.getCPtr(p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); } - public static long SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, GoSlice p2, _GoString_ p3, GoSlice p4, GoSlice p5, SWIGTYPE_p_Transaction__Handle p6) { - return skycoinJNI.SKY_cli_CreateRawTx(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), GoSlice.getCPtr(p2), p2, _GoString_.getCPtr(p3), p3, GoSlice.getCPtr(p4), p4, GoSlice.getCPtr(p5), p5, SWIGTYPE_p_Transaction__Handle.getCPtr(p6)); + public static long SKY_apputil_CatchInterruptPanic() { + return skycoinJNI.SKY_apputil_CatchInterruptPanic(); } - public static long SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, SWIGTYPE_p_Transaction__Handle p3) { - return skycoinJNI.SKY_cli_NewTransaction(GoSlice.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, SWIGTYPE_p_Transaction__Handle.getCPtr(p3)); + public static long SKY_apputil_CatchDebug() { + return skycoinJNI.SKY_apputil_CatchDebug(); } - public static long SKY_file_InitDataDir(_GoString_ p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_file_InitDataDir(_GoString_.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_apputil_PrintProgramStatus() { + return skycoinJNI.SKY_apputil_PrintProgramStatus(); } - public static long SKY_file_UserHome(_GoString_ p0) { + public static long SKY_wallet_Entry_Verify(wallet__Entry p0) { + return skycoinJNI.SKY_wallet_Entry_Verify(wallet__Entry.getCPtr(p0), p0); + } + + public static long SKY_wallet_Entry_VerifyPublic(wallet__Entry p0) { + return skycoinJNI.SKY_wallet_Entry_VerifyPublic(wallet__Entry.getCPtr(p0), p0); + } + + public static long SKY_bip39_NewDefaultMnemomic(_GoString_ p0) { long tmpp0 = _GoString_.getCPtr (p0); { - return skycoinJNI.SKY_file_UserHome(tmpp0, p0); + return skycoinJNI.SKY_bip39_NewDefaultMnemomic(tmpp0, p0); } } - public static long SKY_file_ResolveResourceDirectory(_GoString_ p0, _GoString_ p1) { + public static long SKY_bip39_NewEntropy(long p0, GoSlice p1) { + return skycoinJNI.SKY_bip39_NewEntropy(p0, GoSlice.getCPtr (p1), p1); + } + + public static long SKY_bip39_NewMnemonic(GoSlice p0, _GoString_ p1) { long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_file_ResolveResourceDirectory(_GoString_.getCPtr(p0), p0, tmpp1, p1); + return skycoinJNI.SKY_bip39_NewMnemonic(GoSlice.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_file_DetermineResourcePath(_GoString_ p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { -long tmpp3 = _GoString_.getCPtr (p3); - { - return skycoinJNI.SKY_file_DetermineResourcePath(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, tmpp3, p3); - } + public static long SKY_bip39_MnemonicToByteArray(_GoString_ p0, GoSlice p1) { + return skycoinJNI.SKY_bip39_MnemonicToByteArray(_GoString_.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_DecodeBase58BitcoinAddress(_GoString_ p0, cipher__BitcoinAddress p1) { - return skycoinJNI.SKY_cipher_DecodeBase58BitcoinAddress(_GoString_.getCPtr(p0), p0, cipher__BitcoinAddress.getCPtr(p1), p1); + public static long SKY_bip39_IsMnemonicValid(_GoString_ p0, SWIGTYPE_p_unsigned_char p1) { + return skycoinJNI.SKY_bip39_IsMnemonicValid(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); } - public static void SKY_cipher_BitcoinAddressFromPubKey(cipher_PubKey p0, cipher__BitcoinAddress p1) { -long tmpp0 = cipher_PubKey.getCPtr (p0); + public static long SKY_certutil_NewTLSCertPair(_GoString_ p0, _GoString_ p1, GoSlice p2, GoSlice p3, GoSlice p4) { + return skycoinJNI.SKY_certutil_NewTLSCertPair(_GoString_.getCPtr(p0), p0, _GoString_.getCPtr(p1), p1, GoSlice.getCPtr(p2), p2, GoSlice.getCPtr (p3), p3, GoSlice.getCPtr (p4), p4); + } + + public static long SKY_coin_UxOut_Hash(coin__UxOut p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - skycoinJNI.SKY_cipher_BitcoinAddressFromPubKey(tmpp0, p0, cipher__BitcoinAddress.getCPtr(p1), p1); + return skycoinJNI.SKY_coin_UxOut_Hash__SWIG_1(coin__UxOut.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cipher_BitcoinAddressFromSecKey(cipher_SecKey p0, cipher__BitcoinAddress p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); + public static long SKY_coin_UxOut_SnapshotHash(coin__UxOut p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - return skycoinJNI.SKY_cipher_BitcoinAddressFromSecKey(tmpp0, p0, cipher__BitcoinAddress.getCPtr(p1), p1); + return skycoinJNI.SKY_coin_UxOut_SnapshotHash__SWIG_1(coin__UxOut.getCPtr(p0), p0, tmpp1, p1); } } - public static void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher_SecKey p0, _GoString_ p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); -long tmpp1 = _GoString_.getCPtr (p1); + public static long SKY_coin_UxBody_Hash(coin__UxBody p0, cipher_SecKey p1) { +long tmpp1 = cipher_SecKey.getCPtr (p1); { - skycoinJNI.SKY_cipher_BitcoinWalletImportFormatFromSeckey(tmpp0, p0, tmpp1, p1); + return skycoinJNI.SKY_coin_UxBody_Hash__SWIG_1(coin__UxBody.getCPtr(p0), p0, tmpp1, p1); } } - public static long SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress p1) { - return skycoinJNI.SKY_cipher_BitcoinAddressFromBytes(GoSlice.getCPtr(p0), p0, cipher__BitcoinAddress.getCPtr(p1), p1); + public static long SKY_coin_UxOut_CoinHours(coin__UxOut p0, java.math.BigInteger p1, SWIGTYPE_p_unsigned_long_long p2) { + return skycoinJNI.SKY_coin_UxOut_CoinHours(coin__UxOut.getCPtr(p0), p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); } - public static long SKY_cipher_SecKeyFromBitcoinWalletImportFormat(_GoString_ p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_SecKeyFromBitcoinWalletImportFormat(_GoString_.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_UxArray_Hashes(GoSlice p0, GoSlice p1) { + return skycoinJNI.SKY_coin_UxArray_Hashes__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1); } - public static short SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress p0) { - return skycoinJNI.SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress.getCPtr(p0), p0); + public static long SKY_coin_UxArray_HasDupes(GoSlice p0, SWIGTYPE_p_unsigned_char p1) { + return skycoinJNI.SKY_coin_UxArray_HasDupes__SWIG_1(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); } - public static void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress p0, GoSlice p1) { - skycoinJNI.SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_coin_UxArray_Sort(GoSlice p0) { + return skycoinJNI.SKY_coin_UxArray_Sort(GoSlice.getCPtr (p0), p0); } - public static long SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress p0, cipher_PubKey p1) { -long tmpp1 = cipher_PubKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_UxArray_Len(GoSlice p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_UxArray_Len(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_long_long.getCPtr(p1)); } - public static void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - skycoinJNI.SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_UxArray_Less(GoSlice p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { + return skycoinJNI.SKY_coin_UxArray_Less__SWIG_1(GoSlice.getCPtr (p0), p0, p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); } - public static void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress p0, SWIGTYPE_p_a_4__GoUint8_ p1) { - skycoinJNI.SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress.getCPtr(p0), p0, SWIGTYPE_p_a_4__GoUint8_.getCPtr(p1)); + public static long SKY_coin_UxArray_Swap(GoSlice p0, long p1, long p2) { + return skycoinJNI.SKY_coin_UxArray_Swap__SWIG_1(GoSlice.getCPtr (p0), p0, p1, p2); } - public static long SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle p0, _GoString_ p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle p2) { - return skycoinJNI.SKY_cli_GetWalletOutputsFromFile(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.getCPtr(p2)); + public static long SKY_coin_UxArray_Coins(GoSlice p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_coin_UxArray_Coins__SWIG_1(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } - public static long SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle p0, SWIGTYPE_p_Wallet__Handle p1, SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle p2) { - return skycoinJNI.SKY_cli_GetWalletOutputs(SWIGTYPE_p_WebRpcClient__Handle.getCPtr(p0), SWIGTYPE_p_Wallet__Handle.getCPtr(p1), SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.getCPtr(p2)); + public static long SKY_coin_UxArray_CoinHours(GoSlice p0, java.math.BigInteger p1, SWIGTYPE_p_unsigned_long_long p2) { + return skycoinJNI.SKY_coin_UxArray_CoinHours__SWIG_1(GoSlice.getCPtr (p0), p0, p1, SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); } - public static long SKY_testutil_MakeAddress(cipher__Address p0) { - return skycoinJNI.SKY_testutil_MakeAddress(cipher__Address.getCPtr(p0), p0); + public static long SKY_coin_UxArray_Sub(GoSlice p0, GoSlice p1, GoSlice p2) { + return skycoinJNI.SKY_coin_UxArray_Sub__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_cipher_Ripemd160_Set(cipher_Ripemd160 p0, GoSlice p1) { -long tmpp0 = cipher_Ripemd160.getCPtr (p0); - { - return skycoinJNI.SKY_cipher_Ripemd160_Set(tmpp0, p0, GoSlice.getCPtr(p1), p1); - } + public static long SKY_coin_UxArray_Add(GoSlice p0, GoSlice p1, GoSlice p2) { + return skycoinJNI.SKY_coin_UxArray_Add__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_cipher_HashRipemd160(GoSlice p0, cipher_Ripemd160 p1) { -long tmpp1 = cipher_Ripemd160.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_HashRipemd160(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_NewAddressUxOuts(GoSlice p0, SWIGTYPE_p_AddressUxOuts_Handle p1) { + return skycoinJNI.SKY_coin_NewAddressUxOuts__SWIG_1(GoSlice.getCPtr (p0), p0, SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1)); } - public static long SKY_cipher_SHA256_Set(cipher_SecKey p0, GoSlice p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); - { - return skycoinJNI.SKY_cipher_SHA256_Set__SWIG_1(tmpp0, p0, GoSlice.getCPtr(p1), p1); - } + public static long SKY_coin_AddressUxOuts_Keys(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_AddressUxOuts_Keys__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_SHA256_Hex(cipher_SecKey p0, _GoString_ p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_SHA256_Hex__SWIG_1(tmpp0, p0, tmpp1, p1); - } + public static long SKY_coin_AddressUxOuts_Flatten(SWIGTYPE_p_AddressUxOuts_Handle p0, GoSlice p1) { + return skycoinJNI.SKY_coin_AddressUxOuts_Flatten__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_cipher_SHA256_Xor(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { -long tmpp0 = cipher_SecKey.getCPtr (p0); -long tmpp1 = cipher_SecKey.getCPtr (p1); -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_cipher_SHA256_Xor(tmpp0, p0, tmpp1, p1, tmpp2, p2); - } + public static long SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + return skycoinJNI.SKY_coin_AddressUxOuts_Sub(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); } - public static long SKY_cipher_SumSHA256(GoSlice p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_SumSHA256__SWIG_1(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_AddressUxOuts_Handle p1, SWIGTYPE_p_AddressUxOuts_Handle p2) { + return skycoinJNI.SKY_coin_AddressUxOuts_Add(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p1), SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p2)); } - public static long SKY_cipher_SHA256FromHex(_GoString_ p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_SHA256FromHex__SWIG_1(_GoString_.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_AddressUxOuts_Get(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { + return skycoinJNI.SKY_coin_AddressUxOuts_Get__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); } - public static long SKY_cipher_DoubleSHA256(GoSlice p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_DoubleSHA256(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_unsigned_char p2) { + return skycoinJNI.SKY_coin_AddressUxOuts_HasKey(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, SWIGTYPE_p_unsigned_char.getCPtr(p2)); } - public static long SKY_cipher_AddSHA256(cipher_SecKey p0, cipher_SecKey p1, cipher_SecKey p2) { -long tmpp0 = cipher_SecKey.getCPtr (p0); -long tmpp1 = cipher_SecKey.getCPtr (p1); -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_cipher_AddSHA256__SWIG_1(tmpp0, p0, tmpp1, p1, tmpp2, p2); - } + public static long SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, SWIGTYPE_p_long_long p2) { + return skycoinJNI.SKY_coin_AddressUxOuts_GetOutputLength(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, SWIGTYPE_p_long_long.getCPtr(p2)); } - public static long SKY_cipher_Merkle(GoSlice p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_cipher_Merkle(GoSlice.getCPtr(p0), p0, tmpp1, p1); - } + public static long SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle p0, SWIGTYPE_p_long_long p1) { + return skycoinJNI.SKY_coin_AddressUxOuts_Length(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); } - public static long SKY_cipher_SHA256_Null(cipher_SecKey p0, SWIGTYPE_p_unsigned_char p1) { -long tmpp0 = cipher_SecKey.getCPtr (p0); + public static long SKY_coin_AddressUxOuts_Set(SWIGTYPE_p_AddressUxOuts_Handle p0, cipher__Address p1, GoSlice p2) { + return skycoinJNI.SKY_coin_AddressUxOuts_Set__SWIG_1(SWIGTYPE_p_AddressUxOuts_Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, GoSlice.getCPtr (p2), p2); + } + + public static long SKY_api_NewClient(_GoString_ p0, SWIGTYPE_p_Client__Handle p1) { + return skycoinJNI.SKY_api_NewClient(_GoString_.getCPtr(p0), p0, SWIGTYPE_p_Client__Handle.getCPtr(p1)); + } + + public static long SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { +long tmpp1 = _GoString_.getCPtr (p1); { - return skycoinJNI.SKY_cipher_SHA256_Null(tmpp0, p0, SWIGTYPE_p_unsigned_char.getCPtr(p1)); + return skycoinJNI.SKY_api_Client_CSRF(SWIGTYPE_p_Client__Handle.getCPtr(p0), tmpp1, p1); } } - public static long SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle p0) { - return skycoinJNI.SKY_coin_Create_Transaction(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static long SKY_api_Client_Version(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_Version(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - return skycoinJNI.SKY_coin_Transaction_Copy(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static long SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_Outputs(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_GetTransactionObject(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_p_coin__Transaction p1) { - return skycoinJNI.SKY_coin_GetTransactionObject__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_p_coin__Transaction.getCPtr(p1)); + public static long SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_OutputsForAddresses(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - return skycoinJNI.SKY_coin_Transaction_ResetInputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static long SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_OutputsForHashes(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_Transaction_GetInputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_CoinSupply(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_Transaction_GetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_coin_Transaction_GetInputAt__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); - } + public static long SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_BlockByHash(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_SetInputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_SecKey p2) { -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_coin_Transaction_SetInputAt__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); - } + public static long SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle p0, java.math.BigInteger p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_BlockBySeq(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_Transaction_GetOutputsCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_Blocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - return skycoinJNI.SKY_coin_Transaction_GetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2), p2); + public static long SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle p0, java.math.BigInteger p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_LastBlocks(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle p0, long p1, coin__TransactionOutput p2) { - return skycoinJNI.SKY_coin_Transaction_SetOutputAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, coin__TransactionOutput.getCPtr(p2), p2); + public static long SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_BlockchainMetadata(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_Transaction_GetSignaturesCount(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_BlockchainProgress(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_Sig p2) { -long tmpp2 = cipher_Sig.getCPtr (p2); - { - return skycoinJNI.SKY_coin_Transaction_GetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); - } + public static long SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle p0, GoSlice p1, wallet__BalancePair p2) { + return skycoinJNI.SKY_api_Client_Balance(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, wallet__BalancePair.getCPtr(p2), p2); } - public static long SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle p0, long p1, cipher_Sig p2) { -long tmpp2 = cipher_Sig.getCPtr (p2); - { - return skycoinJNI.SKY_coin_Transaction_SetSignatureAt(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1, tmpp2, p2); - } + public static long SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_UxOut(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle p0, cipher_Sig p1) { -long tmpp1 = cipher_Sig.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Transaction_PushSignature(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_AddressUxOuts(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle p0, long p1) { - return skycoinJNI.SKY_coin_Transaction_ResetOutputs(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static long SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_WalletResponse__Handle p2) { + return skycoinJNI.SKY_api_Client_Wallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle p0, long p1) { - return skycoinJNI.SKY_coin_Transaction_ResetSignatures(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), p1); + public static long SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Wallets__Handle p1) { + return skycoinJNI.SKY_api_Client_Wallets(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Wallets__Handle.getCPtr(p1)); } - public static long SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle p0) { - return skycoinJNI.SKY_coin_Transaction_Verify(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static long SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, long p3, SWIGTYPE_p_WalletResponse__Handle p4) { + return skycoinJNI.SKY_api_Client_CreateUnencryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, p3, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p4)); } - public static long SKY_coin_Transaction_VerifyInput(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_Transaction_VerifyInput__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3, long p4, SWIGTYPE_p_WalletResponse__Handle p5) { + return skycoinJNI.SKY_api_Client_CreateEncryptedWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, _GoString_.getCPtr(p3), p3, p4, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p5)); } - public static long SKY_coin_Transaction_PushInput(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1, SWIGTYPE_p_unsigned_short p2) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Transaction_PushInput__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1, SWIGTYPE_p_unsigned_short.getCPtr(p2)); - } + public static long SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, long p2, _GoString_ p3, SWIGTYPE_p_Strings__Handle p4) { + return skycoinJNI.SKY_api_Client_NewWalletAddress(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, p2, _GoString_.getCPtr(p3), p3, SWIGTYPE_p_Strings__Handle.getCPtr(p4)); } - public static long SKY_coin_TransactionOutput_UxID(coin__TransactionOutput p0, cipher_SecKey p1, cipher_SecKey p2) { -long tmpp1 = cipher_SecKey.getCPtr (p1); -long tmpp2 = cipher_SecKey.getCPtr (p2); - { - return skycoinJNI.SKY_coin_TransactionOutput_UxID(coin__TransactionOutput.getCPtr(p0), p0, tmpp1, p1, tmpp2, p2); - } + public static long SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, wallet__BalancePair p2) { + return skycoinJNI.SKY_api_Client_WalletBalance(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, wallet__BalancePair.getCPtr(p2), p2); } - public static long SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle p0, cipher__Address p1, java.math.BigInteger p2, java.math.BigInteger p3) { - return skycoinJNI.SKY_coin_Transaction_PushOutput(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), cipher__Address.getCPtr(p1), p1, p2, p3); + public static long SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, java.math.BigInteger p3, _GoString_ p4, SWIGTYPE_p_SpendResult_Handle p5) { + return skycoinJNI.SKY_api_Client_Spend(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, p3, _GoString_.getCPtr(p4), p4, SWIGTYPE_p_SpendResult_Handle.getCPtr(p5)); } - public static long SKY_coin_Transaction_SignInputs(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_Transaction_SignInputs__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1); + public static long SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1, SWIGTYPE_p_CreateTransactionResponse__Handle p2) { + return skycoinJNI.SKY_api_Client_CreateTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1), SWIGTYPE_p_CreateTransactionResponse__Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_coin_Transaction_Size(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { + return skycoinJNI.SKY_api_Client_UpdateWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2); } - public static long SKY_coin_Transaction_Hash(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); + public static long SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_WalletFolderName(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); + } + + public static long SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle p0, long p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); { - return skycoinJNI.SKY_coin_Transaction_Hash__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); + return skycoinJNI.SKY_api_Client_NewSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), p1, tmpp2, p2); } } - public static long SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_int p1, cipher_SecKey p2) { -long tmpp2 = cipher_SecKey.getCPtr (p2); + public static long SKY_api_Client_WalletSeed(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, _GoString_ p3) { +long tmpp3 = _GoString_.getCPtr (p3); { - return skycoinJNI.SKY_coin_Transaction_SizeHash(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1), tmpp2, p2); + return skycoinJNI.SKY_api_Client_WalletSeed(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, tmpp3, p3); } } - public static long SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_Transaction_TxID(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_NetworkConnection(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle p0, _GoString_ p1) { -long tmpp1 = _GoString_.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Transaction_TxIDHex(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle p0, api__NetworkConnectionsFilter p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_NetworkConnections(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__NetworkConnectionsFilter.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle p0) { - return skycoinJNI.SKY_coin_Transaction_UpdateHeader(SWIGTYPE_p_Transaction__Handle.getCPtr(p0)); + public static long SKY_api_Client_NetworkDefaultPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_api_Client_NetworkDefaultPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_Transaction_HashInner(SWIGTYPE_p_Transaction__Handle p0, cipher_SecKey p1) { -long tmpp1 = cipher_SecKey.getCPtr (p1); - { - return skycoinJNI.SKY_coin_Transaction_HashInner__SWIG_1(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), tmpp1, p1); - } + public static long SKY_api_Client_NetworkTrustedPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_api_Client_NetworkTrustedPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_Transaction_Serialize(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_api_Client_NetworkExchangedPeers(SWIGTYPE_p_Client__Handle p0, GoSlice p1) { + return skycoinJNI.SKY_api_Client_NetworkExchangedPeers(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_TransactionDeserialize(GoSlice p0, SWIGTYPE_p_Transaction__Handle p1) { - return skycoinJNI.SKY_coin_TransactionDeserialize(GoSlice.getCPtr(p0), p0, SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static long SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_PendingTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { - return skycoinJNI.SKY_coin_Transaction_OutputHours(SWIGTYPE_p_Transaction__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + public static long SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_Transaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle p0) { - return skycoinJNI.SKY_coin_Create_Transactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0)); + public static long SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_Transactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_GetTransactionsObject(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_ConfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_Transactions_Length(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, GoSlice p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_UnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), GoSlice.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_Transaction__Handle p1) { - return skycoinJNI.SKY_coin_Transactions_Add(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1)); + public static long SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Transaction__Handle p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); + { + return skycoinJNI.SKY_api_Client_InjectTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Transaction__Handle.getCPtr(p1), tmpp2, p2); + } } - public static long SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_unsigned_long_long p2) { - return skycoinJNI.SKY_coin_Transactions_Fees(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_unsigned_long_long.getCPtr(p2)); + public static long SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_ResendUnconfirmedTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transaction__Handle p2) { - return skycoinJNI.SKY_coin_Transactions_GetAt(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transaction__Handle.getCPtr(p2)); + public static long SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2) { +long tmpp2 = _GoString_.getCPtr (p2); + { + return skycoinJNI.SKY_api_Client_RawTransaction(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, tmpp2, p2); + } } - public static long SKY_coin_Transactions_Hashes(SWIGTYPE_p_Transactions__Handle p0, GoSlice p1) { - return skycoinJNI.SKY_coin_Transactions_Hashes__SWIG_1(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), GoSlice.getCPtr (p1), p1); + public static long SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_AddressTransactions(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_unsigned_int p1) { - return skycoinJNI.SKY_coin_Transactions_Size(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_int.getCPtr(p1)); + public static long SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle p0, api__RichlistParams p1, SWIGTYPE_p_Handle p2) { + return skycoinJNI.SKY_api_Client_Richlist(SWIGTYPE_p_Client__Handle.getCPtr(p0), api__RichlistParams.getCPtr(p1), p1, SWIGTYPE_p_Handle.getCPtr(p2)); } - public static long SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle p0, long p1, SWIGTYPE_p_Transactions__Handle p2) { - return skycoinJNI.SKY_coin_Transactions_TruncateBytesTo(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), p1, SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + public static long SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_api_Client_AddressCount(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } - public static long SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_Transactions__Handle p2) { - return skycoinJNI.SKY_coin_SortTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_Transactions__Handle.getCPtr(p2)); + public static long SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1) { + return skycoinJNI.SKY_api_Client_UnloadWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1); } - public static long SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle p0, SWIGTYPE_p_FeeCalculator p1, SWIGTYPE_p_SortableTransactionResult_Handle p2) { - return skycoinJNI.SKY_coin_NewSortableTransactions(SWIGTYPE_p_Transactions__Handle.getCPtr(p0), SWIGTYPE_p_FeeCalculator.getCPtr(p1), SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p2)); + public static long SKY_api_Client_Health(SWIGTYPE_p_Client__Handle p0, SWIGTYPE_p_Handle p1) { + return skycoinJNI.SKY_api_Client_Health(SWIGTYPE_p_Client__Handle.getCPtr(p0), SWIGTYPE_p_Handle.getCPtr(p1)); } - public static long SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle p0) { - return skycoinJNI.SKY_coin_SortableTransactions_Sort(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0)); + public static long SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + return skycoinJNI.SKY_api_Client_EncryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); } - public static long SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle p0, SWIGTYPE_p_long_long p1) { - return skycoinJNI.SKY_coin_SortableTransactions_Len(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), SWIGTYPE_p_long_long.getCPtr(p1)); + public static long SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle p0, _GoString_ p1, _GoString_ p2, SWIGTYPE_p_WalletResponse__Handle p3) { + return skycoinJNI.SKY_api_Client_DecryptWallet(SWIGTYPE_p_Client__Handle.getCPtr(p0), _GoString_.getCPtr(p1), p1, _GoString_.getCPtr(p2), p2, SWIGTYPE_p_WalletResponse__Handle.getCPtr(p3)); } - public static long SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2, SWIGTYPE_p_unsigned_char p3) { - return skycoinJNI.SKY_coin_SortableTransactions_Less(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2, SWIGTYPE_p_unsigned_char.getCPtr(p3)); + public static long SKY_httphelper_Address_UnmarshalJSON(httphelper__Address p0, GoSlice p1) { + return skycoinJNI.SKY_httphelper_Address_UnmarshalJSON(httphelper__Address.getCPtr(p0), p0, GoSlice.getCPtr(p1), p1); } - public static long SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle p0, long p1, long p2) { - return skycoinJNI.SKY_coin_SortableTransactions_Swap(SWIGTYPE_p_SortableTransactionResult_Handle.getCPtr(p0), p1, p2); + public static long SKY_httphelper_Address_MarshalJSON(httphelper__Address p0, GoSlice p1) { + return skycoinJNI.SKY_httphelper_Address_MarshalJSON(httphelper__Address.getCPtr(p0), p0, GoSlice.getCPtr (p1), p1); } - public static long SKY_coin_VerifyTransactionCoinsSpending(GoSlice p0, GoSlice p1) { - return skycoinJNI.SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(GoSlice.getCPtr (p0), p0, GoSlice.getCPtr (p1), p1); + public static long SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + return skycoinJNI.SKY_httphelper_Coins_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1), p1); } - public static long SKY_coin_VerifyTransactionHoursSpending(java.math.BigInteger p0, GoSlice p1, GoSlice p2) { - return skycoinJNI.SKY_coin_VerifyTransactionHoursSpending__SWIG_1(p0, GoSlice.getCPtr (p1), p1, GoSlice.getCPtr (p2), p2); + public static long SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + return skycoinJNI.SKY_httphelper_Coins_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr (p1), p1); + } + + public static long SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_httphelper_Coins_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); + } + + public static long SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + return skycoinJNI.SKY_httphelper_Hours_UnmarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr(p1), p1); + } + + public static long SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_ p0, GoSlice p1) { + return skycoinJNI.SKY_httphelper_Hours_MarshalJSON(SWIGTYPE_p_GoUint64_.getCPtr(p0), GoSlice.getCPtr (p1), p1); + } + + public static long SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_ p0, SWIGTYPE_p_unsigned_long_long p1) { + return skycoinJNI.SKY_httphelper_Hours_Value(SWIGTYPE_p_GoUint64_.getCPtr(p0), SWIGTYPE_p_unsigned_long_long.getCPtr(p1)); } } diff --git a/src/main/java/skycoin/libjava/skycoinJNI.java b/src/main/java/skycoin/libjava/skycoinJNI.java index caa0c22..32ce2cc 100644 --- a/src/main/java/skycoin/libjava/skycoinJNI.java +++ b/src/main/java/skycoin/libjava/skycoinJNI.java @@ -375,88 +375,107 @@ public class skycoinJNI { public final static native long GoSlice_cap_get(long jarg1, GoSlice jarg1_); public final static native long new_GoSlice(); public final static native void delete_GoSlice(long jarg1); - public final static native long SKY_coin_NewBlock__SWIG_1(long jarg1, java.math.BigInteger jarg2, long jarg3, cipher_SecKey jarg3_, long jarg4, long jarg5, long jarg6); - public final static native long SKY_coin_SignedBlock_VerifySignature(long jarg1, coin__SignedBlock jarg1_, long jarg2, cipher_PubKey jarg2_); - public final static native long SKY_coin_NewGenesisBlock(long jarg1, cipher__Address jarg1_, java.math.BigInteger jarg2, java.math.BigInteger jarg3, long jarg4); - public final static native long SKY_coin_Block_HashHeader__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_Block_PreHashHeader__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_Block_Time(long jarg1, long jarg2); - public final static native long SKY_coin_Block_Seq(long jarg1, long jarg2); - public final static native long SKY_coin_Block_HashBody__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_Block_Size(long jarg1, long jarg2); - public final static native long SKY_coin_Block_String(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_coin_Block_GetTransaction(long jarg1, long jarg2, cipher_SecKey jarg2_, long jarg3, long jarg4); - public final static native long SKY_coin_NewBlockHeader(long jarg1, coin__BlockHeader jarg1_, long jarg2, cipher_SecKey jarg2_, java.math.BigInteger jarg3, java.math.BigInteger jarg4, long jarg5, long jarg6, coin__BlockHeader jarg6_); - public final static native long SKY_coin_BlockHeader_Hash__SWIG_1(long jarg1, coin__BlockHeader jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_BlockHeader_Bytes(long jarg1, coin__BlockHeader jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_BlockHeader_String(long jarg1, coin__BlockHeader jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_coin_BlockBody_Hash__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_BlockBody_Size(long jarg1, long jarg2); - public final static native long SKY_coin_BlockBody_Bytes(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_CreateUnspents__SWIG_1(long jarg1, coin__BlockHeader jarg1_, long jarg2, long jarg3, GoSlice jarg3_); - public final static native long SKY_coin_CreateUnspent(long jarg1, coin__BlockHeader jarg1_, long jarg2, long jarg3, long jarg4, coin__UxOut jarg4_); - public final static native long SKY_coin_GetBlockObject(long jarg1, long jarg2); - public final static native long SKY_coin_GetBlockBody(long jarg1, long jarg2); - public final static native long SKY_coin_NewEmptyBlock(long jarg1, long jarg2); - public final static native long SKY_bip39_NewDefaultMnemomic(long jarg1, _GoString_ jarg1_); - public final static native long SKY_bip39_NewEntropy(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_bip39_NewMnemonic(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_bip39_MnemonicToByteArray(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_bip39_IsMnemonicValid(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_api_NewClient(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_api_Client_CSRF(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Client_Version(long jarg1, long jarg2); - public final static native long SKY_api_Client_Outputs(long jarg1, long jarg2); - public final static native long SKY_api_Client_OutputsForAddresses(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_Client_OutputsForHashes(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_Client_CoinSupply(long jarg1, long jarg2); - public final static native long SKY_api_Client_BlockByHash(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_BlockBySeq(long jarg1, java.math.BigInteger jarg2, long jarg3); - public final static native long SKY_api_Client_Blocks(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_Client_LastBlocks(long jarg1, java.math.BigInteger jarg2, long jarg3); - public final static native long SKY_api_Client_BlockchainMetadata(long jarg1, long jarg2); - public final static native long SKY_api_Client_BlockchainProgress(long jarg1, long jarg2); - public final static native long SKY_api_Client_Balance(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, wallet__BalancePair jarg3_); - public final static native long SKY_api_Client_UxOut(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_AddressUxOuts(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_Wallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_Wallets(long jarg1, long jarg2); - public final static native long SKY_api_Client_CreateUnencryptedWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, long jarg5); - public final static native long SKY_api_Client_CreateEncryptedWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_, long jarg5, long jarg6); - public final static native long SKY_api_Client_NewWalletAddress(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, long jarg4, _GoString_ jarg4_, long jarg5); - public final static native long SKY_api_Client_WalletBalance(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, wallet__BalancePair jarg3_); - public final static native long SKY_api_Client_Spend(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, java.math.BigInteger jarg4, long jarg5, _GoString_ jarg5_, long jarg6); - public final static native long SKY_api_Client_CreateTransaction(long jarg1, long jarg2, long jarg3); - public final static native long SKY_api_Client_UpdateWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_); - public final static native long SKY_api_Client_WalletFolderName(long jarg1, long jarg2); - public final static native long SKY_api_Client_NewSeed(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); - public final static native long SKY_api_Client_WalletSeed(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); - public final static native long SKY_api_Client_NetworkConnection(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_NetworkConnections(long jarg1, long jarg2, api__NetworkConnectionsFilter jarg2_, long jarg3); - public final static native long SKY_api_Client_NetworkDefaultPeers(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_api_Client_NetworkTrustedPeers(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_api_Client_NetworkExchangedPeers(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_api_Client_PendingTransactions(long jarg1, long jarg2); - public final static native long SKY_api_Client_Transaction(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_Transactions(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_Client_ConfirmedTransactions(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_Client_UnconfirmedTransactions(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_Client_InjectTransaction(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); - public final static native long SKY_api_Client_ResendUnconfirmedTransactions(long jarg1, long jarg2); - public final static native long SKY_api_Client_RawTransaction(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_); - public final static native long SKY_api_Client_AddressTransactions(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_api_Client_Richlist(long jarg1, long jarg2, api__RichlistParams jarg2_, long jarg3); - public final static native long SKY_api_Client_AddressCount(long jarg1, long jarg2); - public final static native long SKY_api_Client_UnloadWallet(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Client_Health(long jarg1, long jarg2); - public final static native long SKY_api_Client_EncryptWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4); - public final static native long SKY_api_Client_DecryptWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4); public final static native long SKY_api_NewWalletResponse(long jarg1, long jarg2); - public final static native long SKY_api_NewCreateTransactionResponse(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_NewCreatedTransaction(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_api_CreatedTransaction_ToTransaction(long jarg1, long jarg2); - public final static native long SKY_api_NewCreatedTransactionOutput(long jarg1, coin__TransactionOutput jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3); - public final static native long SKY_api_NewCreatedTransactionInput(long jarg1, wallet__UxBalance jarg1_, long jarg2); + public final static native long SKY_cli_GenerateAddressesInFile(long jarg1, _GoString_ jarg1_, java.math.BigInteger jarg2, long jarg3, long jarg4, GoSlice jarg4_); + public final static native long SKY_cli_FormatAddressesAsJSON(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_FormatAddressesAsJoinedArray(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_AddressesToStrings(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_wallet_NewReadableEntry(long jarg1, _GoString_ jarg1_, long jarg2, wallet__Entry jarg2_, long jarg3); + public final static native long SKY_wallet_LoadReadableWallet(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_wallet_ReadableWallet_Save(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_wallet_ReadableWallet_Load(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_wallet_ReadableWallet_Erase(long jarg1); + public final static native long SKY_logging_EnableColors(); + public final static native long SKY_logging_DisableColors(); + public final static native long SKY_logging_Disable(); + public final static native long SKY_fee_VerifyTransactionFee(long jarg1, java.math.BigInteger jarg2, long jarg3); + public final static native long SKY_fee_VerifyTransactionFeeForHours(java.math.BigInteger jarg1, java.math.BigInteger jarg2, long jarg3); + public final static native long SKY_fee_RequiredFee(java.math.BigInteger jarg1, long jarg2, long jarg3); + public final static native long SKY_fee_RemainingHours(java.math.BigInteger jarg1, long jarg2, long jarg3); + public final static native long SKY_fee_TransactionFee__SWIG_1(long jarg1, java.math.BigInteger jarg2, long jarg3, GoSlice jarg3_, long jarg4); + public final static native void SKY_params_GetDistributionAddresses(long jarg1, GoSlice jarg1_); + public final static native void SKY_params_GetUnlockedDistributionAddresses(long jarg1, GoSlice jarg1_); + public final static native void SKY_params_GetLockedDistributionAddresses(long jarg1, GoSlice jarg1_); + public final static native long SKY_JsonEncode_Handle(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_Handle_Progress_GetCurrent(long jarg1, long jarg2); + public final static native long SKY_Handle_Block_GetHeadSeq(long jarg1, long jarg2); + public final static native long SKY_Handle_Block_GetHeadHash(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_Handle_Block_GetPreviousBlockHash(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_Handle_Blocks_GetAt(long jarg1, java.math.BigInteger jarg2, long jarg3); + public final static native long SKY_Handle_Blocks_GetCount(long jarg1, long jarg2); + public final static native long SKY_Handle_Connections_GetCount(long jarg1, long jarg2); + public final static native long SKY_Handle_Strings_GetCount(long jarg1, long jarg2); + public final static native long SKY_Handle_Strings_Sort(long jarg1); + public final static native long SKY_Handle_Strings_GetAt(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); + public final static native long SKY_api_Handle_Client_GetWalletDir(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_Client_GetWalletFileName(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_Client_GetWalletLabel(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_Client_GetWalletFullPath(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); + public final static native long SKY_api_Handle_GetWalletMeta(long jarg1, long jarg2); + public final static native long SKY_api_Handle_GetWalletEntriesCount(long jarg1, long jarg2); + public final static native long SKY_api_Handle_Client_GetWalletResponseEntriesCount(long jarg1, long jarg2); + public final static native long SKY_api_Handle_WalletGetEntry(long jarg1, long jarg2, long jarg3, cipher__Address jarg3_, long jarg4, cipher_PubKey jarg4_); + public final static native long SKY_api_Handle_WalletResponseGetEntry(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); + public final static native long SKY_api_Handle_WalletResponseIsEncrypted(long jarg1, long jarg2); + public final static native long SKY_api_Handle_WalletResponseGetCryptoType(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_WalletsResponseGetCount(long jarg1, long jarg2); + public final static native long SKY_api_Handle_WalletsResponseGetAt(long jarg1, long jarg2, long jarg3); + public final static native long SKY_api_Handle_GetWalletFolderAddress(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_GetWalletSeed(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_GetWalletLastSeed(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Handle_GetBuildInfoData(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); + public final static native long SKY_cli_AddPrivateKey(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_AddPrivateKeyToFile(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_coin_Create_Transaction(long jarg1); + public final static native long SKY_coin_Transaction_Copy(long jarg1, long jarg2); + public final static native long SKY_coin_GetTransactionObject__SWIG_1(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_ResetInputs(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_GetInputsCount(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_GetInputAt__SWIG_1(long jarg1, long jarg2, long jarg3, cipher_SecKey jarg3_); + public final static native long SKY_coin_Transaction_SetInputAt__SWIG_1(long jarg1, long jarg2, long jarg3, cipher_SecKey jarg3_); + public final static native long SKY_coin_Transaction_GetOutputsCount(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_GetOutputAt(long jarg1, long jarg2, long jarg3, coin__TransactionOutput jarg3_); + public final static native long SKY_coin_Transaction_SetOutputAt(long jarg1, long jarg2, long jarg3, coin__TransactionOutput jarg3_); + public final static native long SKY_coin_Transaction_GetSignaturesCount(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_GetSignatureAt(long jarg1, long jarg2, long jarg3, cipher_Sig jarg3_); + public final static native long SKY_coin_Transaction_SetSignatureAt(long jarg1, long jarg2, long jarg3, cipher_Sig jarg3_); + public final static native long SKY_coin_Transaction_PushSignature(long jarg1, long jarg2, cipher_Sig jarg2_); + public final static native long SKY_coin_Transaction_ResetOutputs(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_ResetSignatures(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_Verify(long jarg1); + public final static native long SKY_coin_Transaction_VerifyInput__SWIG_1(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_Transaction_PushInput__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_, long jarg3); + public final static native long SKY_coin_TransactionOutput_UxID(long jarg1, coin__TransactionOutput jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3, cipher_SecKey jarg3_); + public final static native long SKY_coin_Transaction_PushOutput(long jarg1, long jarg2, cipher__Address jarg2_, java.math.BigInteger jarg3, java.math.BigInteger jarg4); + public final static native long SKY_coin_Transaction_SignInputs__SWIG_1(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_Transaction_Size(long jarg1, long jarg2); + public final static native long SKY_coin_Transaction_Hash__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_Transaction_SizeHash(long jarg1, long jarg2, long jarg3, cipher_SecKey jarg3_); + public final static native long SKY_coin_Transaction_TxID(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_Transaction_TxIDHex(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_coin_Transaction_UpdateHeader(long jarg1); + public final static native long SKY_coin_Transaction_HashInner__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_Transaction_Serialize(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_TransactionDeserialize(long jarg1, GoSlice jarg1_, long jarg2); + public final static native long SKY_coin_Transaction_OutputHours(long jarg1, long jarg2); + public final static native long SKY_coin_Create_Transactions(long jarg1); + public final static native long SKY_coin_GetTransactionsObject(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_Transactions_Length(long jarg1, long jarg2); + public final static native long SKY_coin_Transactions_Add(long jarg1, long jarg2); + public final static native long SKY_coin_Transactions_Fees(long jarg1, long jarg2, long jarg3); + public final static native long SKY_coin_Transactions_GetAt(long jarg1, long jarg2, long jarg3); + public final static native long SKY_coin_Transactions_Hashes__SWIG_1(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_Transactions_Size(long jarg1, long jarg2); + public final static native long SKY_coin_Transactions_TruncateBytesTo(long jarg1, long jarg2, long jarg3); + public final static native long SKY_coin_SortTransactions(long jarg1, long jarg2, long jarg3); + public final static native long SKY_coin_NewSortableTransactions(long jarg1, long jarg2, long jarg3); + public final static native long SKY_coin_SortableTransactions_Sort(long jarg1); + public final static native long SKY_coin_SortableTransactions_Len(long jarg1, long jarg2); + public final static native long SKY_coin_SortableTransactions_Less(long jarg1, long jarg2, long jarg3, long jarg4); + public final static native long SKY_coin_SortableTransactions_Swap(long jarg1, long jarg2, long jarg3); + public final static native long SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_VerifyTransactionHoursSpending__SWIG_1(java.math.BigInteger jarg1, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_); + public final static native long SKY_testutil_MakeAddress(long jarg1, cipher__Address jarg1_); public final static native long SKY_wallet_NewError(long jarg1, GoInterface jarg1_); public final static native long SKY_wallet_NewWallet(long jarg1, _GoString_ jarg1_, long jarg2, long jarg3); public final static native long SKY_wallet_Wallet_Lock(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, _GoString_ jarg3_); @@ -479,48 +498,46 @@ public class skycoinJNI { public final static native long SKY_wallet_NewUxBalance(java.math.BigInteger jarg1, long jarg2, coin__UxOut jarg2_, long jarg3, wallet__UxBalance jarg3_); public final static native long SKY_wallet_ChooseSpendsMinimizeUxOuts(long jarg1, GoSlice jarg1_, java.math.BigInteger jarg2, java.math.BigInteger jarg3, long jarg4, GoSlice jarg4_); public final static native long SKY_wallet_ChooseSpendsMaximizeUxOuts(long jarg1, GoSlice jarg1_, java.math.BigInteger jarg2, java.math.BigInteger jarg3, long jarg4, GoSlice jarg4_); + public final static native long SKY_wallet_CreateOptionsHandle(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, short jarg4, long jarg5, _GoString_ jarg5_, long jarg6, _GoString_ jarg6_, java.math.BigInteger jarg7, long jarg8); + public final static native long SKY_cli_CreateRawTxFromWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, GoSlice jarg4_, long jarg5, long jarg6); + public final static native long SKY_cli_CreateRawTxFromAddress(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_, long jarg5, GoSlice jarg5_, long jarg6, long jarg7); + public final static native long SKY_cli_CreateRawTx(long jarg1, long jarg2, long jarg3, GoSlice jarg3_, long jarg4, _GoString_ jarg4_, long jarg5, GoSlice jarg5_, long jarg6, GoSlice jarg6_, long jarg7); + public final static native long SKY_cli_NewTransaction(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_, long jarg4); + public final static native long SKY_encrypt_ScryptChacha20poly1305_Encrypt(long jarg1, encrypt__ScryptChacha20poly1305 jarg1_, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_); + public final static native long SKY_encrypt_ScryptChacha20poly1305_Decrypt(long jarg1, encrypt__ScryptChacha20poly1305 jarg1_, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_); public final static native long SKY_cli_CheckWalletBalance(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); public final static native long SKY_cli_GetBalanceOfAddresses(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); - public final static native long SKY_wallet_NewReadableEntry(long jarg1, _GoString_ jarg1_, long jarg2, wallet__Entry jarg2_, long jarg3); - public final static native long SKY_wallet_LoadReadableWallet(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_wallet_ReadableWallet_Save(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_wallet_ReadableWallet_Load(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_wallet_ReadableWallet_Erase(long jarg1); - public final static native long SKY_base58_String2Hex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_base58_Base58_ToInt(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_base58_Base58_ToHex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_base58_Base58_Base582Int(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_base58_Base582Hex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_base58_Base58_BitHex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_base58_Int2Base58(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_base58_Hex2Base58(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_base58_Hex2Base58String(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_base58_Hex2Base58Str(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_GenerateWallet(long jarg1, _GoString_ jarg1_, long jarg2, java.math.BigInteger jarg3, long jarg4); - public final static native long SKY_cli_MakeAlphanumericSeed(long jarg1, _GoString_ jarg1_); - public final static native long SKY_webrpc_NewClient(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_webrpc_Client_CSRF(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_webrpc_Client_InjectTransaction(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); - public final static native long SKY_webrpc_Client_GetStatus(long jarg1, long jarg2); - public final static native long SKY_webrpc_Client_GetTransactionByID(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_webrpc_Client_GetAddressUxOuts(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_); - public final static native long SKY_webrpc_Client_GetBlocksInRange(long jarg1, java.math.BigInteger jarg2, java.math.BigInteger jarg3, long jarg4, GoSlice jarg4_); - public final static native long SKY_webrpc_Client_GetBlocksBySeq(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_); - public final static native long SKY_webrpc_Client_GetLastBlocks(long jarg1, java.math.BigInteger jarg2, long jarg3, GoSlice jarg3_); - public final static native long SKY_iputil_LocalhostIP(long jarg1, _GoString_ jarg1_); - public final static native long SKY_iputil_IsLocalhost(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_iputil_SplitAddr(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native void SKY_params_GetDistributionAddresses(long jarg1, GoSlice jarg1_); - public final static native void SKY_params_GetUnlockedDistributionAddresses(long jarg1, GoSlice jarg1_); - public final static native void SKY_params_GetLockedDistributionAddresses(long jarg1, GoSlice jarg1_); - public final static native long SKY_cli_GenerateAddressesInFile(long jarg1, _GoString_ jarg1_, java.math.BigInteger jarg2, long jarg3, long jarg4, GoSlice jarg4_); - public final static native long SKY_cli_FormatAddressesAsJSON(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_FormatAddressesAsJoinedArray(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_AddressesToStrings(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_cli_GetWalletOutputsFromFile(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_cli_GetWalletOutputs(long jarg1, long jarg2, long jarg3); public final static native long SKY_coin_AddUint64(java.math.BigInteger jarg1, java.math.BigInteger jarg2, long jarg3); public final static native long SKY_coin_Uint64ToInt64(java.math.BigInteger jarg1, long jarg2); public final static native long SKY_coin_Int64ToUint64(long jarg1, long jarg2); public final static native long SKY_coin_IntToUint32(long jarg1, long jarg2); + public final static native long SKY_handle_copy(long jarg1, long jarg2); + public final static native long SKY_file_InitDataDir(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_file_UserHome(long jarg1, _GoString_ jarg1_); + public final static native long SKY_file_ResolveResourceDirectory(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_file_DetermineResourcePath(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); + public final static native long SKY_iputil_LocalhostIP(long jarg1, _GoString_ jarg1_); + public final static native long SKY_iputil_IsLocalhost(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_iputil_SplitAddr(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_cipher_DecodeBase58BitcoinAddress(long jarg1, _GoString_ jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); + public final static native void SKY_cipher_BitcoinAddressFromPubKey(long jarg1, cipher_PubKey jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); + public final static native long SKY_cipher_BitcoinAddressFromSecKey(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); + public final static native void SKY_cipher_BitcoinWalletImportFormatFromSeckey(long jarg1, cipher_SecKey jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cipher_BitcoinAddressFromBytes(long jarg1, GoSlice jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); + public final static native long SKY_cipher_SecKeyFromBitcoinWalletImportFormat(long jarg1, _GoString_ jarg1_, long jarg2, cipher_SecKey jarg2_); + public final static native short SKY_cipher_BitcoinAddress_Null(long jarg1, cipher__BitcoinAddress jarg1_); + public final static native void SKY_cipher_BitcoinAddress_Bytes(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_cipher_BitcoinAddress_Verify(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2, cipher_PubKey jarg2_); + public final static native void SKY_cipher_BitcoinAddress_String(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2, _GoString_ jarg2_); + public final static native void SKY_cipher_BitcoinAddress_Checksum(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2); + public final static native long SKY_map_Get(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_); + public final static native short SKY_map_HasKey(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_map_Close(long jarg1); + public final static native long SKY_droplet_FromString(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_droplet_ToString(java.math.BigInteger jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_wallet_CryptoTypeFromString(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); public final static native long SKY_cipher_RandByte(long jarg1, long jarg2, GoSlice jarg2_); public final static native long SKY_cipher_NewPubKey(long jarg1, GoSlice jarg1_, long jarg2, cipher_PubKey jarg2_); public final static native long SKY_cipher_PubKeyFromHex(long jarg1, _GoString_ jarg1_, long jarg2, cipher_PubKey jarg2_); @@ -548,38 +565,80 @@ public class skycoinJNI { public final static native long SKY_cipher_GenerateDeterministicKeyPairsSeed__SWIG_1(long jarg1, GoSlice jarg1_, long jarg2, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_); public final static native long SKY_cipher_CheckSecKey(long jarg1, cipher_SecKey jarg1_); public final static native long SKY_cipher_CheckSecKeyHash__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_cli_App_Run(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_Config_GetCoin(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_Config_GetRPCAddress(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_RPCClientFromApp(long jarg1, long jarg2); - public final static native long SKY_cli_Getenv(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_NewCreateTransactionResponse(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_NewCreatedTransaction(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_CreatedTransaction_ToTransaction(long jarg1, long jarg2); + public final static native long SKY_api_NewCreatedTransactionOutput(long jarg1, coin__TransactionOutput jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3); + public final static native long SKY_api_NewCreatedTransactionInput(long jarg1, wallet__UxBalance jarg1_, long jarg2); + public final static native long SKY_base58_String2Hex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_base58_Base58_ToInt(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_base58_Base58_ToHex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_base58_Base58_Base582Int(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_base58_Base582Hex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_base58_Base58_BitHex(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_base58_Int2Base58(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_base58_Hex2Base58(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_base58_Hex2Base58String(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_base58_Hex2Base58Str(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_webrpc_NewClient(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_webrpc_Client_CSRF(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_webrpc_Client_InjectTransaction(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); + public final static native long SKY_webrpc_Client_GetStatus(long jarg1, long jarg2); + public final static native long SKY_webrpc_Client_GetTransactionByID(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_webrpc_Client_GetAddressUxOuts(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_); + public final static native long SKY_webrpc_Client_GetBlocksInRange(long jarg1, java.math.BigInteger jarg2, java.math.BigInteger jarg3, long jarg4, GoSlice jarg4_); + public final static native long SKY_webrpc_Client_GetBlocksBySeq(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_); + public final static native long SKY_webrpc_Client_GetLastBlocks(long jarg1, java.math.BigInteger jarg2, long jarg3, GoSlice jarg3_); + public final static native long SKY_cli_LoadConfig(long jarg1); + public final static native long SKY_cli_Config_FullWalletPath(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_Config_FullDBPath(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_NewApp(long jarg1, long jarg2); + public final static native long SKY_cli_RPCClientFromContext(long jarg1, long jarg2); + public final static native long SKY_cli_ConfigFromContext(long jarg1, long jarg2); + public final static native long SKY_cli_PasswordFromBytes_Password(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_cli_PasswordFromTerm_Password(long jarg1, GoSlice jarg1_); + public final static native long SKY_cli_GenerateWallet(long jarg1, _GoString_ jarg1_, long jarg2, java.math.BigInteger jarg3, long jarg4); + public final static native long SKY_cli_MakeAlphanumericSeed(long jarg1, _GoString_ jarg1_); + public final static native long SKY_coin_NewBlock__SWIG_1(long jarg1, java.math.BigInteger jarg2, long jarg3, cipher_SecKey jarg3_, long jarg4, long jarg5, long jarg6); + public final static native long SKY_coin_SignedBlock_VerifySignature(long jarg1, coin__SignedBlock jarg1_, long jarg2, cipher_PubKey jarg2_); + public final static native long SKY_coin_NewGenesisBlock(long jarg1, cipher__Address jarg1_, java.math.BigInteger jarg2, java.math.BigInteger jarg3, long jarg4); + public final static native long SKY_coin_Block_HashHeader__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_Block_PreHashHeader__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_Block_Time(long jarg1, long jarg2); + public final static native long SKY_coin_Block_Seq(long jarg1, long jarg2); + public final static native long SKY_coin_Block_HashBody__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_Block_Size(long jarg1, long jarg2); + public final static native long SKY_coin_Block_String(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_coin_Block_GetTransaction(long jarg1, long jarg2, cipher_SecKey jarg2_, long jarg3, long jarg4); + public final static native long SKY_coin_NewBlockHeader(long jarg1, coin__BlockHeader jarg1_, long jarg2, cipher_SecKey jarg2_, java.math.BigInteger jarg3, java.math.BigInteger jarg4, long jarg5, long jarg6, coin__BlockHeader jarg6_); + public final static native long SKY_coin_BlockHeader_Hash__SWIG_1(long jarg1, coin__BlockHeader jarg1_, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_BlockHeader_Bytes(long jarg1, coin__BlockHeader jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_BlockHeader_String(long jarg1, coin__BlockHeader jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_coin_BlockBody_Hash__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_coin_BlockBody_Size(long jarg1, long jarg2); + public final static native long SKY_coin_BlockBody_Bytes(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_coin_CreateUnspents__SWIG_1(long jarg1, coin__BlockHeader jarg1_, long jarg2, long jarg3, GoSlice jarg3_); + public final static native long SKY_coin_CreateUnspent(long jarg1, coin__BlockHeader jarg1_, long jarg2, long jarg3, long jarg4, coin__UxOut jarg4_); + public final static native long SKY_coin_GetBlockObject(long jarg1, long jarg2); + public final static native long SKY_coin_GetBlockBody(long jarg1, long jarg2); + public final static native long SKY_coin_NewEmptyBlock(long jarg1, long jarg2); + public final static native long SKY_cli_App_Run(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_Config_GetCoin(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_Config_GetRPCAddress(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cli_RPCClientFromApp(long jarg1, long jarg2); + public final static native long SKY_cli_Getenv(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); public final static native long SKY_cli_Setenv(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_wallet_NewBalance(java.math.BigInteger jarg1, java.math.BigInteger jarg2, long jarg3, wallet__Balance jarg3_); - public final static native long SKY_wallet_NewBalanceFromUxOut(java.math.BigInteger jarg1, long jarg2, coin__UxOut jarg2_, long jarg3, wallet__Balance jarg3_); - public final static native long SKY_wallet_Balance_Add(long jarg1, wallet__Balance jarg1_, long jarg2, wallet__Balance jarg2_, long jarg3, wallet__Balance jarg3_); - public final static native long SKY_wallet_Balance_Sub(long jarg1, wallet__Balance jarg1_, long jarg2, wallet__Balance jarg2_, long jarg3, wallet__Balance jarg3_); - public final static native long SKY_wallet_Balance_Equals(long jarg1, wallet__Balance jarg1_, long jarg2, wallet__Balance jarg2_, long jarg3); - public final static native long SKY_wallet_Balance_IsZero(long jarg1, wallet__Balance jarg1_, long jarg2); - public final static native long SKY_httphelper_Address_UnmarshalJSON(long jarg1, httphelper__Address jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_httphelper_Address_MarshalJSON(long jarg1, httphelper__Address jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_httphelper_Coins_UnmarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_httphelper_Coins_MarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_httphelper_Coins_Value(long jarg1, long jarg2); - public final static native long SKY_httphelper_Hours_UnmarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_httphelper_Hours_MarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_httphelper_Hours_Value(long jarg1, long jarg2); - public final static native long SKY_wallet_Entry_Verify(long jarg1, wallet__Entry jarg1_); - public final static native long SKY_wallet_Entry_VerifyPublic(long jarg1, wallet__Entry jarg1_); - public final static native long SKY_droplet_FromString(long jarg1, _GoString_ jarg1_, long jarg2); - public final static native long SKY_droplet_ToString(java.math.BigInteger jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_wallet_CryptoTypeFromString(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_handle_copy(long jarg1, long jarg2); - public final static native long SKY_logging_EnableColors(); - public final static native long SKY_logging_DisableColors(); - public final static native long SKY_logging_Disable(); - public final static native long SKY_map_Get(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_); - public final static native short SKY_map_HasKey(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_map_Close(long jarg1); + public final static native long SKY_cipher_Ripemd160_Set(long jarg1, cipher_Ripemd160 jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_cipher_HashRipemd160(long jarg1, GoSlice jarg1_, long jarg2, cipher_Ripemd160 jarg2_); + public final static native long SKY_cipher_SHA256_Set__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_cipher_SHA256_Hex__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_cipher_SHA256_Xor(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3, cipher_SecKey jarg3_); + public final static native long SKY_cipher_SumSHA256__SWIG_1(long jarg1, GoSlice jarg1_, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_cipher_SHA256FromHex__SWIG_1(long jarg1, _GoString_ jarg1_, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_cipher_DoubleSHA256(long jarg1, GoSlice jarg1_, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_cipher_AddSHA256__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3, cipher_SecKey jarg3_); + public final static native long SKY_cipher_Merkle(long jarg1, GoSlice jarg1_, long jarg2, cipher_SecKey jarg2_); + public final static native long SKY_cipher_SHA256_Null(long jarg1, cipher_SecKey jarg1_, long jarg2); public final static native long SKY_cipher_DecodeBase58Address(long jarg1, _GoString_ jarg1_, long jarg2, cipher__Address jarg2_); public final static native long SKY_cipher_AddressFromBytes(long jarg1, GoSlice jarg1_, long jarg2, cipher__Address jarg2_); public final static native long SKY_cipher_AddressFromPubKey(long jarg1, cipher_PubKey jarg1_, long jarg2, cipher__Address jarg2_); @@ -589,34 +648,23 @@ public class skycoinJNI { public final static native long SKY_cipher_Address_Verify(long jarg1, cipher__Address jarg1_, long jarg2, cipher_PubKey jarg2_); public final static native long SKY_cipher_Address_String(long jarg1, cipher__Address jarg1_, long jarg2, _GoString_ jarg2_); public final static native long SKY_cipher_Address_Checksum(long jarg1, cipher__Address jarg1_, long jarg2); - public final static native long SKY_JsonEncode_Handle(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_Handle_Progress_GetCurrent(long jarg1, long jarg2); - public final static native long SKY_Handle_Block_GetHeadSeq(long jarg1, long jarg2); - public final static native long SKY_Handle_Block_GetHeadHash(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_Handle_Block_GetPreviousBlockHash(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_Handle_Blocks_GetAt(long jarg1, java.math.BigInteger jarg2, long jarg3); - public final static native long SKY_Handle_Blocks_GetCount(long jarg1, long jarg2); - public final static native long SKY_Handle_Connections_GetCount(long jarg1, long jarg2); - public final static native long SKY_Handle_Strings_GetCount(long jarg1, long jarg2); - public final static native long SKY_Handle_Strings_Sort(long jarg1); - public final static native long SKY_Handle_Strings_GetAt(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); - public final static native long SKY_api_Handle_Client_GetWalletDir(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_Client_GetWalletFileName(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_Client_GetWalletLabel(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_Client_GetWalletFullPath(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); - public final static native long SKY_api_Handle_GetWalletMeta(long jarg1, long jarg2); - public final static native long SKY_api_Handle_GetWalletEntriesCount(long jarg1, long jarg2); - public final static native long SKY_api_Handle_Client_GetWalletResponseEntriesCount(long jarg1, long jarg2); - public final static native long SKY_api_Handle_WalletGetEntry(long jarg1, long jarg2, long jarg3, cipher__Address jarg3_, long jarg4, cipher_PubKey jarg4_); - public final static native long SKY_api_Handle_WalletResponseGetEntry(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); - public final static native long SKY_api_Handle_WalletResponseIsEncrypted(long jarg1, long jarg2); - public final static native long SKY_api_Handle_WalletResponseGetCryptoType(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_WalletsResponseGetCount(long jarg1, long jarg2); - public final static native long SKY_api_Handle_WalletsResponseGetAt(long jarg1, long jarg2, long jarg3); - public final static native long SKY_api_Handle_GetWalletFolderAddress(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_GetWalletSeed(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_GetWalletLastSeed(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_api_Handle_GetBuildInfoData(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); + public final static native long SKY_wallet_NewBalance(java.math.BigInteger jarg1, java.math.BigInteger jarg2, long jarg3, wallet__Balance jarg3_); + public final static native long SKY_wallet_NewBalanceFromUxOut(java.math.BigInteger jarg1, long jarg2, coin__UxOut jarg2_, long jarg3, wallet__Balance jarg3_); + public final static native long SKY_wallet_Balance_Add(long jarg1, wallet__Balance jarg1_, long jarg2, wallet__Balance jarg2_, long jarg3, wallet__Balance jarg3_); + public final static native long SKY_wallet_Balance_Sub(long jarg1, wallet__Balance jarg1_, long jarg2, wallet__Balance jarg2_, long jarg3, wallet__Balance jarg3_); + public final static native long SKY_wallet_Balance_Equals(long jarg1, wallet__Balance jarg1_, long jarg2, wallet__Balance jarg2_, long jarg3); + public final static native long SKY_wallet_Balance_IsZero(long jarg1, wallet__Balance jarg1_, long jarg2); + public final static native long SKY_apputil_CatchInterruptPanic(); + public final static native long SKY_apputil_CatchDebug(); + public final static native long SKY_apputil_PrintProgramStatus(); + public final static native long SKY_wallet_Entry_Verify(long jarg1, wallet__Entry jarg1_); + public final static native long SKY_wallet_Entry_VerifyPublic(long jarg1, wallet__Entry jarg1_); + public final static native long SKY_bip39_NewDefaultMnemomic(long jarg1, _GoString_ jarg1_); + public final static native long SKY_bip39_NewEntropy(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_bip39_NewMnemonic(long jarg1, GoSlice jarg1_, long jarg2, _GoString_ jarg2_); + public final static native long SKY_bip39_MnemonicToByteArray(long jarg1, _GoString_ jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_bip39_IsMnemonicValid(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_certutil_NewTLSCertPair(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_, long jarg5, GoSlice jarg5_); public final static native long SKY_coin_UxOut_Hash__SWIG_1(long jarg1, coin__UxOut jarg1_, long jarg2, cipher_SecKey jarg2_); public final static native long SKY_coin_UxOut_SnapshotHash__SWIG_1(long jarg1, coin__UxOut jarg1_, long jarg2, cipher_SecKey jarg2_); public final static native long SKY_coin_UxBody_Hash__SWIG_1(long jarg1, coin__UxBody jarg1_, long jarg2, cipher_SecKey jarg2_); @@ -641,110 +689,62 @@ public class skycoinJNI { public final static native long SKY_coin_AddressUxOuts_GetOutputLength(long jarg1, long jarg2, cipher__Address jarg2_, long jarg3); public final static native long SKY_coin_AddressUxOuts_Length(long jarg1, long jarg2); public final static native long SKY_coin_AddressUxOuts_Set__SWIG_1(long jarg1, long jarg2, cipher__Address jarg2_, long jarg3, GoSlice jarg3_); - public final static native long SKY_encrypt_ScryptChacha20poly1305_Encrypt(long jarg1, encrypt__ScryptChacha20poly1305 jarg1_, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_); - public final static native long SKY_encrypt_ScryptChacha20poly1305_Decrypt(long jarg1, encrypt__ScryptChacha20poly1305 jarg1_, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_); - public final static native long SKY_wallet_CreateOptionsHandle(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, short jarg4, long jarg5, _GoString_ jarg5_, long jarg6, _GoString_ jarg6_, java.math.BigInteger jarg7, long jarg8); - public final static native long SKY_cli_AddPrivateKey(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_AddPrivateKeyToFile(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_apputil_CatchInterruptPanic(); - public final static native long SKY_apputil_CatchDebug(); - public final static native long SKY_apputil_PrintProgramStatus(); - public final static native long SKY_certutil_NewTLSCertPair(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3, GoSlice jarg3_, long jarg4, GoSlice jarg4_, long jarg5, GoSlice jarg5_); - public final static native long SKY_fee_VerifyTransactionFee(long jarg1, java.math.BigInteger jarg2, long jarg3); - public final static native long SKY_fee_VerifyTransactionFeeForHours(java.math.BigInteger jarg1, java.math.BigInteger jarg2, long jarg3); - public final static native long SKY_fee_RequiredFee(java.math.BigInteger jarg1, long jarg2, long jarg3); - public final static native long SKY_fee_RemainingHours(java.math.BigInteger jarg1, long jarg2, long jarg3); - public final static native long SKY_fee_TransactionFee__SWIG_1(long jarg1, java.math.BigInteger jarg2, long jarg3, GoSlice jarg3_, long jarg4); - public final static native long SKY_cli_LoadConfig(long jarg1); - public final static native long SKY_cli_Config_FullWalletPath(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_Config_FullDBPath(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cli_NewApp(long jarg1, long jarg2); - public final static native long SKY_cli_RPCClientFromContext(long jarg1, long jarg2); - public final static native long SKY_cli_ConfigFromContext(long jarg1, long jarg2); - public final static native long SKY_cli_PasswordFromBytes_Password(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_cli_PasswordFromTerm_Password(long jarg1, GoSlice jarg1_); - public final static native long SKY_cli_CreateRawTxFromWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, GoSlice jarg4_, long jarg5, long jarg6); - public final static native long SKY_cli_CreateRawTxFromAddress(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_, long jarg5, GoSlice jarg5_, long jarg6, long jarg7); - public final static native long SKY_cli_CreateRawTx(long jarg1, long jarg2, long jarg3, GoSlice jarg3_, long jarg4, _GoString_ jarg4_, long jarg5, GoSlice jarg5_, long jarg6, GoSlice jarg6_, long jarg7); - public final static native long SKY_cli_NewTransaction(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_, long jarg4); - public final static native long SKY_file_InitDataDir(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_file_UserHome(long jarg1, _GoString_ jarg1_); - public final static native long SKY_file_ResolveResourceDirectory(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_file_DetermineResourcePath(long jarg1, _GoString_ jarg1_, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); - public final static native long SKY_cipher_DecodeBase58BitcoinAddress(long jarg1, _GoString_ jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); - public final static native void SKY_cipher_BitcoinAddressFromPubKey(long jarg1, cipher_PubKey jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); - public final static native long SKY_cipher_BitcoinAddressFromSecKey(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); - public final static native void SKY_cipher_BitcoinWalletImportFormatFromSeckey(long jarg1, cipher_SecKey jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cipher_BitcoinAddressFromBytes(long jarg1, GoSlice jarg1_, long jarg2, cipher__BitcoinAddress jarg2_); - public final static native long SKY_cipher_SecKeyFromBitcoinWalletImportFormat(long jarg1, _GoString_ jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native short SKY_cipher_BitcoinAddress_Null(long jarg1, cipher__BitcoinAddress jarg1_); - public final static native void SKY_cipher_BitcoinAddress_Bytes(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_cipher_BitcoinAddress_Verify(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2, cipher_PubKey jarg2_); - public final static native void SKY_cipher_BitcoinAddress_String(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2, _GoString_ jarg2_); - public final static native void SKY_cipher_BitcoinAddress_Checksum(long jarg1, cipher__BitcoinAddress jarg1_, long jarg2); - public final static native long SKY_cli_GetWalletOutputsFromFile(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); - public final static native long SKY_cli_GetWalletOutputs(long jarg1, long jarg2, long jarg3); - public final static native long SKY_testutil_MakeAddress(long jarg1, cipher__Address jarg1_); - public final static native long SKY_cipher_Ripemd160_Set(long jarg1, cipher_Ripemd160 jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_cipher_HashRipemd160(long jarg1, GoSlice jarg1_, long jarg2, cipher_Ripemd160 jarg2_); - public final static native long SKY_cipher_SHA256_Set__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_cipher_SHA256_Hex__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, _GoString_ jarg2_); - public final static native long SKY_cipher_SHA256_Xor(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3, cipher_SecKey jarg3_); - public final static native long SKY_cipher_SumSHA256__SWIG_1(long jarg1, GoSlice jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_cipher_SHA256FromHex__SWIG_1(long jarg1, _GoString_ jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_cipher_DoubleSHA256(long jarg1, GoSlice jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_cipher_AddSHA256__SWIG_1(long jarg1, cipher_SecKey jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3, cipher_SecKey jarg3_); - public final static native long SKY_cipher_Merkle(long jarg1, GoSlice jarg1_, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_cipher_SHA256_Null(long jarg1, cipher_SecKey jarg1_, long jarg2); - public final static native long SKY_coin_Create_Transaction(long jarg1); - public final static native long SKY_coin_Transaction_Copy(long jarg1, long jarg2); - public final static native long SKY_coin_GetTransactionObject__SWIG_1(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_ResetInputs(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_GetInputsCount(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_GetInputAt__SWIG_1(long jarg1, long jarg2, long jarg3, cipher_SecKey jarg3_); - public final static native long SKY_coin_Transaction_SetInputAt__SWIG_1(long jarg1, long jarg2, long jarg3, cipher_SecKey jarg3_); - public final static native long SKY_coin_Transaction_GetOutputsCount(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_GetOutputAt(long jarg1, long jarg2, long jarg3, coin__TransactionOutput jarg3_); - public final static native long SKY_coin_Transaction_SetOutputAt(long jarg1, long jarg2, long jarg3, coin__TransactionOutput jarg3_); - public final static native long SKY_coin_Transaction_GetSignaturesCount(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_GetSignatureAt(long jarg1, long jarg2, long jarg3, cipher_Sig jarg3_); - public final static native long SKY_coin_Transaction_SetSignatureAt(long jarg1, long jarg2, long jarg3, cipher_Sig jarg3_); - public final static native long SKY_coin_Transaction_PushSignature(long jarg1, long jarg2, cipher_Sig jarg2_); - public final static native long SKY_coin_Transaction_ResetOutputs(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_ResetSignatures(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_Verify(long jarg1); - public final static native long SKY_coin_Transaction_VerifyInput__SWIG_1(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_Transaction_PushInput__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_, long jarg3); - public final static native long SKY_coin_TransactionOutput_UxID(long jarg1, coin__TransactionOutput jarg1_, long jarg2, cipher_SecKey jarg2_, long jarg3, cipher_SecKey jarg3_); - public final static native long SKY_coin_Transaction_PushOutput(long jarg1, long jarg2, cipher__Address jarg2_, java.math.BigInteger jarg3, java.math.BigInteger jarg4); - public final static native long SKY_coin_Transaction_SignInputs__SWIG_1(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_Transaction_Size(long jarg1, long jarg2); - public final static native long SKY_coin_Transaction_Hash__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_Transaction_SizeHash(long jarg1, long jarg2, long jarg3, cipher_SecKey jarg3_); - public final static native long SKY_coin_Transaction_TxID(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_Transaction_TxIDHex(long jarg1, long jarg2, _GoString_ jarg2_); - public final static native long SKY_coin_Transaction_UpdateHeader(long jarg1); - public final static native long SKY_coin_Transaction_HashInner__SWIG_1(long jarg1, long jarg2, cipher_SecKey jarg2_); - public final static native long SKY_coin_Transaction_Serialize(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_TransactionDeserialize(long jarg1, GoSlice jarg1_, long jarg2); - public final static native long SKY_coin_Transaction_OutputHours(long jarg1, long jarg2); - public final static native long SKY_coin_Create_Transactions(long jarg1); - public final static native long SKY_coin_GetTransactionsObject(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_Transactions_Length(long jarg1, long jarg2); - public final static native long SKY_coin_Transactions_Add(long jarg1, long jarg2); - public final static native long SKY_coin_Transactions_Fees(long jarg1, long jarg2, long jarg3); - public final static native long SKY_coin_Transactions_GetAt(long jarg1, long jarg2, long jarg3); - public final static native long SKY_coin_Transactions_Hashes__SWIG_1(long jarg1, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_Transactions_Size(long jarg1, long jarg2); - public final static native long SKY_coin_Transactions_TruncateBytesTo(long jarg1, long jarg2, long jarg3); - public final static native long SKY_coin_SortTransactions(long jarg1, long jarg2, long jarg3); - public final static native long SKY_coin_NewSortableTransactions(long jarg1, long jarg2, long jarg3); - public final static native long SKY_coin_SortableTransactions_Sort(long jarg1); - public final static native long SKY_coin_SortableTransactions_Len(long jarg1, long jarg2); - public final static native long SKY_coin_SortableTransactions_Less(long jarg1, long jarg2, long jarg3, long jarg4); - public final static native long SKY_coin_SortableTransactions_Swap(long jarg1, long jarg2, long jarg3); - public final static native long SKY_coin_VerifyTransactionCoinsSpending__SWIG_1(long jarg1, GoSlice jarg1_, long jarg2, GoSlice jarg2_); - public final static native long SKY_coin_VerifyTransactionHoursSpending__SWIG_1(java.math.BigInteger jarg1, long jarg2, GoSlice jarg2_, long jarg3, GoSlice jarg3_); + public final static native long SKY_api_NewClient(long jarg1, _GoString_ jarg1_, long jarg2); + public final static native long SKY_api_Client_CSRF(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Client_Version(long jarg1, long jarg2); + public final static native long SKY_api_Client_Outputs(long jarg1, long jarg2); + public final static native long SKY_api_Client_OutputsForAddresses(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_Client_OutputsForHashes(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_Client_CoinSupply(long jarg1, long jarg2); + public final static native long SKY_api_Client_BlockByHash(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_BlockBySeq(long jarg1, java.math.BigInteger jarg2, long jarg3); + public final static native long SKY_api_Client_Blocks(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_Client_LastBlocks(long jarg1, java.math.BigInteger jarg2, long jarg3); + public final static native long SKY_api_Client_BlockchainMetadata(long jarg1, long jarg2); + public final static native long SKY_api_Client_BlockchainProgress(long jarg1, long jarg2); + public final static native long SKY_api_Client_Balance(long jarg1, long jarg2, GoSlice jarg2_, long jarg3, wallet__BalancePair jarg3_); + public final static native long SKY_api_Client_UxOut(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_AddressUxOuts(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_Wallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_Wallets(long jarg1, long jarg2); + public final static native long SKY_api_Client_CreateUnencryptedWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, long jarg5); + public final static native long SKY_api_Client_CreateEncryptedWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_, long jarg5, long jarg6); + public final static native long SKY_api_Client_NewWalletAddress(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, long jarg4, _GoString_ jarg4_, long jarg5); + public final static native long SKY_api_Client_WalletBalance(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, wallet__BalancePair jarg3_); + public final static native long SKY_api_Client_Spend(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, java.math.BigInteger jarg4, long jarg5, _GoString_ jarg5_, long jarg6); + public final static native long SKY_api_Client_CreateTransaction(long jarg1, long jarg2, long jarg3); + public final static native long SKY_api_Client_UpdateWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_); + public final static native long SKY_api_Client_WalletFolderName(long jarg1, long jarg2); + public final static native long SKY_api_Client_NewSeed(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); + public final static native long SKY_api_Client_WalletSeed(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4, _GoString_ jarg4_); + public final static native long SKY_api_Client_NetworkConnection(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_NetworkConnections(long jarg1, long jarg2, api__NetworkConnectionsFilter jarg2_, long jarg3); + public final static native long SKY_api_Client_NetworkDefaultPeers(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_api_Client_NetworkTrustedPeers(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_api_Client_NetworkExchangedPeers(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_api_Client_PendingTransactions(long jarg1, long jarg2); + public final static native long SKY_api_Client_Transaction(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_Transactions(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_Client_ConfirmedTransactions(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_Client_UnconfirmedTransactions(long jarg1, long jarg2, GoSlice jarg2_, long jarg3); + public final static native long SKY_api_Client_InjectTransaction(long jarg1, long jarg2, long jarg3, _GoString_ jarg3_); + public final static native long SKY_api_Client_ResendUnconfirmedTransactions(long jarg1, long jarg2); + public final static native long SKY_api_Client_RawTransaction(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_); + public final static native long SKY_api_Client_AddressTransactions(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3); + public final static native long SKY_api_Client_Richlist(long jarg1, long jarg2, api__RichlistParams jarg2_, long jarg3); + public final static native long SKY_api_Client_AddressCount(long jarg1, long jarg2); + public final static native long SKY_api_Client_UnloadWallet(long jarg1, long jarg2, _GoString_ jarg2_); + public final static native long SKY_api_Client_Health(long jarg1, long jarg2); + public final static native long SKY_api_Client_EncryptWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4); + public final static native long SKY_api_Client_DecryptWallet(long jarg1, long jarg2, _GoString_ jarg2_, long jarg3, _GoString_ jarg3_, long jarg4); + public final static native long SKY_httphelper_Address_UnmarshalJSON(long jarg1, httphelper__Address jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_httphelper_Address_MarshalJSON(long jarg1, httphelper__Address jarg1_, long jarg2, GoSlice jarg2_); + public final static native long SKY_httphelper_Coins_UnmarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_httphelper_Coins_MarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_httphelper_Coins_Value(long jarg1, long jarg2); + public final static native long SKY_httphelper_Hours_UnmarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_httphelper_Hours_MarshalJSON(long jarg1, long jarg2, GoSlice jarg2_); + public final static native long SKY_httphelper_Hours_Value(long jarg1, long jarg2); public final static native void api__RichlistParams_N_set(long jarg1, api__RichlistParams jarg1_, long jarg2); public final static native long api__RichlistParams_N_get(long jarg1, api__RichlistParams jarg1_); public final static native void api__RichlistParams_IncludeDistribution_set(long jarg1, api__RichlistParams jarg1_, long jarg2); diff --git a/swig/include/libskycoin.h b/swig/include/libskycoin.h index 140b1cc..170be8d 100644 --- a/swig/include/libskycoin.h +++ b/swig/include/libskycoin.h @@ -17,18 +17,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; /* Start of preamble from import "C" comments. */ -#line 12 "coin.block.go" +#line 5 "api.wallet.go" #include #include #include "skytypes.h" - #include "skyfee.h" #line 1 "cgo-generated-wrapper" -#line 10 "cipher.go-bip39.bip39.go" +#line 11 "cli.generate_addrs.go" #include @@ -38,7 +37,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "api.client.go" +#line 9 "wallet.readable.go" #include @@ -48,7 +47,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "api.wallet.go" +#line 5 "util.logging.logging.go" #include @@ -58,7 +57,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "api.spend.go" +#line 10 "util.fee.fee.go" #include @@ -68,7 +67,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "wallet.wallet.go" +#line 9 "params.distribution.go" #include @@ -78,17 +77,18 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "cli.check_balance.go" +#line 3 "libsky_handle_helper.go" #include #include + #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 9 "wallet.readable.go" +#line 7 "cli.add_private_key.go" #include @@ -98,17 +98,18 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "cipher.base58.base58.go" +#line 13 "coin.transactions.go" #include #include #include "skytypes.h" + #include "skyfee.h" #line 1 "cgo-generated-wrapper" -#line 7 "cli.generate_wallet.go" +#line 9 "testutil.testutil.go" #include @@ -118,7 +119,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "api.webrpc.client.go" +#line 12 "wallet.wallet.go" #include @@ -128,8 +129,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.iputil.iputil.go" - +#line 7 "wallet_option.go" #include #include @@ -138,7 +138,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "params.distribution.go" +#line 12 "cli.create_rawtx.go" #include @@ -148,7 +148,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 11 "cli.generate_addrs.go" +#line 10 "cipher.encrypt.scrypt_chacha20poly1305.go" #include @@ -158,7 +158,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "coin.math.go" +#line 9 "cli.check_balance.go" #include @@ -168,7 +168,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.crypto.go" +#line 7 "cli.outputs.go" #include @@ -178,7 +178,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "cli_helper.go" +#line 5 "coin.math.go" #include @@ -188,17 +188,18 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "wallet.balance.go" +#line 3 "libsky_handle.go" #include #include + #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 10 "util.http.json.go" +#line 5 "util.file.file.go" #include @@ -208,7 +209,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "wallet.entry.go" +#line 5 "util.iputil.iputil.go" #include @@ -218,17 +219,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.droplet.droplet.go" +#line 3 "cipher.bitcoin.go" +#include +#include - #include - #include +#include "skytypes.h" - #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 7 "wallet.crypto.go" +#line 3 "libsky_map.go" #include @@ -238,18 +239,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "libsky_handle.go" +#line 5 "util.droplet.droplet.go" #include #include - #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 5 "util.logging.logging.go" +#line 7 "wallet.crypto.go" #include @@ -259,7 +259,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "libsky_map.go" +#line 10 "cipher.crypto.go" #include @@ -269,27 +269,27 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.address.go" +#line 12 "api.spend.go" -#include -#include -#include "skytypes.h" + #include + #include + + #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 3 "libsky_handle_helper.go" +#line 11 "cipher.base58.base58.go" #include #include - #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 11 "coin.outputs.go" +#line 10 "api.webrpc.client.go" #include @@ -299,7 +299,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.encrypt.scrypt_chacha20poly1305.go" +#line 11 "cli.cli.go" #include @@ -309,7 +309,8 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "wallet_option.go" +#line 7 "cli.generate_wallet.go" + #include #include @@ -318,17 +319,18 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 7 "cli.add_private_key.go" +#line 12 "coin.block.go" #include #include #include "skytypes.h" + #include "skyfee.h" #line 1 "cgo-generated-wrapper" -#line 5 "util.apputil.apputil.go" +#line 9 "cli_helper.go" #include @@ -338,7 +340,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "util.cert.cert.go" +#line 10 "cipher.hash.go" #include @@ -348,17 +350,16 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "util.fee.fee.go" - +#line 10 "cipher.address.go" - #include - #include - #include "skytypes.h" +#include +#include +#include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 11 "cli.cli.go" +#line 10 "wallet.balance.go" #include @@ -368,7 +369,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 12 "cli.create_rawtx.go" +#line 5 "util.apputil.apputil.go" #include @@ -378,7 +379,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 5 "util.file.file.go" +#line 9 "wallet.entry.go" #include @@ -388,17 +389,17 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 3 "cipher.bitcoin.go" +#line 10 "cipher.go-bip39.bip39.go" -#include -#include -#include "skytypes.h" + #include + #include + #include "skytypes.h" #line 1 "cgo-generated-wrapper" -#line 7 "cli.outputs.go" +#line 9 "util.cert.cert.go" #include @@ -408,7 +409,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 9 "testutil.testutil.go" +#line 11 "coin.outputs.go" #include @@ -418,7 +419,7 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 10 "cipher.hash.go" +#line 12 "api.client.go" #include @@ -428,14 +429,13 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_; #line 1 "cgo-generated-wrapper" -#line 13 "coin.transactions.go" +#line 10 "util.http.json.go" #include #include #include "skytypes.h" - #include "skyfee.h" #line 1 "cgo-generated-wrapper" @@ -484,171 +484,207 @@ extern "C" { #endif -// nolint nakedret +extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); -extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); +extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); -extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); +extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); +extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_wallet_NewReadableEntry(GoString p0, wallet__Entry* p1, ReadableEntry__Handle* p2); -extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); +extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); -extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); +extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); -extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); -extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoUint32* p1); +extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); -extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); +extern GoUint32 SKY_logging_EnableColors(); -extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); +extern GoUint32 SKY_logging_DisableColors(); -extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); +extern GoUint32 SKY_logging_Disable(); -extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); +extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint32 p2); -extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); +extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint32 p2); -extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); +extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint32 p1, GoUint64* p2); -extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint32 p1, GoUint64* p2); -extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoUint32* p1); +extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); -extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); +extern void SKY_params_GetDistributionAddresses(coin__UxArray* p0); -extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); +extern void SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* p0); -extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); +extern void SKY_params_GetLockedDistributionAddresses(coin__UxArray* p0); -extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); +extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); -extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); +extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); -extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); +extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); -extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); +extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); -extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); +extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); -extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); -extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); +extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); -extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); +extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); -extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); +extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); -extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); -extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); -extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); -extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); +extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); -extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); -extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoUint64 p1, Handle* p2); +extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); -extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); -extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); -extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); +extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); -extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); -extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); +extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); +extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); +extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); +extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); -extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); +extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); -extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); +extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); -extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); +extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); -extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); +extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); -extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); +extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); -extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); -extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); +extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_api_Client_WalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); +extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); -extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); -extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, api__NetworkConnectionsFilter* p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_api_Client_NetworkDefaultPeers(Client__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); -extern GoUint32 SKY_api_Client_NetworkTrustedPeers(Client__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); -extern GoUint32 SKY_api_Client_NetworkExchangedPeers(Client__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); -extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); -extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); -extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); -extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); -extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); -extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, Transaction__Handle p1, GoString_* p2); +extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); -extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); -extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); +extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); -extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); +extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); -extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); +extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); -extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); +extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoUint32* p1); -extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); +extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); +extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoUint32* p1, cipher__SHA256* p2); -extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); +extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_api_NewWalletResponse(Wallet__Handle p0, WalletResponse__Handle* p1); +extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); +extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); -extern GoUint32 SKY_api_NewCreatedTransaction(Transaction__Handle p0, GoSlice p1, CreatedTransaction__Handle* p2); +extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_api_CreatedTransaction_ToTransaction(CreatedTransaction__Handle p0, Transaction__Handle* p1); +extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput* p0, cipher__SHA256* p1, CreatedTransactionOutput__Handle* p2); +extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); -extern GoUint32 SKY_api_NewCreatedTransactionInput(wallet__UxBalance* p0, CreatedTransactionInput__Handle* p1); +extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); + +extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); + +extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); + +extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); + +extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); + +extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); + +extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoUint32* p1); + +extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoUint32 p1, Transactions__Handle* p2); + +extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); + +extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); + +extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); + +extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); + +extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); + +extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); + +extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); + +extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); + +extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); extern GoUint32 SKY_wallet_NewError(GoInterface p0); @@ -694,89 +730,87 @@ extern GoUint32 SKY_wallet_ChooseSpendsMinimizeUxOuts(GoSlice p0, GoUint64 p1, G extern GoUint32 SKY_wallet_ChooseSpendsMaximizeUxOuts(GoSlice p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); -extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); - -extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); +extern GoUint32 SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); -extern GoUint32 SKY_wallet_NewReadableEntry(GoString p0, wallet__Entry* p1, ReadableEntry__Handle* p2); +extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); -extern GoUint32 SKY_wallet_LoadReadableWallet(GoString p0, ReadableWallet__Handle* p1); +extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); -extern GoUint32 SKY_wallet_ReadableWallet_Save(ReadableWallet__Handle p0, GoString p1); +extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); -extern GoUint32 SKY_wallet_ReadableWallet_Load(ReadableWallet__Handle p0, GoString p1); +extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); -extern GoUint32 SKY_wallet_ReadableWallet_Erase(ReadableWallet__Handle p0); +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); -extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); -extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); +extern GoUint32 SKY_cli_CheckWalletBalance(WebRpcClient__Handle p0, GoString p1, BalanceResult_Handle* p2); -extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_cli_GetBalanceOfAddresses(WebRpcClient__Handle p0, GoSlice p1, BalanceResult_Handle* p2); -extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); +extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableUnspentOutputsSummary_Handle* p2); -extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableUnspentOutputsSummary_Handle* p2); -extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); -extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); +extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); -extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); -extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_coin_IntToUint32(GoInt p0, GoUint32* p1); -extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); +extern void SKY_handle_close(Handle p0); -extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); +extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); -extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); +extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); -extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); +extern GoUint32 SKY_file_UserHome(GoString_* p0); -extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); +extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); -extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); +extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); +extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); -extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); +extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); -extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); +extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); -extern GoUint32 SKY_webrpc_Client_GetBlocksInRange(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); +extern GoUint32 SKY_cipher_DecodeBase58BitcoinAddress(GoString p0, cipher__BitcoinAddress* p1); -extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); +extern void SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* p0, cipher__BitcoinAddress* p1); -extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); +extern GoUint32 SKY_cipher_BitcoinAddressFromSecKey(cipher__SecKey* p0, cipher__BitcoinAddress* p1); -extern GoUint32 SKY_iputil_LocalhostIP(GoString_* p0); +extern void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); -extern GoUint32 SKY_iputil_IsLocalhost(GoString p0, GoUint8* p1); +extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress* p1); -extern GoUint32 SKY_iputil_SplitAddr(GoString p0, GoString_* p1, GoUint16* p2); +extern GoUint32 SKY_cipher_SecKeyFromBitcoinWalletImportFormat(GoString p0, cipher__SecKey* p1); -extern void SKY_params_GetDistributionAddresses(coin__UxArray* p0); +extern GoUint8 SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress* p0); -extern void SKY_params_GetUnlockedDistributionAddresses(coin__UxArray* p0); +extern void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress* p0, coin__UxArray* p1); -extern void SKY_params_GetLockedDistributionAddresses(coin__UxArray* p0); +extern GoUint32 SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress* p0, cipher__PubKey* p1); -extern GoUint32 SKY_cli_GenerateAddressesInFile(GoString p0, GoUint64 p1, PasswordReader__Handle p2, coin__UxArray* p3); +extern void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress* p0, GoString_* p1); -extern GoUint32 SKY_cli_FormatAddressesAsJSON(GoSlice p0, GoString_* p1); +extern void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress* p0, cipher__Checksum* p1); -extern GoUint32 SKY_cli_FormatAddressesAsJoinedArray(GoSlice p0, GoString_* p1); +extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); -extern GoUint32 SKY_cli_AddressesToStrings(GoSlice p0, coin__UxArray* p1); +extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); -extern GoUint32 SKY_coin_AddUint64(GoUint64 p0, GoUint64 p1, GoUint64* p2); +extern GoUint32 SKY_map_Close(GoStringMap_* p0); -extern GoUint32 SKY_coin_Uint64ToInt64(GoUint64 p0, GoInt64* p1); +extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); -extern GoUint32 SKY_coin_Int64ToUint64(GoInt64 p0, GoUint64* p1); +extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); -extern GoUint32 SKY_coin_IntToUint32(GoInt p0, GoUint32* p1); +extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); extern GoUint32 SKY_cipher_RandByte(GoInt p0, coin__UxArray* p1); @@ -832,203 +866,185 @@ extern GoUint32 SKY_cipher_CheckSecKey(cipher__SecKey* p0); extern GoUint32 SKY_cipher_CheckSecKeyHash(cipher__SecKey* p0, cipher__SHA256* p1); -extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); +extern GoUint32 SKY_api_NewCreateTransactionResponse(Transaction__Handle p0, GoSlice p1, CreateTransactionResponse__Handle* p2); -extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_api_NewCreatedTransaction(Transaction__Handle p0, GoSlice p1, CreatedTransaction__Handle* p2); -extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_api_CreatedTransaction_ToTransaction(CreatedTransaction__Handle p0, Transaction__Handle* p1); -extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); +extern GoUint32 SKY_api_NewCreatedTransactionOutput(coin__TransactionOutput* p0, cipher__SHA256* p1, CreatedTransactionOutput__Handle* p2); -extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); +extern GoUint32 SKY_api_NewCreatedTransactionInput(wallet__UxBalance* p0, CreatedTransactionInput__Handle* p1); -extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); +extern GoUint32 SKY_base58_String2Hex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); +extern GoUint32 SKY_base58_Base58_ToInt(GoString p0, GoInt* p1); -extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); +extern GoUint32 SKY_base58_Base58_ToHex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); +extern GoUint32 SKY_base58_Base58_Base582Int(GoString p0, GoInt* p1); -extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); +extern GoUint32 SKY_base58_Base582Hex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); +extern GoUint32 SKY_base58_Base58_BitHex(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); +extern GoUint32 SKY_base58_Int2Base58(GoInt p0, GoString_* p1); -extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); +extern GoUint32 SKY_base58_Hex2Base58(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); +extern GoUint32 SKY_base58_Hex2Base58String(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); +extern GoUint32 SKY_base58_Hex2Base58Str(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); +extern GoUint32 SKY_webrpc_NewClient(GoString p0, WebRpcClient__Handle* p1); -extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); +extern GoUint32 SKY_webrpc_Client_CSRF(WebRpcClient__Handle p0, GoString_* p1); -extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); +extern GoUint32 SKY_webrpc_Client_InjectTransaction(WebRpcClient__Handle p0, Transaction__Handle p1, GoString_* p2); -extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); +extern GoUint32 SKY_webrpc_Client_GetStatus(WebRpcClient__Handle p0, StatusResult_Handle* p1); -extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); +extern GoUint32 SKY_webrpc_Client_GetTransactionByID(WebRpcClient__Handle p0, GoString p1, TransactionResult_Handle* p2); -extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); +extern GoUint32 SKY_webrpc_Client_GetAddressUxOuts(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); +extern GoUint32 SKY_webrpc_Client_GetBlocksInRange(WebRpcClient__Handle p0, GoUint64 p1, GoUint64 p2, coin__UxArray* p3); -extern GoUint32 SKY_droplet_FromString(GoString p0, GoUint64* p1); +extern GoUint32 SKY_webrpc_Client_GetBlocksBySeq(WebRpcClient__Handle p0, GoSlice p1, coin__UxArray* p2); -extern GoUint32 SKY_droplet_ToString(GoUint64 p0, GoString_* p1); +extern GoUint32 SKY_webrpc_Client_GetLastBlocks(WebRpcClient__Handle p0, GoUint64 p1, coin__UxArray* p2); -extern GoUint32 SKY_wallet_CryptoTypeFromString(GoString p0, GoString_* p1); +extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); -extern void SKY_handle_close(Handle p0); +extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_handle_copy(Handle p0, Handle* p1); +extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_logging_EnableColors(); +extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); -extern GoUint32 SKY_logging_DisableColors(); +extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); -extern GoUint32 SKY_logging_Disable(); +extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); -extern GoUint32 SKY_map_Get(GoStringMap_* p0, GoString p1, GoString_* p2); +extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); -extern GoUint8 SKY_map_HasKey(GoStringMap_* p0, GoString p1); +extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); -extern GoUint32 SKY_map_Close(GoStringMap_* p0); +extern GoUint32 SKY_cli_GenerateWallet(GoString p0, Options__Handle* p1, GoUint64 p2, Wallet__Handle* p3); -extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); +extern GoUint32 SKY_cli_MakeAlphanumericSeed(GoString_* p0); -extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); +// nolint nakedret -extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); +extern GoUint32 SKY_coin_NewBlock(Block__Handle p0, GoUint64 p1, cipher__SHA256* p2, Transactions__Handle p3, FeeCalculator* p4, Block__Handle* p5); -extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); +extern GoUint32 SKY_coin_SignedBlock_VerifySignature(coin__SignedBlock* p0, cipher__PubKey* p1); -extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); +extern GoUint32 SKY_coin_NewGenesisBlock(cipher__Address* p0, GoUint64 p1, GoUint64 p2, Block__Handle* p3); -extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_Block_HashHeader(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); +extern GoUint32 SKY_coin_Block_PreHashHeader(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_Time(Block__Handle p0, GoUint64* p1); -extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); +extern GoUint32 SKY_coin_Block_Seq(Block__Handle p0, GoUint64* p1); -extern GoUint32 SKY_JsonEncode_Handle(Handle p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_HashBody(Block__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_Handle_Progress_GetCurrent(Handle p0, GoUint64* p1); +extern GoUint32 SKY_coin_Block_Size(Block__Handle p0, GoUint32* p1); -extern GoUint32 SKY_Handle_Block_GetHeadSeq(Handle p0, GoUint64* p1); +extern GoUint32 SKY_coin_Block_String(Block__Handle p0, GoString_* p1); -extern GoUint32 SKY_Handle_Block_GetHeadHash(Handle p0, GoString_* p1); +extern GoUint32 SKY_coin_Block_GetTransaction(Block__Handle p0, cipher__SHA256* p1, Transaction__Handle* p2, GoUint8* p3); -extern GoUint32 SKY_Handle_Block_GetPreviousBlockHash(Handle p0, GoString_* p1); +extern GoUint32 SKY_coin_NewBlockHeader(coin__BlockHeader* p0, cipher__SHA256* p1, GoUint64 p2, GoUint64 p3, BlockBody__Handle p4, coin__BlockHeader* p5); -extern GoUint32 SKY_Handle_Blocks_GetAt(Handle p0, GoUint64 p1, Handle* p2); +extern GoUint32 SKY_coin_BlockHeader_Hash(coin__BlockHeader* p0, cipher__SHA256* p1); -extern GoUint32 SKY_Handle_Blocks_GetCount(Handle p0, GoUint64* p1); +extern GoUint32 SKY_coin_BlockHeader_Bytes(coin__BlockHeader* p0, coin__UxArray* p1); -extern GoUint32 SKY_Handle_Connections_GetCount(Handle p0, GoUint64* p1); +extern GoUint32 SKY_coin_BlockHeader_String(coin__BlockHeader* p0, GoString_* p1); -extern GoUint32 SKY_Handle_Strings_GetCount(Strings__Handle p0, GoUint32* p1); +extern GoUint32 SKY_coin_BlockBody_Hash(BlockBody__Handle p0, cipher__SHA256* p1); -extern GoUint32 SKY_Handle_Strings_Sort(Strings__Handle p0); +extern GoUint32 SKY_coin_BlockBody_Size(BlockBody__Handle* p0, GoUint32* p1); -extern GoUint32 SKY_Handle_Strings_GetAt(Strings__Handle p0, GoInt p1, GoString_* p2); +extern GoUint32 SKY_coin_BlockBody_Bytes(BlockBody__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_api_Handle_Client_GetWalletDir(Client__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletFileName(WalletResponse__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletLabel(WalletResponse__Handle p0, GoString_* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletFullPath(Client__Handle p0, WalletResponse__Handle p1, GoString_* p2); - -extern GoUint32 SKY_api_Handle_GetWalletMeta(Wallet__Handle p0, GoStringMap_* p1); - -extern GoUint32 SKY_api_Handle_GetWalletEntriesCount(Wallet__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_api_Handle_Client_GetWalletResponseEntriesCount(WalletResponse__Handle p0, GoUint32* p1); - -extern GoUint32 SKY_api_Handle_WalletGetEntry(Wallet__Handle p0, GoUint32 p1, cipher__Address* p2, cipher__PubKey* p3); - -extern GoUint32 SKY_api_Handle_WalletResponseGetEntry(WalletResponse__Handle p0, GoUint32 p1, GoString_* p2, GoString_* p3); - -extern GoUint32 SKY_api_Handle_WalletResponseIsEncrypted(WalletResponse__Handle p0, GoUint8* p1); +extern GoUint32 SKY_coin_CreateUnspents(coin__BlockHeader* p0, Transaction__Handle p1, coin__UxArray* p2); -extern GoUint32 SKY_api_Handle_WalletResponseGetCryptoType(WalletResponse__Handle p0, GoString_* p1); +extern GoUint32 SKY_coin_CreateUnspent(coin__BlockHeader* p0, Transaction__Handle p1, GoInt p2, coin__UxOut* p3); -extern GoUint32 SKY_api_Handle_WalletsResponseGetCount(Wallets__Handle p0, GoUint32* p1); +extern GoUint32 SKY_coin_GetBlockObject(Block__Handle p0, coin__Block** p1); -extern GoUint32 SKY_api_Handle_WalletsResponseGetAt(Wallets__Handle p0, GoUint32 p1, WalletResponse__Handle* p2); +extern GoUint32 SKY_coin_GetBlockBody(Block__Handle p0, BlockBody__Handle* p1); -extern GoUint32 SKY_api_Handle_GetWalletFolderAddress(Handle p0, GoString_* p1); +extern GoUint32 SKY_coin_NewEmptyBlock(Transactions__Handle p0, Block__Handle* p1); -extern GoUint32 SKY_api_Handle_GetWalletSeed(Wallet__Handle p0, GoString_* p1); +extern GoUint32 SKY_cli_App_Run(App__Handle p0, GoString p1); -extern GoUint32 SKY_api_Handle_GetWalletLastSeed(Wallet__Handle p0, GoString_* p1); +extern GoUint32 SKY_cli_Config_GetCoin(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_api_Handle_GetBuildInfoData(BuildInfo_Handle p0, GoString_* p1, GoString_* p2, GoString_* p3); +extern GoUint32 SKY_cli_Config_GetRPCAddress(Config__Handle p0, GoString_* p1); -extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); +extern GoUint32 SKY_cli_RPCClientFromApp(App__Handle p0, WebRpcClient__Handle* p1); -extern GoUint32 SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher__SHA256* p1); +extern GoUint32 SKY_cli_Getenv(GoString p0, GoString_* p1); -extern GoUint32 SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher__SHA256* p1); +extern GoUint32 SKY_cli_Setenv(GoString p0, GoString p1); -extern GoUint32 SKY_coin_UxOut_CoinHours(coin__UxOut* p0, GoUint64 p1, GoUint64* p2); +extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); -extern GoUint32 SKY_coin_UxArray_Hashes(coin__UxArray* p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); -extern GoUint32 SKY_coin_UxArray_HasDupes(coin__UxArray* p0, GoUint8* p1); +extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); -extern GoUint32 SKY_coin_UxArray_Sort(coin__UxArray* p0); +extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); -extern GoUint32 SKY_coin_UxArray_Len(coin__UxArray* p0, GoInt* p1); +extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_UxArray_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); +extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_UxArray_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); +extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_UxArray_Coins(coin__UxArray* p0, GoUint64* p1); +extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_UxArray_CoinHours(coin__UxArray* p0, GoUint64 p1, GoUint64* p2); +extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); -extern GoUint32 SKY_coin_UxArray_Sub(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); +extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); -extern GoUint32 SKY_coin_UxArray_Add(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); +extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); -extern GoUint32 SKY_coin_NewAddressUxOuts(coin__UxArray* p0, AddressUxOuts_Handle* p1); +extern GoUint32 SKY_cipher_DecodeBase58Address(GoString p0, cipher__Address* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_AddressFromBytes(GoSlice p0, cipher__Address* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_cipher_AddressFromPubKey(cipher__PubKey* p0, cipher__Address* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Sub(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); +extern GoUint32 SKY_cipher_AddressFromSecKey(cipher__SecKey* p0, cipher__Address* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Add(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); +extern GoUint32 SKY_cipher_Address_Null(cipher__Address* p0, GoUint8* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); +extern GoUint32 SKY_cipher_Address_Bytes(cipher__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_AddressUxOuts_HasKey(AddressUxOuts_Handle p0, cipher__Address* p1, GoUint8* p2); +extern GoUint32 SKY_cipher_Address_Verify(cipher__Address* p0, cipher__PubKey* p1); -extern GoUint32 SKY_coin_AddressUxOuts_GetOutputLength(AddressUxOuts_Handle p0, cipher__Address* p1, GoInt* p2); +extern GoUint32 SKY_cipher_Address_String(cipher__Address* p0, GoString_* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Length(AddressUxOuts_Handle p0, GoInt* p1); +extern GoUint32 SKY_cipher_Address_Checksum(cipher__Address* p0, cipher__Checksum* p1); -extern GoUint32 SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); +extern GoUint32 SKY_wallet_NewBalance(GoUint64 p0, GoUint64 p1, wallet__Balance* p2); -extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Encrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); +extern GoUint32 SKY_wallet_NewBalanceFromUxOut(GoUint64 p0, coin__UxOut* p1, wallet__Balance* p2); -extern GoUint32 SKY_encrypt_ScryptChacha20poly1305_Decrypt(encrypt__ScryptChacha20poly1305* p0, GoSlice p1, GoSlice p2, coin__UxArray* p3); +extern GoUint32 SKY_wallet_Balance_Add(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); -extern GoUint32 SKY_wallet_CreateOptionsHandle(GoString p0, GoString p1, GoString p2, GoUint8 p3, GoString p4, GoString p5, GoUint64 p6, Options__Handle* p7); +extern GoUint32 SKY_wallet_Balance_Sub(wallet__Balance* p0, wallet__Balance* p1, wallet__Balance* p2); -extern GoUint32 SKY_cli_AddPrivateKey(Wallet__Handle p0, GoString p1); +extern GoUint32 SKY_wallet_Balance_Equals(wallet__Balance* p0, wallet__Balance* p1, GoUint8* p2); -extern GoUint32 SKY_cli_AddPrivateKeyToFile(GoString p0, GoString p1, PasswordReader__Handle p2); +extern GoUint32 SKY_wallet_Balance_IsZero(wallet__Balance* p0, GoUint8* p1); extern GoUint32 SKY_apputil_CatchInterruptPanic(); @@ -1036,197 +1052,181 @@ extern GoUint32 SKY_apputil_CatchDebug(); extern GoUint32 SKY_apputil_PrintProgramStatus(); -extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); - -extern GoUint32 SKY_fee_VerifyTransactionFee(Transaction__Handle p0, GoUint64 p1, GoUint32 p2); - -extern GoUint32 SKY_fee_VerifyTransactionFeeForHours(GoUint64 p0, GoUint64 p1, GoUint32 p2); - -extern GoUint32 SKY_fee_RequiredFee(GoUint64 p0, GoUint32 p1, GoUint64* p2); - -extern GoUint32 SKY_fee_RemainingHours(GoUint64 p0, GoUint32 p1, GoUint64* p2); - -extern GoUint32 SKY_fee_TransactionFee(Transaction__Handle p0, GoUint64 p1, coin__UxArray* p2, GoUint64* p3); - -extern GoUint32 SKY_cli_LoadConfig(Config__Handle* p0); - -extern GoUint32 SKY_cli_Config_FullWalletPath(Config__Handle p0, GoString_* p1); - -extern GoUint32 SKY_cli_Config_FullDBPath(Config__Handle p0, GoString_* p1); +extern GoUint32 SKY_wallet_Entry_Verify(wallet__Entry* p0); -extern GoUint32 SKY_cli_NewApp(Config__Handle p0, App__Handle* p1); +extern GoUint32 SKY_wallet_Entry_VerifyPublic(wallet__Entry* p0); -extern GoUint32 SKY_cli_RPCClientFromContext(Context__Handle p0, WebRpcClient__Handle* p1); +extern GoUint32 SKY_bip39_NewDefaultMnemomic(GoString_* p0); -extern GoUint32 SKY_cli_ConfigFromContext(Context__Handle p0, Config__Handle* p1); +extern GoUint32 SKY_bip39_NewEntropy(GoInt p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_PasswordFromBytes_Password(coin__UxArray* p0, coin__UxArray* p1); +extern GoUint32 SKY_bip39_NewMnemonic(GoSlice p0, GoString_* p1); -extern GoUint32 SKY_cli_PasswordFromTerm_Password(coin__UxArray* p0); +extern GoUint32 SKY_bip39_MnemonicToByteArray(GoString p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_CreateRawTxFromWallet(WebRpcClient__Handle p0, GoString p1, GoString p2, GoSlice p3, PasswordReader__Handle p4, Transaction__Handle* p5); +extern GoUint32 SKY_bip39_IsMnemonicValid(GoString p0, GoUint8* p1); -extern GoUint32 SKY_cli_CreateRawTxFromAddress(WebRpcClient__Handle p0, GoString p1, GoString p2, GoString p3, GoSlice p4, PasswordReader__Handle p5, Transaction__Handle* p6); +extern GoUint32 SKY_certutil_NewTLSCertPair(GoString p0, GoString p1, GoSlice p2, coin__UxArray* p3, coin__UxArray* p4); -extern GoUint32 SKY_cli_CreateRawTx(WebRpcClient__Handle p0, Wallet__Handle p1, GoSlice p2, GoString p3, GoSlice p4, GoSlice p5, Transaction__Handle* p6); +extern GoUint32 SKY_coin_UxOut_Hash(coin__UxOut* p0, cipher__SHA256* p1); -extern GoUint32 SKY_cli_NewTransaction(GoSlice p0, GoSlice p1, GoSlice p2, Transaction__Handle* p3); +extern GoUint32 SKY_coin_UxOut_SnapshotHash(coin__UxOut* p0, cipher__SHA256* p1); -extern GoUint32 SKY_file_InitDataDir(GoString p0, GoString_* p1); +extern GoUint32 SKY_coin_UxBody_Hash(coin__UxBody* p0, cipher__SHA256* p1); -extern GoUint32 SKY_file_UserHome(GoString_* p0); +extern GoUint32 SKY_coin_UxOut_CoinHours(coin__UxOut* p0, GoUint64 p1, GoUint64* p2); -extern GoUint32 SKY_file_ResolveResourceDirectory(GoString p0, GoString_* p1); +extern GoUint32 SKY_coin_UxArray_Hashes(coin__UxArray* p0, coin__UxArray* p1); -extern GoUint32 SKY_file_DetermineResourcePath(GoString p0, GoString p1, GoString p2, GoString_* p3); +extern GoUint32 SKY_coin_UxArray_HasDupes(coin__UxArray* p0, GoUint8* p1); -extern GoUint32 SKY_cipher_DecodeBase58BitcoinAddress(GoString p0, cipher__BitcoinAddress* p1); +extern GoUint32 SKY_coin_UxArray_Sort(coin__UxArray* p0); -extern void SKY_cipher_BitcoinAddressFromPubKey(cipher__PubKey* p0, cipher__BitcoinAddress* p1); +extern GoUint32 SKY_coin_UxArray_Len(coin__UxArray* p0, GoInt* p1); -extern GoUint32 SKY_cipher_BitcoinAddressFromSecKey(cipher__SecKey* p0, cipher__BitcoinAddress* p1); +extern GoUint32 SKY_coin_UxArray_Less(coin__UxArray* p0, GoInt p1, GoInt p2, GoUint8* p3); -extern void SKY_cipher_BitcoinWalletImportFormatFromSeckey(cipher__SecKey* p0, GoString_* p1); +extern GoUint32 SKY_coin_UxArray_Swap(coin__UxArray* p0, GoInt p1, GoInt p2); -extern GoUint32 SKY_cipher_BitcoinAddressFromBytes(GoSlice p0, cipher__BitcoinAddress* p1); +extern GoUint32 SKY_coin_UxArray_Coins(coin__UxArray* p0, GoUint64* p1); -extern GoUint32 SKY_cipher_SecKeyFromBitcoinWalletImportFormat(GoString p0, cipher__SecKey* p1); +extern GoUint32 SKY_coin_UxArray_CoinHours(coin__UxArray* p0, GoUint64 p1, GoUint64* p2); -extern GoUint8 SKY_cipher_BitcoinAddress_Null(cipher__BitcoinAddress* p0); +extern GoUint32 SKY_coin_UxArray_Sub(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); -extern void SKY_cipher_BitcoinAddress_Bytes(cipher__BitcoinAddress* p0, coin__UxArray* p1); +extern GoUint32 SKY_coin_UxArray_Add(coin__UxArray* p0, coin__UxArray* p1, coin__UxArray* p2); -extern GoUint32 SKY_cipher_BitcoinAddress_Verify(cipher__BitcoinAddress* p0, cipher__PubKey* p1); +extern GoUint32 SKY_coin_NewAddressUxOuts(coin__UxArray* p0, AddressUxOuts_Handle* p1); -extern void SKY_cipher_BitcoinAddress_String(cipher__BitcoinAddress* p0, GoString_* p1); +extern GoUint32 SKY_coin_AddressUxOuts_Keys(AddressUxOuts_Handle p0, coin__UxArray* p1); -extern void SKY_cipher_BitcoinAddress_Checksum(cipher__BitcoinAddress* p0, cipher__Checksum* p1); +extern GoUint32 SKY_coin_AddressUxOuts_Flatten(AddressUxOuts_Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_cli_GetWalletOutputsFromFile(WebRpcClient__Handle p0, GoString p1, ReadableUnspentOutputsSummary_Handle* p2); +extern GoUint32 SKY_coin_AddressUxOuts_Sub(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); -extern GoUint32 SKY_cli_GetWalletOutputs(WebRpcClient__Handle p0, Wallet__Handle* p1, ReadableUnspentOutputsSummary_Handle* p2); +extern GoUint32 SKY_coin_AddressUxOuts_Add(AddressUxOuts_Handle p0, AddressUxOuts_Handle p1, AddressUxOuts_Handle* p2); -extern GoUint32 SKY_testutil_MakeAddress(cipher__Address* p0); +extern GoUint32 SKY_coin_AddressUxOuts_Get(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); -extern GoUint32 SKY_cipher_Ripemd160_Set(cipher__Ripemd160* p0, GoSlice p1); +extern GoUint32 SKY_coin_AddressUxOuts_HasKey(AddressUxOuts_Handle p0, cipher__Address* p1, GoUint8* p2); -extern GoUint32 SKY_cipher_HashRipemd160(GoSlice p0, cipher__Ripemd160* p1); +extern GoUint32 SKY_coin_AddressUxOuts_GetOutputLength(AddressUxOuts_Handle p0, cipher__Address* p1, GoInt* p2); -extern GoUint32 SKY_cipher_SHA256_Set(cipher__SHA256* p0, GoSlice p1); +extern GoUint32 SKY_coin_AddressUxOuts_Length(AddressUxOuts_Handle p0, GoInt* p1); -extern GoUint32 SKY_cipher_SHA256_Hex(cipher__SHA256* p0, GoString_* p1); +extern GoUint32 SKY_coin_AddressUxOuts_Set(AddressUxOuts_Handle p0, cipher__Address* p1, coin__UxArray* p2); -extern GoUint32 SKY_cipher_SHA256_Xor(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_NewClient(GoString p0, Client__Handle* p1); -extern GoUint32 SKY_cipher_SumSHA256(GoSlice p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_CSRF(Client__Handle p0, GoString_* p1); -extern GoUint32 SKY_cipher_SHA256FromHex(GoString p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_Version(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_DoubleSHA256(GoSlice p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_Outputs(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_cipher_AddSHA256(cipher__SHA256* p0, cipher__SHA256* p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_Client_OutputsForAddresses(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_cipher_Merkle(GoSlice* p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_OutputsForHashes(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_cipher_SHA256_Null(cipher__SHA256* p0, GoUint8* p1); +extern GoUint32 SKY_api_Client_CoinSupply(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_Create_Transaction(Transaction__Handle* p0); +extern GoUint32 SKY_api_Client_BlockByHash(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_Copy(Transaction__Handle p0, Transaction__Handle* p1); +extern GoUint32 SKY_api_Client_BlockBySeq(Client__Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_coin_GetTransactionObject(Transaction__Handle p0, coin__Transaction** p1); +extern GoUint32 SKY_api_Client_Blocks(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_ResetInputs(Transaction__Handle p0, GoInt p1); +extern GoUint32 SKY_api_Client_LastBlocks(Client__Handle p0, GoUint64 p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_GetInputsCount(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_api_Client_BlockchainMetadata(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_Transaction_GetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_Client_BlockchainProgress(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_Transaction_SetInputAt(Transaction__Handle p0, GoInt p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_Client_Balance(Client__Handle p0, GoSlice p1, wallet__BalancePair* p2); -extern GoUint32 SKY_coin_Transaction_GetOutputsCount(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_api_Client_UxOut(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_GetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); +extern GoUint32 SKY_api_Client_AddressUxOuts(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_SetOutputAt(Transaction__Handle p0, GoInt p1, coin__TransactionOutput* p2); +extern GoUint32 SKY_api_Client_Wallet(Client__Handle p0, GoString p1, WalletResponse__Handle* p2); -extern GoUint32 SKY_coin_Transaction_GetSignaturesCount(Transaction__Handle p0, GoInt* p1); +extern GoUint32 SKY_api_Client_Wallets(Client__Handle p0, Wallets__Handle* p1); -extern GoUint32 SKY_coin_Transaction_GetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); +extern GoUint32 SKY_api_Client_CreateUnencryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoInt p3, WalletResponse__Handle* p4); -extern GoUint32 SKY_coin_Transaction_SetSignatureAt(Transaction__Handle p0, GoInt p1, cipher__Sig* p2); +extern GoUint32 SKY_api_Client_CreateEncryptedWallet(Client__Handle p0, GoString p1, GoString p2, GoString p3, GoInt p4, WalletResponse__Handle* p5); -extern GoUint32 SKY_coin_Transaction_PushSignature(Transaction__Handle p0, cipher__Sig* p1); +extern GoUint32 SKY_api_Client_NewWalletAddress(Client__Handle p0, GoString p1, GoInt p2, GoString p3, Strings__Handle* p4); -extern GoUint32 SKY_coin_Transaction_ResetOutputs(Transaction__Handle p0, GoInt p1); +extern GoUint32 SKY_api_Client_WalletBalance(Client__Handle p0, GoString p1, wallet__BalancePair* p2); -extern GoUint32 SKY_coin_Transaction_ResetSignatures(Transaction__Handle p0, GoInt p1); +extern GoUint32 SKY_api_Client_Spend(Client__Handle p0, GoString p1, GoString p2, GoUint64 p3, GoString p4, SpendResult_Handle* p5); -extern GoUint32 SKY_coin_Transaction_Verify(Transaction__Handle p0); +extern GoUint32 SKY_api_Client_CreateTransaction(Client__Handle p0, Handle* p1, CreateTransactionResponse__Handle* p2); -extern GoUint32 SKY_coin_Transaction_VerifyInput(Transaction__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Client_UpdateWallet(Client__Handle p0, GoString p1, GoString p2); -extern GoUint32 SKY_coin_Transaction_PushInput(Transaction__Handle p0, cipher__SHA256* p1, GoUint16* p2); +extern GoUint32 SKY_api_Client_WalletFolderName(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_TransactionOutput_UxID(coin__TransactionOutput* p0, cipher__SHA256* p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_Client_NewSeed(Client__Handle p0, GoInt p1, GoString_* p2); -extern GoUint32 SKY_coin_Transaction_PushOutput(Transaction__Handle p0, cipher__Address* p1, GoUint64 p2, GoUint64 p3); +extern GoUint32 SKY_api_Client_WalletSeed(Client__Handle p0, GoString p1, GoString p2, GoString_* p3); -extern GoUint32 SKY_coin_Transaction_SignInputs(Transaction__Handle p0, GoSlice p1); +extern GoUint32 SKY_api_Client_NetworkConnection(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_Size(Transaction__Handle p0, GoUint32* p1); +extern GoUint32 SKY_api_Client_NetworkConnections(Client__Handle p0, api__NetworkConnectionsFilter* p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_Hash(Transaction__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_NetworkDefaultPeers(Client__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Transaction_SizeHash(Transaction__Handle p0, GoUint32* p1, cipher__SHA256* p2); +extern GoUint32 SKY_api_Client_NetworkTrustedPeers(Client__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Transaction_TxID(Transaction__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Client_NetworkExchangedPeers(Client__Handle p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_Transaction_TxIDHex(Transaction__Handle p0, GoString_* p1); +extern GoUint32 SKY_api_Client_PendingTransactions(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_Transaction_UpdateHeader(Transaction__Handle p0); +extern GoUint32 SKY_api_Client_Transaction(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_HashInner(Transaction__Handle p0, cipher__SHA256* p1); +extern GoUint32 SKY_api_Client_Transactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_Serialize(Transaction__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Client_ConfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_coin_TransactionDeserialize(GoSlice p0, Transaction__Handle* p1); +extern GoUint32 SKY_api_Client_UnconfirmedTransactions(Client__Handle p0, GoSlice p1, Handle* p2); -extern GoUint32 SKY_coin_Transaction_OutputHours(Transaction__Handle p0, GoUint64* p1); +extern GoUint32 SKY_api_Client_InjectTransaction(Client__Handle p0, Transaction__Handle p1, GoString_* p2); -extern GoUint32 SKY_coin_Create_Transactions(Transactions__Handle* p0); +extern GoUint32 SKY_api_Client_ResendUnconfirmedTransactions(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_GetTransactionsObject(Transactions__Handle p0, coin__UxArray** p1); +extern GoUint32 SKY_api_Client_RawTransaction(Client__Handle p0, GoString p1, GoString_* p2); -extern GoUint32 SKY_coin_Transactions_Length(Transactions__Handle p0, GoInt* p1); +extern GoUint32 SKY_api_Client_AddressTransactions(Client__Handle p0, GoString p1, Handle* p2); -extern GoUint32 SKY_coin_Transactions_Add(Transactions__Handle p0, Transaction__Handle p1); +extern GoUint32 SKY_api_Client_Richlist(Client__Handle p0, api__RichlistParams* p1, Handle* p2); -extern GoUint32 SKY_coin_Transactions_Fees(Transactions__Handle p0, FeeCalculator* p1, GoUint64* p2); +extern GoUint32 SKY_api_Client_AddressCount(Client__Handle p0, GoUint64* p1); -extern GoUint32 SKY_coin_Transactions_GetAt(Transactions__Handle p0, GoInt p1, Transaction__Handle* p2); +extern GoUint32 SKY_api_Client_UnloadWallet(Client__Handle p0, GoString p1); -extern GoUint32 SKY_coin_Transactions_Hashes(Transactions__Handle p0, coin__UxArray* p1); +extern GoUint32 SKY_api_Client_Health(Client__Handle p0, Handle* p1); -extern GoUint32 SKY_coin_Transactions_Size(Transactions__Handle p0, GoUint32* p1); +extern GoUint32 SKY_api_Client_EncryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); -extern GoUint32 SKY_coin_Transactions_TruncateBytesTo(Transactions__Handle p0, GoUint32 p1, Transactions__Handle* p2); +extern GoUint32 SKY_api_Client_DecryptWallet(Client__Handle p0, GoString p1, GoString p2, WalletResponse__Handle* p3); -extern GoUint32 SKY_coin_SortTransactions(Transactions__Handle p0, FeeCalculator* p1, Transactions__Handle* p2); +extern GoUint32 SKY_httphelper_Address_UnmarshalJSON(httphelper__Address* p0, GoSlice p1); -extern GoUint32 SKY_coin_NewSortableTransactions(Transactions__Handle p0, FeeCalculator* p1, SortableTransactionResult_Handle* p2); +extern GoUint32 SKY_httphelper_Address_MarshalJSON(httphelper__Address* p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_SortableTransactions_Sort(SortableTransactionResult_Handle p0); +extern GoUint32 SKY_httphelper_Coins_UnmarshalJSON(httphelper__Coins* p0, GoSlice p1); -extern GoUint32 SKY_coin_SortableTransactions_Len(SortableTransactionResult_Handle p0, GoInt* p1); +extern GoUint32 SKY_httphelper_Coins_MarshalJSON(httphelper__Coins* p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_SortableTransactions_Less(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2, GoUint8* p3); +extern GoUint32 SKY_httphelper_Coins_Value(httphelper__Coins* p0, GoUint64* p1); -extern GoUint32 SKY_coin_SortableTransactions_Swap(SortableTransactionResult_Handle p0, GoInt p1, GoInt p2); +extern GoUint32 SKY_httphelper_Hours_UnmarshalJSON(httphelper__Hours* p0, GoSlice p1); -extern GoUint32 SKY_coin_VerifyTransactionCoinsSpending(coin__UxArray* p0, coin__UxArray* p1); +extern GoUint32 SKY_httphelper_Hours_MarshalJSON(httphelper__Hours* p0, coin__UxArray* p1); -extern GoUint32 SKY_coin_VerifyTransactionHoursSpending(GoUint64 p0, coin__UxArray* p1, coin__UxArray* p2); +extern GoUint32 SKY_httphelper_Hours_Value(httphelper__Hours* p0, GoUint64* p1); #ifdef __cplusplus } diff --git a/target/classes/skycoin/libjava/GoInterface.class b/target/classes/skycoin/libjava/GoInterface.class deleted file mode 100644 index 0ecad4c..0000000 Binary files a/target/classes/skycoin/libjava/GoInterface.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/GoSlice.class b/target/classes/skycoin/libjava/GoSlice.class deleted file mode 100644 index 1586583..0000000 Binary files a/target/classes/skycoin/libjava/GoSlice.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_AddressUxOuts_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_AddressUxOuts_Handle.class deleted file mode 100644 index b4ca26c..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_AddressUxOuts_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_App__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_App__Handle.class deleted file mode 100644 index b8795a7..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_App__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_BalanceResult_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_BalanceResult_Handle.class deleted file mode 100644 index f838ca2..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_BalanceResult_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_BlockBody__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_BlockBody__Handle.class deleted file mode 100644 index 5259cb6..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_BlockBody__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Block__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Block__Handle.class deleted file mode 100644 index b81b9f9..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Block__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_BuildInfo_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_BuildInfo_Handle.class deleted file mode 100644 index d3661ef..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_BuildInfo_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Client__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Client__Handle.class deleted file mode 100644 index 7714a54..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Client__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Config__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Config__Handle.class deleted file mode 100644 index 1f304a5..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Config__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Context__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Context__Handle.class deleted file mode 100644 index aa5ae80..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Context__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_CreateTransactionResponse__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_CreateTransactionResponse__Handle.class deleted file mode 100644 index f8ba2f3..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_CreateTransactionResponse__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransactionInput__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransactionInput__Handle.class deleted file mode 100644 index 2385ae7..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransactionInput__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransactionOutput__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransactionOutput__Handle.class deleted file mode 100644 index 7ac962d..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransactionOutput__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransaction__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransaction__Handle.class deleted file mode 100644 index 271f288..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_CreatedTransaction__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_FILE.class b/target/classes/skycoin/libjava/SWIGTYPE_p_FILE.class deleted file mode 100644 index b442e4d..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_FILE.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_FeeCalculator.class b/target/classes/skycoin/libjava/SWIGTYPE_p_FeeCalculator.class deleted file mode 100644 index f86afe5..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_FeeCalculator.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_GoSlice_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_GoSlice_.class deleted file mode 100644 index d710c92..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_GoSlice_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_GoStringMap_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_GoStringMap_.class deleted file mode 100644 index a3215a0..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_GoStringMap_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_GoString_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_GoString_.class deleted file mode 100644 index cc76818..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_GoString_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint32_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint32_.class deleted file mode 100644 index a67d0d0..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint32_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint64_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint64_.class deleted file mode 100644 index f4fbe04..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint64_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint8_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint8_.class deleted file mode 100644 index f67d502..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_GoUint8_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Handle.class deleted file mode 100644 index 678bd0e..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Number_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Number_Handle.class deleted file mode 100644 index e5b35a3..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Number_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Options__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Options__Handle.class deleted file mode 100644 index 80cf057..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Options__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_PasswordReader__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_PasswordReader__Handle.class deleted file mode 100644 index 25dd07c..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_PasswordReader__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableEntry__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableEntry__Handle.class deleted file mode 100644 index cdaeed5..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableEntry__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.class deleted file mode 100644 index 19269b0..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableUnspentOutputsSummary_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableWallet__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableWallet__Handle.class deleted file mode 100644 index f66da28..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_ReadableWallet__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Signature_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Signature_Handle.class deleted file mode 100644 index 2c18c8c..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Signature_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_SortableTransactionResult_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_SortableTransactionResult_Handle.class deleted file mode 100644 index eca6d22..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_SortableTransactionResult_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_SpendResult_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_SpendResult_Handle.class deleted file mode 100644 index 8702847..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_SpendResult_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_StatusResult_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_StatusResult_Handle.class deleted file mode 100644 index 384b07b..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_StatusResult_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Strings__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Strings__Handle.class deleted file mode 100644 index 2598168..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Strings__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_TransactionResult_Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_TransactionResult_Handle.class deleted file mode 100644 index 1a6038a..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_TransactionResult_Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Transaction__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Transaction__Handle.class deleted file mode 100644 index 0524d02..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Transaction__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Transactions__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Transactions__Handle.class deleted file mode 100644 index 8205a7a..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Transactions__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_WalletResponse__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_WalletResponse__Handle.class deleted file mode 100644 index ec9c9a7..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_WalletResponse__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Wallet__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Wallet__Handle.class deleted file mode 100644 index 7003f5d..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Wallet__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_Wallets__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_Wallets__Handle.class deleted file mode 100644 index 4c2fc4a..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_Wallets__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_WebRpcClient__Handle.class b/target/classes/skycoin/libjava/SWIGTYPE_p_WebRpcClient__Handle.class deleted file mode 100644 index c0b693f..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_WebRpcClient__Handle.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_a_4__GoUint8_.class b/target/classes/skycoin/libjava/SWIGTYPE_p_a_4__GoUint8_.class deleted file mode 100644 index 9717e89..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_a_4__GoUint8_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_int.class b/target/classes/skycoin/libjava/SWIGTYPE_p_int.class deleted file mode 100644 index 1b54553..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_int.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_long_long.class b/target/classes/skycoin/libjava/SWIGTYPE_p_long_long.class deleted file mode 100644 index 321e1a1..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_long_long.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_p_coin__Block.class b/target/classes/skycoin/libjava/SWIGTYPE_p_p_coin__Block.class deleted file mode 100644 index 93434be..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_p_coin__Block.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_p_coin__Transaction.class b/target/classes/skycoin/libjava/SWIGTYPE_p_p_coin__Transaction.class deleted file mode 100644 index d7c6724..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_p_coin__Transaction.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_p_json_value.class b/target/classes/skycoin/libjava/SWIGTYPE_p_p_json_value.class deleted file mode 100644 index 622305d..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_p_json_value.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_p_void.class b/target/classes/skycoin/libjava/SWIGTYPE_p_p_void.class deleted file mode 100644 index 2c56026..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_p_void.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_char.class b/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_char.class deleted file mode 100644 index 0a89e29..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_char.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_int.class b/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_int.class deleted file mode 100644 index 5363559..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_int.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_long_long.class b/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_long_long.class deleted file mode 100644 index 67ef063..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_long_long.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_short.class b/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_short.class deleted file mode 100644 index 5f104eb..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_unsigned_short.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/SWIGTYPE_p_void.class b/target/classes/skycoin/libjava/SWIGTYPE_p_void.class deleted file mode 100644 index cd4f393..0000000 Binary files a/target/classes/skycoin/libjava/SWIGTYPE_p_void.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/_GoString_.class b/target/classes/skycoin/libjava/_GoString_.class deleted file mode 100644 index 985ac45..0000000 Binary files a/target/classes/skycoin/libjava/_GoString_.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/api__RichlistParams.class b/target/classes/skycoin/libjava/api__RichlistParams.class deleted file mode 100644 index 5ced23d..0000000 Binary files a/target/classes/skycoin/libjava/api__RichlistParams.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_Addresses.class b/target/classes/skycoin/libjava/cipher_Addresses.class deleted file mode 100644 index d88f52f..0000000 Binary files a/target/classes/skycoin/libjava/cipher_Addresses.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_Checksum.class b/target/classes/skycoin/libjava/cipher_Checksum.class deleted file mode 100644 index 649fbb8..0000000 Binary files a/target/classes/skycoin/libjava/cipher_Checksum.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_PubKey.class b/target/classes/skycoin/libjava/cipher_PubKey.class deleted file mode 100644 index 0cff91e..0000000 Binary files a/target/classes/skycoin/libjava/cipher_PubKey.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_PubKeys.class b/target/classes/skycoin/libjava/cipher_PubKeys.class deleted file mode 100644 index 9432dbb..0000000 Binary files a/target/classes/skycoin/libjava/cipher_PubKeys.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_Ripemd160.class b/target/classes/skycoin/libjava/cipher_Ripemd160.class deleted file mode 100644 index 03188bc..0000000 Binary files a/target/classes/skycoin/libjava/cipher_Ripemd160.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_SHA256.class b/target/classes/skycoin/libjava/cipher_SHA256.class deleted file mode 100644 index 607a343..0000000 Binary files a/target/classes/skycoin/libjava/cipher_SHA256.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_SHA256s.class b/target/classes/skycoin/libjava/cipher_SHA256s.class deleted file mode 100644 index 8c09bc7..0000000 Binary files a/target/classes/skycoin/libjava/cipher_SHA256s.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_SecKey.class b/target/classes/skycoin/libjava/cipher_SecKey.class deleted file mode 100644 index 42fdfbe..0000000 Binary files a/target/classes/skycoin/libjava/cipher_SecKey.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_SecKeys.class b/target/classes/skycoin/libjava/cipher_SecKeys.class deleted file mode 100644 index ca548a1..0000000 Binary files a/target/classes/skycoin/libjava/cipher_SecKeys.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher_Sig.class b/target/classes/skycoin/libjava/cipher_Sig.class deleted file mode 100644 index 95a463d..0000000 Binary files a/target/classes/skycoin/libjava/cipher_Sig.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher__Address.class b/target/classes/skycoin/libjava/cipher__Address.class deleted file mode 100644 index 595ded6..0000000 Binary files a/target/classes/skycoin/libjava/cipher__Address.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cipher__BitcoinAddress.class b/target/classes/skycoin/libjava/cipher__BitcoinAddress.class deleted file mode 100644 index e73a3e4..0000000 Binary files a/target/classes/skycoin/libjava/cipher__BitcoinAddress.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/cli__SendAmount.class b/target/classes/skycoin/libjava/cli__SendAmount.class deleted file mode 100644 index f74a93d..0000000 Binary files a/target/classes/skycoin/libjava/cli__SendAmount.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin_UxOutArray.class b/target/classes/skycoin/libjava/coin_UxOutArray.class deleted file mode 100644 index de361a8..0000000 Binary files a/target/classes/skycoin/libjava/coin_UxOutArray.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__Block.class b/target/classes/skycoin/libjava/coin__Block.class deleted file mode 100644 index c2f8532..0000000 Binary files a/target/classes/skycoin/libjava/coin__Block.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__BlockBody.class b/target/classes/skycoin/libjava/coin__BlockBody.class deleted file mode 100644 index 2e1f216..0000000 Binary files a/target/classes/skycoin/libjava/coin__BlockBody.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__BlockHeader.class b/target/classes/skycoin/libjava/coin__BlockHeader.class deleted file mode 100644 index 3a49116..0000000 Binary files a/target/classes/skycoin/libjava/coin__BlockHeader.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__SignedBlock.class b/target/classes/skycoin/libjava/coin__SignedBlock.class deleted file mode 100644 index 3bf1e84..0000000 Binary files a/target/classes/skycoin/libjava/coin__SignedBlock.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__Transaction.class b/target/classes/skycoin/libjava/coin__Transaction.class deleted file mode 100644 index 27c72f1..0000000 Binary files a/target/classes/skycoin/libjava/coin__Transaction.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__TransactionOutput.class b/target/classes/skycoin/libjava/coin__TransactionOutput.class deleted file mode 100644 index 4966330..0000000 Binary files a/target/classes/skycoin/libjava/coin__TransactionOutput.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__UxBody.class b/target/classes/skycoin/libjava/coin__UxBody.class deleted file mode 100644 index e3daf25..0000000 Binary files a/target/classes/skycoin/libjava/coin__UxBody.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__UxHead.class b/target/classes/skycoin/libjava/coin__UxHead.class deleted file mode 100644 index 0d63523..0000000 Binary files a/target/classes/skycoin/libjava/coin__UxHead.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/coin__UxOut.class b/target/classes/skycoin/libjava/coin__UxOut.class deleted file mode 100644 index a2af70b..0000000 Binary files a/target/classes/skycoin/libjava/coin__UxOut.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/encrypt__ScryptChacha20poly1305.class b/target/classes/skycoin/libjava/encrypt__ScryptChacha20poly1305.class deleted file mode 100644 index f010f52..0000000 Binary files a/target/classes/skycoin/libjava/encrypt__ScryptChacha20poly1305.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/httphelper__Address.class b/target/classes/skycoin/libjava/httphelper__Address.class deleted file mode 100644 index 8f485b4..0000000 Binary files a/target/classes/skycoin/libjava/httphelper__Address.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/secp256k1go__Field.class b/target/classes/skycoin/libjava/secp256k1go__Field.class deleted file mode 100644 index c5e5342..0000000 Binary files a/target/classes/skycoin/libjava/secp256k1go__Field.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/secp256k1go__XY.class b/target/classes/skycoin/libjava/secp256k1go__XY.class deleted file mode 100644 index 00066a4..0000000 Binary files a/target/classes/skycoin/libjava/secp256k1go__XY.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/secp256k1go__XYZ.class b/target/classes/skycoin/libjava/secp256k1go__XYZ.class deleted file mode 100644 index 1cac203..0000000 Binary files a/target/classes/skycoin/libjava/secp256k1go__XYZ.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/skycoin.class b/target/classes/skycoin/libjava/skycoin.class deleted file mode 100644 index 257e8d2..0000000 Binary files a/target/classes/skycoin/libjava/skycoin.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/skycoinConstants.class b/target/classes/skycoin/libjava/skycoinConstants.class deleted file mode 100644 index 82f914b..0000000 Binary files a/target/classes/skycoin/libjava/skycoinConstants.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/skycoinJNI.class b/target/classes/skycoin/libjava/skycoinJNI.class deleted file mode 100644 index 55d5105..0000000 Binary files a/target/classes/skycoin/libjava/skycoinJNI.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet__Balance.class b/target/classes/skycoin/libjava/wallet__Balance.class deleted file mode 100644 index 83db08e..0000000 Binary files a/target/classes/skycoin/libjava/wallet__Balance.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet__BalancePair.class b/target/classes/skycoin/libjava/wallet__BalancePair.class deleted file mode 100644 index aac7e07..0000000 Binary files a/target/classes/skycoin/libjava/wallet__BalancePair.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet__Entry.class b/target/classes/skycoin/libjava/wallet__Entry.class deleted file mode 100644 index fb9f641..0000000 Binary files a/target/classes/skycoin/libjava/wallet__Entry.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet__Note.class b/target/classes/skycoin/libjava/wallet__Note.class deleted file mode 100644 index 79b425b..0000000 Binary files a/target/classes/skycoin/libjava/wallet__Note.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet__ReadableNote.class b/target/classes/skycoin/libjava/wallet__ReadableNote.class deleted file mode 100644 index b02bf8f..0000000 Binary files a/target/classes/skycoin/libjava/wallet__ReadableNote.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet__UxBalance.class b/target/classes/skycoin/libjava/wallet__UxBalance.class deleted file mode 100644 index 78c64bb..0000000 Binary files a/target/classes/skycoin/libjava/wallet__UxBalance.class and /dev/null differ diff --git a/target/classes/skycoin/libjava/wallet_register.class b/target/classes/skycoin/libjava/wallet_register.class deleted file mode 100644 index fd1f7a9..0000000 Binary files a/target/classes/skycoin/libjava/wallet_register.class and /dev/null differ diff --git a/target/test-classes/skycoin/libjava/cipher_addressTest.class b/target/test-classes/skycoin/libjava/cipher_addressTest.class deleted file mode 100644 index 5c8d33f..0000000 Binary files a/target/test-classes/skycoin/libjava/cipher_addressTest.class and /dev/null differ