Skip to content

Commit

Permalink
Fix the serialized name of encryptedTravelRuleInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
jklein24 committed Jan 18, 2024
1 parent 29c4ebc commit e0646eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion uma-sdk/src/commonMain/kotlin/me/uma/UmaProtocolHelper.kt
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class UmaProtocolHelper @JvmOverloads constructor(
val unsignedCompliancePayerData = CompliancePayerData(
utxos = payerUtxos ?: emptyList(),
nodePubKey = payerNodePubKey,
travelRuleInfo = travelRuleInfo?.let { encryptTravelRuleInfo(receiverEncryptionPubKey, it) },
encryptedTravelRuleInfo = travelRuleInfo?.let { encryptTravelRuleInfo(receiverEncryptionPubKey, it) },
kycStatus = payerKycStatus,
signature = "",
signatureNonce = nonce,
Expand Down
6 changes: 3 additions & 3 deletions uma-sdk/src/commonMain/kotlin/me/uma/protocol/PayRequest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ data class PayerData @JvmOverloads constructor(
* @property nodePubKey If known, the public key of the sender's node. If supported by the receiver VASP's compliance
* provider, this will be used to pre-screen the sender's UTXOs for compliance purposes.
* @property kycStatus Indicates whether VASP1 has KYC information about the sender.
* @property travelRuleInfo The travel rule information of the sender. This is encrypted with the receiver's public
* encryption key.
* @property encryptedTravelRuleInfo The travel rule information of the sender. This is encrypted with the receiver's
* public encryption key.
* @property utxoCallback The URL that the receiver will call to send UTXOs of the channel that the receiver used to
* receive the payment once it completes.
* @property signature The signature of the sender on the signable payload.
Expand All @@ -63,7 +63,7 @@ data class CompliancePayerData(
val utxos: List<String>,
val nodePubKey: String?,
val kycStatus: KycStatus,
val travelRuleInfo: String?,
val encryptedTravelRuleInfo: String?,
val utxoCallback: String,
val signature: String,
val signatureNonce: String,
Expand Down

0 comments on commit e0646eb

Please sign in to comment.