Skip to content

TAPSIGNER setup initial pin #215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Mar 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
e916af3
Add NDEF tag to entitlements
praveenperera Mar 12, 2025
f35f825
Create TapSignerFlow, routes and container
praveenperera Mar 13, 2025
d1043e6
Parse TAPSIGNER/SATSCARD info from NDEF string payload
praveenperera Mar 13, 2025
e6e9b9c
Create TapCardNFC and TapCardReader
praveenperera Mar 13, 2025
82e6923
Use async version of `CkTransport`
praveenperera Mar 13, 2025
462d72b
Use uniffi master and use async transport
praveenperera Mar 14, 2025
6ab2018
WIP: Seperate out TapSigner and SatsCard
praveenperera Mar 14, 2025
3476a53
Fix parsing URL to work for both TAPSIGNER and SATSCARRD
praveenperera Mar 17, 2025
1d16762
Complete setup process for TAPSIGNER
praveenperera Mar 19, 2025
000a9fa
Handle retries in setup command
praveenperera Mar 19, 2025
5e95c09
Allow passing in custom chain code
praveenperera Mar 19, 2025
6eb56ac
Allow tapcard url with non ascii chars in front to be parsed
praveenperera Mar 19, 2025
45c0894
Complete the first Setup Chain Code screen
praveenperera Mar 20, 2025
26abbb8
Create and add TapSignerCardView
praveenperera Mar 20, 2025
ada2184
Complete startingPin section with navigation
praveenperera Mar 20, 2025
b1cdd64
Just use a `NavigationStack` in the sheet
praveenperera Mar 20, 2025
3e2887c
Create `TapSignerConfirmPin` screen
praveenperera Mar 20, 2025
194cf29
Get rid of `pinMap`
praveenperera Mar 20, 2025
d572375
Finish `TapSignerConfirmPin` with checking PIN
praveenperera Mar 20, 2025
2f068cd
Add `derive` command to setup command chain
praveenperera Mar 20, 2025
30c86b0
Make `change` the last command in the setup process
praveenperera Mar 24, 2025
5f7a489
Add `last_response` to `TapSignerReader`
praveenperera Mar 24, 2025
a219617
Fix numeric PIN check
praveenperera Mar 24, 2025
f25931a
Add alert asking to setup TAPSIGNER
praveenperera Mar 24, 2025
1583b74
Use new `CkTapError` error enum in Swift
praveenperera Mar 25, 2025
55e83c0
Create color palete PDF
praveenperera Mar 25, 2025
ff2d682
Create `TapSignerAdvancedChainCode` view
praveenperera Mar 25, 2025
8faf3ba
Adjust `midnightBtn` dark mode color
praveenperera Mar 25, 2025
9a9d5a9
Validate custom chain code
praveenperera Mar 25, 2025
9c95ed7
Complete `TapSignerAdvancedChainCode` screen
praveenperera Mar 25, 2025
f3b94ff
Pass optional `chainCode` down to `TapSignerConfirmPin`
praveenperera Mar 25, 2025
eca6ecf
Implement `PartialEq` and `Hash` for `TapSignerReader`
praveenperera Mar 25, 2025
70f2288
Create `xpub` from TAPSIGNER `DeriveResponse`
praveenperera Mar 25, 2025
a88345c
Create `TapSignerImportComplete` view
praveenperera Mar 25, 2025
7b37e57
WIP: Descriptors from `DeriveInfo`
praveenperera Mar 25, 2025
7eb8ef4
Create descriptor from `DeriveInfo`
praveenperera Mar 26, 2025
671e53a
Support deriving for TAPSIGNER in Mainnet and Testnets
praveenperera Mar 26, 2025
644f9aa
Add ability to create a wallet from a TAPSIGNER
praveenperera Mar 26, 2025
5348118
TapSignerImportSuccess Screen and utility functions
praveenperera Mar 26, 2025
2420d55
Save encrypted TAPSIGNER backup in keychain
praveenperera Mar 26, 2025
9a56df6
Extract function for checking for duplicate wallets
praveenperera Mar 26, 2025
d74c3c7
Save wallet from WalletImport success screen
praveenperera Mar 26, 2025
bbb6585
Create TapSignerImportRetry screen
praveenperera Mar 26, 2025
d1a7af4
Fix uniffi removed PartialEq and Hash from TapSignerRoute
praveenperera Mar 26, 2025
4aa0231
Complete launching NFC flow and handling result
praveenperera Mar 27, 2025
c07dc8c
Complete clicking `Retry` on TAPSIGNER error screen
praveenperera Mar 27, 2025
acc81fb
Set error even when NFC invalidates unexpectedly
praveenperera Mar 27, 2025
ad83408
Adjust styling for TAPSIGNER import success and failure
praveenperera Mar 27, 2025
04840d8
Fix formatting and clippy lints
praveenperera Mar 27, 2025
bd9fd38
Use `rust-cktap` from github
praveenperera Mar 27, 2025
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
8 changes: 8 additions & 0 deletions ios/Cove/AppAlertState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public enum AppAlertState: Equatable {
case noCameraPermission
case failedToScanQr(error: String)
case cantSendOnWatchOnlyWallet
case tapSignerSetupFailed(String)

// action
case uninitializedTapSigner(TapSigner)

func title() -> String {
switch self {
Expand Down Expand Up @@ -62,6 +66,10 @@ public enum AppAlertState: Equatable {
"Unable to Get Address"
case .cantSendOnWatchOnlyWallet:
"Watch Only Wallet"
case .uninitializedTapSigner:
"Setup TAPSIGNER?"
case .tapSignerSetupFailed:
"Setup Failed"
}
}
}
3 changes: 2 additions & 1 deletion ios/Cove/AppSheetState.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
// Created by Praveen Perera on 10/27/24.
//

public enum AppSheetState {
public enum AppSheetState: Equatable {
case qr
case tapSigner(TapSignerRoute)
}
6 changes: 3 additions & 3 deletions ios/Cove/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info": {
"author": "xcode",
"version": 1
"info" : {
"author" : "xcode",
"version" : 1
}
}
21 changes: 21 additions & 0 deletions ios/Cove/Assets.xcassets/chainCodePattern.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "chainCodePattern.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions ios/Cove/Assets.xcassets/midnightBtn.colorset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"color": {
"color-space": "srgb",
"components": {
"red": "0.11",
"green": "0.145",
"blue": "0.212",
"red": "0.29",
"green": "0.29",
"blue": "0.302",
"alpha": "1.000"
}
},
Expand Down
21 changes: 21 additions & 0 deletions ios/Cove/Assets.xcassets/tapSignerCard.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"images" : [
{
"filename" : "tapSignerCard.svg",
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
29 changes: 29 additions & 0 deletions ios/Cove/Assets.xcassets/tapSignerCard.imageset/tapSignerCard.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 5 additions & 7 deletions ios/Cove/Cove.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,14 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>

<key>com.apple.security.files.user-selected.read-only</key>
<true/>

<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.files.user-selected.read-only</key>
<true/>
<key>com.apple.developer.nfc.readersession.formats</key>
<array>
<string>NDEF</string>
<string>TAG</string>
</array>

</dict>
</plist>
Loading