lightning-onion
lightning-onion copied to clipboard
ProcessOnionPacketWithExternalSigner
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)