Skip to content
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

User Either, Try and Chain types provided by bitcoin-kmp #590

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

sstone
Copy link
Member

@sstone sstone commented Jan 31, 2024

@sstone sstone requested review from t-bast, dpad85 and pm47 January 31, 2024 09:57
@sstone sstone force-pushed the snapshot/use-either branch from b00d6bf to a686963 Compare February 8, 2024 18:54
build.gradle.kts Outdated Show resolved Hide resolved
@sstone sstone force-pushed the snapshot/use-either branch from a686963 to 7b124e7 Compare February 15, 2024 10:59
@sstone sstone changed the title User Either type provided by bitcoin-kmp User Either, Try and Chain types provided by bitcoin-kmp Feb 15, 2024
@sstone sstone merged commit 35dc4eb into master Feb 15, 2024
4 checks passed
@sstone sstone deleted the snapshot/use-either branch February 15, 2024 13:00
dpad85 added a commit to ACINQ/phoenix that referenced this pull request Feb 20, 2024
- Either, Try, Chain are now provided by bitcoin-kmp
- NodeParams has been simplified
- Added a new Bolt12Invoice type; PaymentRequest is
  an interface.

See:
ACINQ/lightning-kmp#590
ACINQ/lightning-kmp#603
ACINQ/lightning-kmp#605
dpad85 added a commit to ACINQ/phoenix that referenced this pull request Feb 22, 2024
Phoenix now uses lightning-kmp 1.6.1, with support for
taproot addresses and address rotation, improving
privacy and making swap transactions slightly cheaper.

The swap-in wallet now exposes a flow containing the current
address, and a flow of addresses that have already been used 
(plus the current unused address, and a static native segwit
address). Future unused addresses are not exposed.

Swaps to the legacy address will still work, however usage 
should be discouraged. By default, we use taproot addresses.

The swap-in model/intent has been removed from the shared
ReceiveController.

Since the swap-in wallet may take time to synchronize all
used addresses at startup, the app stores the last known
unused index in its preferences, and uses that index when
the app starts to display an address while synchronising.
There's a small risk of address reuse at startup.

Some maintenance work has also been made. With lightning-
kmp version 1.6, several APIs have changed:
- Either, Try, Chain are now provided by bitcoin-kmp
- NodeParams has been simplified
- Added a new Bolt12Invoice type; PaymentRequest is
  an interface.

See:
ACINQ/lightning-kmp#590
ACINQ/lightning-kmp#603
ACINQ/lightning-kmp#605

---------

Co-authored-by: Robbie Hanson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants