Updated on 2026-08-14
This commit is contained in:
parent
25e76dbb18
commit
1deb84b983
5 changed files with 21 additions and 10 deletions
|
|
@ -59,6 +59,15 @@
|
|||
<data
|
||||
android:host="www.tangem.com"
|
||||
android:scheme="http" />
|
||||
<data
|
||||
android:host="www.tangem.com"
|
||||
android:scheme="https" />
|
||||
<data
|
||||
android:host="tangem.com"
|
||||
android:scheme="http" />
|
||||
<data
|
||||
android:host="tangem.com"
|
||||
android:scheme="https" />
|
||||
</intent-filter>
|
||||
<intent-filter>
|
||||
<action android:name="android.nfc.action.TECH_DISCOVERED" />
|
||||
|
|
|
|||
|
|
@ -317,15 +317,16 @@ public class ServerApiElectrum {
|
|||
// install the all-trusting host verifier
|
||||
HttpsURLConnection.setDefaultHostnameVerifier(allHostsValid);
|
||||
|
||||
SSLSocket sslSocket;
|
||||
Socket sslSocket = new Socket();
|
||||
|
||||
List<ElectrumRequest> result = new ArrayList<>();
|
||||
Collections.addAll(result, electrumRequest);
|
||||
|
||||
try {
|
||||
Log.i(TAG, host + " " + port);
|
||||
sslSocket = (SSLSocket) sf.createSocket(host, port);
|
||||
sslSocket.connect(new InetSocketAddress(host,port), 3000);
|
||||
sslSocket.setSoTimeout(3000);
|
||||
sslSocket = sf.createSocket(sslSocket, host, port, true);
|
||||
try {
|
||||
OutputStream os = sslSocket.getOutputStream();
|
||||
OutputStreamWriter out = new OutputStreamWriter(os, "UTF-8");
|
||||
|
|
|
|||
|
|
@ -2,13 +2,13 @@ package com.tangem.wallet.bch
|
|||
|
||||
enum class BitcoinCashNode(val host: String, val port: Int, val proto: String) {
|
||||
N_001("electrumx.hillsideinternet.com", 50002, "ssl"),
|
||||
N_002("dedi.jochen-hoenicke.de", 51002, "ssl"),
|
||||
N_003("crypto.mldlabs.com", 50002, "ssl"),
|
||||
N_004("electroncash.cascharia.com", 50002, "ssl"),
|
||||
N_005("bch.crypto.mldlabs.com", 50002, "ssl"),
|
||||
// N_002("dedi.jochen-hoenicke.de", 51002, "ssl"),
|
||||
// N_003("crypto.mldlabs.com", 50002, "ssl"),
|
||||
// N_004("electroncash.cascharia.com", 50002, "ssl"),
|
||||
// N_005("bch.crypto.mldlabs.com", 50002, "ssl"),
|
||||
N_006("electron.coinucopia.io", 50002, "ssl"),
|
||||
N_007("blackie.c3-soft.com", 50002, "ssl"),
|
||||
N_008("electrum.imaginary.cash", 50002, "ssl"),
|
||||
N_009("bitcoincash.quangld.com", 50002, "ssl"),
|
||||
N_010("bch.stitthappens.com", 50002, "ssl"),
|
||||
// N_009("bitcoincash.quangld.com", 50002, "ssl"),
|
||||
// N_010("bch.stitthappens.com", 50002, "ssl"),
|
||||
}
|
||||
|
|
@ -44,7 +44,8 @@ public class CashAddr {
|
|||
byte[] checksumBytes = calculateChecksumBytesPolymod(allChecksumInput);
|
||||
checksumBytes = convertBits(checksumBytes, 8, 5, true);
|
||||
String cashAddress = BitcoinCashBase32.encode(concatenateByteArrays(payloadBytes, checksumBytes));
|
||||
return prefixString + SEPARATOR + cashAddress;
|
||||
//return prefixString + SEPARATOR + cashAddress;
|
||||
return cashAddress;
|
||||
}
|
||||
|
||||
public static BitcoinCashAddressDecodedParts decodeCashAddress(String bitcoinCashAddress) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ buildscript {
|
|||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.4.0'
|
||||
classpath 'com.android.tools.build:gradle:3.4.1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue