mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-19 13:44:53 +01:00
move pubkey checks to lnd client
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user