mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-28 17:53:30 +02:00
revocation: skeleton for possibly needed method?
This commit is contained in:
parent
ddb74258ff
commit
a83dac4e86
@ -142,6 +142,17 @@ func (h *HyperShaChain) CurrentHash() (*wire.ShaHash, error) {
|
|||||||
return &h.lastHash, nil
|
return &h.lastHash, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// LocatePreImage...
|
||||||
|
// Alice just broadcasted an old commitment tx, we need the revocation hash to
|
||||||
|
// claim the funds so we don't get cheated. However, we aren't storing all the
|
||||||
|
// pre-images in memory. So which shachain index # did she broadcast?
|
||||||
|
func (h *HyperShaChain) LocatePreImage(outputScript []byte) (uint64, *[32]byte) {
|
||||||
|
// TODO(roasbeef): parallel goroutine divide and conquer?
|
||||||
|
// * need to know which side it is? also proper keys?
|
||||||
|
// * guess and check till script template matches the p2sh hash
|
||||||
|
return 0, nil
|
||||||
|
}
|
||||||
|
|
||||||
// MarshallBinary...
|
// MarshallBinary...
|
||||||
func (h *HyperShaChain) Encode(b bytes.Buffer) error {
|
func (h *HyperShaChain) Encode(b bytes.Buffer) error {
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user