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

BTC Wallet: Keystone initEccLib #128

Closed
gbarkhatov opened this issue Dec 16, 2024 · 4 comments · Fixed by #146
Closed

BTC Wallet: Keystone initEccLib #128

gbarkhatov opened this issue Dec 16, 2024 · 4 comments · Fixed by #146
Assignees

Comments

@gbarkhatov
Copy link
Contributor

Currently we rely on initEccLib for Keystone to work. We might have conflicts depending on the consumer (like simple-staking).

          lol. looks wrong to me haha.

this initEccLib should be done inside the btc-staking-ts lib once only. should have nothing to do with wallets.

Could you raise an issue to track this? i think this is quite important. if we have two sets of ecc initiated and they have different versions. some unexpected random things could happen.
we should remove it from wallet repo and check how it goes. IMO nothing will happen

Originally posted by @jrwbabylonlab in #127 (comment)

@gbarkhatov
Copy link
Contributor Author

@jrwbabylonlab thing we need to discuss is whether initEccLib from btc-staking-ts is needed
Should this particular library bbn-wallet-connect rely on btc-staking-ts?

@gbarkhatov gbarkhatov self-assigned this Dec 16, 2024
@jrwbabylonlab
Copy link
Collaborator

this bbn-wallet-connect should not rely on btc-stakingts-ts
what's the use-case of initEcclib in this bbn-wallet-connect?

Note that IMO, we shall remove initEccLib everywhere in this repo under src (it's ok to have it as devDependency if we need it for tests)

@gbarkhatov
Copy link
Contributor Author

gbarkhatov commented Dec 17, 2024

@jrwbabylonlab I'll see what I can do and how I can extract initEccLib. Right now it is required for Keystone provider to work since it relies on bitcoinjs-lib heavily. So if you remove that line and link the npm library it won't work on simple-staking

@jrwbabylonlab
Copy link
Collaborator

Ah, gotcha. That makes sense to me in this case.

Yes, let’s investigate this when we pick up the ticket to see if it’s possible to remove it from here.

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 a pull request may close this issue.

2 participants