move pubkey checks to lnd client

This commit is contained in:
kiwiidb
2023-06-22 16:13:36 +02:00
parent c6b94e0d0d
commit def32f2d45
14 changed files with 60 additions and 46 deletions

View File

@@ -248,6 +248,15 @@ func (mlnd *MockLND) DecodeBolt11(ctx context.Context, bolt11 string, options ..
}
return result, nil
}
func (mlnd *MockLND) IsIdentityPubkey(pubkey string) (isOurPubkey bool) {
return pubkey == hex.EncodeToString(mlnd.pubKey.SerializeCompressed())
}
func (mlnd *MockLND) GetMainPubkey() (pubkey string) {
return hex.EncodeToString(mlnd.pubKey.SerializeCompressed())
}
func makePreimageHex() ([]byte, error) {
return randBytesFromStr(32, random.Hex)
}