Skip to content

add e2e test broadcasting a pegin transaction - #5

Merged
tiero merged 9 commits into
tdex-network:masterfrom
louisinger:claimTx-testing
Jun 14, 2021
Merged

tiero merged 9 commits into
tdex-network:masterfrom
louisinger:claimTx-testing

Conversation

@louisinger

Copy link
Copy Markdown
Contributor

This PR adds an e2e test for claimTx method, broadcasting a pegin transaction on a nigiri regtest network.

Note about LDK Mnemonic: the current test uses PrivateKey identity, so I'm able to sign the transaction with the right privateKey (using liquidjs.ECPair). However, the Mnemonic Identity doesn't let to get the private key for a specific derivation path. So we need to regenerate the key pair for a given address in order to sign the pegin transaction. I do think that we should implement a "Pegin signer" interface in LDK in order to make the process easier for developers. @tiero what's your opinion?

@tiero @altafan @Janaka-Steph please review

@tiero

tiero commented Jun 14, 2021

Copy link
Copy Markdown
Contributor

Please open an issue for this, we will add this possibility to identity in ldk

@tiero
tiero requested a review from altafan June 14, 2021 08:21
Comment thread src/index.ts Outdated
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.

3 participants