Skip to content

feat(statics): add middleware public key field to LightningNetwork #6310

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

davidkaplanbitgo
Copy link
Contributor

Add a new field to LightningNetwork interface that stores the middleware public key used for deriving shared ECDH secrets between user's extended private key and the middleware service.

BTC-2202

Co-authored-by: llm-git [email protected]

TICKET: BTC-2202

@davidkaplanbitgo davidkaplanbitgo force-pushed the BTC-2202.middleware-encryption-key branch from 122ff44 to 9981a32 Compare June 17, 2025 15:27
Add a new field to LightningNetwork interface that stores the middleware
public key used for deriving shared ECDH secrets between user's extended
private key and the middleware service.

BTC-2202

Co-authored-by: llm-git <[email protected]>

TICKET: BTC-2202
Add deriveTatSharedSecret function for secure communication with the
TAT service using the user's private key and the TAT public key.
Define tatPubKey in the LightningNetwork interface and implement it
in both mainnet and testnet networks.

Co-authored-by: llm-git <[email protected]>

TICKET: BTC-2202
@davidkaplanbitgo davidkaplanbitgo force-pushed the BTC-2202.middleware-encryption-key branch from 9981a32 to 8a75e82 Compare June 17, 2025 15:38
davidkaplanbitgo and others added 2 commits June 18, 2025 15:37
Add a utility function that computes a BIP32 derivation index from a seed
string. The function uses SHA256 to generate a deterministic index value
within the valid range for BIP32 derivation paths.

Issue: BTC-2202

Co-authored-by: llm-git <[email protected]>
@davidkaplanbitgo davidkaplanbitgo marked this pull request as ready for review June 19, 2025 14:13
@davidkaplanbitgo davidkaplanbitgo requested review from a team as code owners June 19, 2025 14:13
Copy link
Contributor

@saravanan7mani saravanan7mani left a comment

Choose a reason for hiding this comment

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

minor

@davidkaplanbitgo davidkaplanbitgo force-pushed the BTC-2202.middleware-encryption-key branch from 41a55dc to b151135 Compare June 19, 2025 15:23
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