Skip to content

Commit

Permalink
fixup! Add per-contact deterministic payer keys
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bast committed Jul 19, 2024
1 parent fa5ec01 commit 945318d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data class TrustedContact(val offer: OfferTypes.Offer, val payerIds: List<Public
*/
fun deterministicPayerKey(localOffer: OfferTypes.OfferAndKey): PrivateKey = localOffer.privateKey * deriveTweak(offer)

/** Return true if this payer_id matches this conact. */
/** Return true if this payer_id matches this contact. */
fun isPayer(payerId: PublicKey): Boolean = payerIds.contains(payerId)

/** Return true if the [invoiceRequest] comes from this contact. */
Expand Down

0 comments on commit 945318d

Please sign in to comment.