lightningnetwork / lightning-onion

Onion Routed Micropayments for the Lightning Network
MIT License
396 stars 125 forks source link

ProcessOnionPacketWithExternalSigner #50

Open Evanfeenstra opened 3 years ago

Evanfeenstra commented 3 years ago

Adds a ProcessOnionPacketWithExternalSigner function, which is a simple way to process onion packets using external keys (like from a hardware wallet). The final argument is a function with this signature:

func(dhKey *btcec.PublicKey) (sphinx.Hash256, error)