@runflame/wallet-rn 0.0.1-rc.6 → 0.0.1-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FlameWalletNative.podspec +2 -2
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/flame/wallet/flamewallet_ffi.kt +34 -0
- package/android/src/main/jniLibs/arm64-v8a/libflamewallet_ffi.so +0 -0
- package/android/src/main/jniLibs/armeabi-v7a/libflamewallet_ffi.so +0 -0
- package/android/src/main/jniLibs/x86_64/libflamewallet_ffi.so +0 -0
- package/ios/FlameWallet.swift +26 -0
- package/ios/FlameWalletFFI.xcframework/ios-arm64/FlameWalletFFI.framework/FlameWalletFFI +0 -0
- package/ios/FlameWalletFFI.xcframework/ios-arm64/FlameWalletFFI.framework/Headers/FlameWalletFFI.h +11 -0
- package/ios/FlameWalletFFI.xcframework/ios-arm64_x86_64-simulator/FlameWalletFFI.framework/FlameWalletFFI +0 -0
- package/ios/FlameWalletFFI.xcframework/ios-arm64_x86_64-simulator/FlameWalletFFI.framework/Headers/FlameWalletFFI.h +11 -0
- package/package.json +1 -1
- package/sbom.cdx.json +2 -2
|
@@ -2,12 +2,12 @@ Pod::Spec.new do |s|
|
|
|
2
2
|
s.name = 'FlameWalletNative'
|
|
3
3
|
# Swift code imports the bindings as `FlameWallet`.
|
|
4
4
|
s.module_name = 'FlameWallet'
|
|
5
|
-
s.version = '0.0.1-rc.
|
|
5
|
+
s.version = '0.0.1-rc.7'
|
|
6
6
|
s.summary = 'Flame wallet keys and confidential transfers, with UniFFI Swift bindings'
|
|
7
7
|
s.homepage = 'https://github.com/runflame/flame-lib'
|
|
8
8
|
s.license = { :type => 'Apache-2.0', :file => 'LICENSE.txt' }
|
|
9
9
|
s.author = 'Runflame'
|
|
10
|
-
s.source = { :git => 'https://github.com/runflame/flame-lib.git', :tag => 'flamewallet-v0.0.1-rc.
|
|
10
|
+
s.source = { :git => 'https://github.com/runflame/flame-lib.git', :tag => 'flamewallet-v0.0.1-rc.7' }
|
|
11
11
|
s.platforms = { :ios => '15.1' }
|
|
12
12
|
s.swift_version = '5.9'
|
|
13
13
|
s.source_files = 'ios/FlameWallet.swift'
|
package/android/build.gradle
CHANGED
|
@@ -703,6 +703,8 @@ internal object IntegrityCheckingUniffiLib {
|
|
|
703
703
|
): Int
|
|
704
704
|
external fun uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key(
|
|
705
705
|
): Int
|
|
706
|
+
external fun uniffi_flamewallet_ffi_checksum_method_wallet_view_key(
|
|
707
|
+
): Int
|
|
706
708
|
external fun uniffi_flamewallet_ffi_checksum_constructor_wallet_from_mnemonic(
|
|
707
709
|
): Int
|
|
708
710
|
external fun uniffi_flamewallet_ffi_checksum_constructor_wallet_new(
|
|
@@ -751,6 +753,8 @@ internal object UniffiLib {
|
|
|
751
753
|
): RustBuffer.ByValue
|
|
752
754
|
external fun uniffi_flamewallet_ffi_fn_method_wallet_receiving_key(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
|
|
753
755
|
): RustBuffer.ByValue
|
|
756
|
+
external fun uniffi_flamewallet_ffi_fn_method_wallet_view_key(`ptr`: Long,uniffi_out_err: UniffiRustCallStatus,
|
|
757
|
+
): RustBuffer.ByValue
|
|
754
758
|
external fun uniffi_flamewallet_ffi_fn_func_decode_contract(`bytes`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
|
|
755
759
|
): RustBuffer.ByValue
|
|
756
760
|
external fun uniffi_flamewallet_ffi_fn_func_opening_matches(`contract`: RustBuffer.ByValue,`opening`: RustBuffer.ByValue,uniffi_out_err: UniffiRustCallStatus,
|
|
@@ -924,6 +928,9 @@ private fun uniffiCheckApiChecksums(lib: IntegrityCheckingUniffiLib) {
|
|
|
924
928
|
if ((lib.uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key() and 0xFFFF) != 41950) {
|
|
925
929
|
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
926
930
|
}
|
|
931
|
+
if ((lib.uniffi_flamewallet_ffi_checksum_method_wallet_view_key() and 0xFFFF) != 33149) {
|
|
932
|
+
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
933
|
+
}
|
|
927
934
|
if ((lib.uniffi_flamewallet_ffi_checksum_constructor_wallet_from_mnemonic() and 0xFFFF) != 19125) {
|
|
928
935
|
throw RuntimeException("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
|
929
936
|
}
|
|
@@ -1420,6 +1427,14 @@ public interface WalletInterface {
|
|
|
1420
1427
|
*/
|
|
1421
1428
|
fun `receivingKey`(): kotlin.String
|
|
1422
1429
|
|
|
1430
|
+
/**
|
|
1431
|
+
* The account's view key in bech32f (`view1…` / `testview1…`): what a
|
|
1432
|
+
* watch-only wallet is given. It derives every address and opens every
|
|
1433
|
+
* note, so it reads every amount and memo, but it cannot spend. Store
|
|
1434
|
+
* it as a secret.
|
|
1435
|
+
*/
|
|
1436
|
+
fun `viewKey`(): kotlin.String
|
|
1437
|
+
|
|
1423
1438
|
companion object
|
|
1424
1439
|
}
|
|
1425
1440
|
|
|
@@ -1706,6 +1721,25 @@ open class Wallet: Disposable, AutoCloseable, WalletInterface
|
|
|
1706
1721
|
|
|
1707
1722
|
|
|
1708
1723
|
|
|
1724
|
+
/**
|
|
1725
|
+
* The account's view key in bech32f (`view1…` / `testview1…`): what a
|
|
1726
|
+
* watch-only wallet is given. It derives every address and opens every
|
|
1727
|
+
* note, so it reads every amount and memo, but it cannot spend. Store
|
|
1728
|
+
* it as a secret.
|
|
1729
|
+
*/override fun `viewKey`(): kotlin.String {
|
|
1730
|
+
return FfiConverterString.lift(
|
|
1731
|
+
callWithHandle {
|
|
1732
|
+
uniffiRustCall() { _status ->
|
|
1733
|
+
UniffiLib.uniffi_flamewallet_ffi_fn_method_wallet_view_key(
|
|
1734
|
+
it,
|
|
1735
|
+
_status)
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
)
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
|
|
1742
|
+
|
|
1709
1743
|
|
|
1710
1744
|
|
|
1711
1745
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/ios/FlameWallet.swift
CHANGED
|
@@ -666,6 +666,14 @@ public protocol WalletProtocol: AnyObject, Sendable {
|
|
|
666
666
|
*/
|
|
667
667
|
func receivingKey() -> String
|
|
668
668
|
|
|
669
|
+
/**
|
|
670
|
+
* The account's view key in bech32f (`view1…` / `testview1…`): what a
|
|
671
|
+
* watch-only wallet is given. It derives every address and opens every
|
|
672
|
+
* note, so it reads every amount and memo, but it cannot spend. Store
|
|
673
|
+
* it as a secret.
|
|
674
|
+
*/
|
|
675
|
+
func viewKey() -> String
|
|
676
|
+
|
|
669
677
|
}
|
|
670
678
|
/**
|
|
671
679
|
* One account, `m/35263'/network'/0'`, behind an opaque handle.
|
|
@@ -880,6 +888,21 @@ open func receivingKey() -> String {
|
|
|
880
888
|
})
|
|
881
889
|
}
|
|
882
890
|
|
|
891
|
+
/**
|
|
892
|
+
* The account's view key in bech32f (`view1…` / `testview1…`): what a
|
|
893
|
+
* watch-only wallet is given. It derives every address and opens every
|
|
894
|
+
* note, so it reads every amount and memo, but it cannot spend. Store
|
|
895
|
+
* it as a secret.
|
|
896
|
+
*/
|
|
897
|
+
open func viewKey() -> String {
|
|
898
|
+
return try! FfiConverterString.lift(try! rustCall() {
|
|
899
|
+
uniffiCallStatus in
|
|
900
|
+
uniffi_flamewallet_ffi_fn_method_wallet_view_key(
|
|
901
|
+
self.uniffiCloneHandle(),uniffiCallStatus
|
|
902
|
+
)
|
|
903
|
+
})
|
|
904
|
+
}
|
|
905
|
+
|
|
883
906
|
|
|
884
907
|
|
|
885
908
|
}
|
|
@@ -2427,6 +2450,9 @@ private let initializationResult: InitializationResult = {
|
|
|
2427
2450
|
if (uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key() != 41950) {
|
|
2428
2451
|
return InitializationResult.apiChecksumMismatch
|
|
2429
2452
|
}
|
|
2453
|
+
if (uniffi_flamewallet_ffi_checksum_method_wallet_view_key() != 33149) {
|
|
2454
|
+
return InitializationResult.apiChecksumMismatch
|
|
2455
|
+
}
|
|
2430
2456
|
if (uniffi_flamewallet_ffi_checksum_constructor_wallet_from_mnemonic() != 19125) {
|
|
2431
2457
|
return InitializationResult.apiChecksumMismatch
|
|
2432
2458
|
}
|
|
Binary file
|
package/ios/FlameWalletFFI.xcframework/ios-arm64/FlameWalletFFI.framework/Headers/FlameWalletFFI.h
CHANGED
|
@@ -303,6 +303,11 @@ RustBuffer uniffi_flamewallet_ffi_fn_method_wallet_owns(uint64_t ptr, RustBuffer
|
|
|
303
303
|
RustBuffer uniffi_flamewallet_ffi_fn_method_wallet_receiving_key(uint64_t ptr, RustCallStatus *_Nonnull out_status
|
|
304
304
|
);
|
|
305
305
|
#endif
|
|
306
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_METHOD_WALLET_VIEW_KEY
|
|
307
|
+
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_METHOD_WALLET_VIEW_KEY
|
|
308
|
+
RustBuffer uniffi_flamewallet_ffi_fn_method_wallet_view_key(uint64_t ptr, RustCallStatus *_Nonnull out_status
|
|
309
|
+
);
|
|
310
|
+
#endif
|
|
306
311
|
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_FUNC_DECODE_CONTRACT
|
|
307
312
|
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_FUNC_DECODE_CONTRACT
|
|
308
313
|
RustBuffer uniffi_flamewallet_ffi_fn_func_decode_contract(RustBuffer bytes, RustCallStatus *_Nonnull out_status
|
|
@@ -675,6 +680,12 @@ uint16_t uniffi_flamewallet_ffi_checksum_method_wallet_owns(void
|
|
|
675
680
|
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_METHOD_WALLET_RECEIVING_KEY
|
|
676
681
|
uint16_t uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key(void
|
|
677
682
|
|
|
683
|
+
);
|
|
684
|
+
#endif
|
|
685
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_METHOD_WALLET_VIEW_KEY
|
|
686
|
+
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_METHOD_WALLET_VIEW_KEY
|
|
687
|
+
uint16_t uniffi_flamewallet_ffi_checksum_method_wallet_view_key(void
|
|
688
|
+
|
|
678
689
|
);
|
|
679
690
|
#endif
|
|
680
691
|
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_CONSTRUCTOR_WALLET_FROM_MNEMONIC
|
|
Binary file
|
|
@@ -303,6 +303,11 @@ RustBuffer uniffi_flamewallet_ffi_fn_method_wallet_owns(uint64_t ptr, RustBuffer
|
|
|
303
303
|
RustBuffer uniffi_flamewallet_ffi_fn_method_wallet_receiving_key(uint64_t ptr, RustCallStatus *_Nonnull out_status
|
|
304
304
|
);
|
|
305
305
|
#endif
|
|
306
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_METHOD_WALLET_VIEW_KEY
|
|
307
|
+
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_METHOD_WALLET_VIEW_KEY
|
|
308
|
+
RustBuffer uniffi_flamewallet_ffi_fn_method_wallet_view_key(uint64_t ptr, RustCallStatus *_Nonnull out_status
|
|
309
|
+
);
|
|
310
|
+
#endif
|
|
306
311
|
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_FUNC_DECODE_CONTRACT
|
|
307
312
|
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_FN_FUNC_DECODE_CONTRACT
|
|
308
313
|
RustBuffer uniffi_flamewallet_ffi_fn_func_decode_contract(RustBuffer bytes, RustCallStatus *_Nonnull out_status
|
|
@@ -675,6 +680,12 @@ uint16_t uniffi_flamewallet_ffi_checksum_method_wallet_owns(void
|
|
|
675
680
|
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_METHOD_WALLET_RECEIVING_KEY
|
|
676
681
|
uint16_t uniffi_flamewallet_ffi_checksum_method_wallet_receiving_key(void
|
|
677
682
|
|
|
683
|
+
);
|
|
684
|
+
#endif
|
|
685
|
+
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_METHOD_WALLET_VIEW_KEY
|
|
686
|
+
#define UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_METHOD_WALLET_VIEW_KEY
|
|
687
|
+
uint16_t uniffi_flamewallet_ffi_checksum_method_wallet_view_key(void
|
|
688
|
+
|
|
678
689
|
);
|
|
679
690
|
#endif
|
|
680
691
|
#ifndef UNIFFI_FFIDEF_UNIFFI_FLAMEWALLET_FFI_CHECKSUM_CONSTRUCTOR_WALLET_FROM_MNEMONIC
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runflame/wallet-rn",
|
|
3
|
-
"version": "0.0.1-rc.
|
|
3
|
+
"version": "0.0.1-rc.7",
|
|
4
4
|
"description": "Flame wallet keys and confidential transfers for iOS and Android: prebuilt libraries with UniFFI Swift and Kotlin bindings",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/sbom.cdx.json
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
"bomFormat": "CycloneDX",
|
|
3
3
|
"specVersion": "1.3",
|
|
4
4
|
"version": 1,
|
|
5
|
-
"serialNumber": "urn:uuid:
|
|
5
|
+
"serialNumber": "urn:uuid:d23e231b-a2eb-4711-9e9a-4a4c8fb29bc0",
|
|
6
6
|
"metadata": {
|
|
7
|
-
"timestamp": "2026-10-
|
|
7
|
+
"timestamp": "2026-10-07T17:11:15.619085000Z",
|
|
8
8
|
"tools": [
|
|
9
9
|
{
|
|
10
10
|
"vendor": "CycloneDX",
|