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

Use bitcoin-lib 0.11 which embeds libsecp256k1 #907

Merged
merged 21 commits into from
Mar 25, 2019
Merged

Conversation

sstone
Copy link
Member

@sstone sstone commented Mar 20, 2019

This PR upgrades bitcoin-lib to version 0.11 which embeds native bindings for libsecp256k1 (for Linux 64 bits, Windows 64 bits and Osx 64 bits), which will be added to our "capsule" jar. Most users will benefit from this (much faster eclair nodes) without having to do anything.

sstone added 2 commits March 20, 2019 18:27
We now use a version of bitcoin-lib which embeds JNI bindings for libsecp256k1,
and it will only sign data that is 32 bytes long (in Bitcoin and LN you always
sign data hashes, not the actual data).
@sstone sstone requested a review from pm47 March 20, 2019 17:42
pm47
pm47 previously approved these changes Mar 20, 2019
sstone and others added 17 commits March 21, 2019 10:53
We don't need to generate 432 blocks to activate segwit but we still need to have
spendable coins and coinbase maturity is 100 blocks even on regtest.
…et server

We already test against a real Electrum server in our docker tests.
Previous test against testnet servers was flaky because testnet Electrum
servers are unrelable. Here we test against our own server on mainnet (and
2 servers from our list for the pool test).
We called nodeParams which created a new in-memory sqlite database everytime we
created "fake" routing info
Creating funding tx is now faster since we call libsecp256k1 and we may miss
the transition to WAIT_FOR_FUNDING_INTERNAL and see WAIT_FOR_FUNDING_SIGNED instead.
For this test, we use a dummy wallet that will never return a funding tx.
Same fix as for WaitForFundingCreatedInternalStateSpec
pm47
pm47 previously approved these changes Mar 25, 2019
Copy link
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Users are going to love this! Missing a description though.

@sstone sstone merged commit 3b7afd9 into master Mar 25, 2019
@sstone sstone deleted the secp256k1-embedded branch March 25, 2019 13:42
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