Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -889,55 +889,6 @@ class VerusLightClient(private val reactContext: ReactApplicationContext) :
// AddressTool
//

/*@OptIn(kotlin.ExperimentalStdlibApi::class)
@ReactMethod
fun getSymmetricKey(
ufvk: String,
ephemeralPublicKeyHex: String,
network: String = "VRSC",
promise: Promise,
) {
moduleScope.launch {
promise.wrap {
val epkBytes = ephemeralPublicKeyHex.hexToByteArray()
val symmetricKey =
DerivationTool.getInstance().getSymmetricKey(
ufvk,
epkBytes,
networks.getOrDefault(network, ZcashNetwork.Mainnet),
)
return@wrap symmetricKey
}
}
}


//
// AddressTool
//

@ReactMethod
fun generateSymmetricKey(
recipient: String,
network: String = "VRSC",
promise: Promise,
) {
moduleScope.launch {
promise.wrap {
val symmetricKey =
DerivationTool.getInstance().generateSymmetricKey(
recipient,
networks.getOrDefault(network, ZcashNetwork.Mainnet),
)
return@wrap symmetricKey
}
}
}*/

//
// AddressTool
//

@ReactMethod
fun zGetEncryptionAddress(
seed: String?, // The seed from JS will be a hex string
Expand Down
2 changes: 1 addition & 1 deletion scripts/updateSources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function downloadSources(): void {
'ZcashLightClientKit',
'https://github.com/VerusCoin/verus-swift-wallet-sdk.git',
// 2.0.3:
'6dfb1392f8bfdb19b52e273adb13f74ae483370c'
'f6d871b292555f849abbd7b5626fcbdc41be9333'
)
getRepo(
'zcash-light-client-ffi',
Expand Down
16 changes: 0 additions & 16 deletions src/react-native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,22 +79,6 @@ export const Tools = {
const result = await VerusLightClient.isValidAddress(address, network)
return result
},
/* getSymmetricKey: async (
ufvk: string,
ephemeralPublicKeyHex: string,
network: Network = 'VRSC'
): Promise<String> => {
const result = await VerusLightClient.getSymmetricKey(ufvk, ephemeralPublicKeyHex, network)
return result
},
generateSymmetricKey: async (
recipient: string,
network: Network = 'VRSC'
): Promise<String> => {
const result = await VerusLightClient.generateSymmetricKey(recipient, network)
return result
},
*/

/**
* Derives a deterministic z-address for encrypted communicatoin between two parties.
Expand Down