diff --git a/uma-sdk/src/commonMain/kotlin/me/uma/UmaProtocolHelper.kt b/uma-sdk/src/commonMain/kotlin/me/uma/UmaProtocolHelper.kt index cfad25e..0688900 100644 --- a/uma-sdk/src/commonMain/kotlin/me/uma/UmaProtocolHelper.kt +++ b/uma-sdk/src/commonMain/kotlin/me/uma/UmaProtocolHelper.kt @@ -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, diff --git a/uma-sdk/src/commonMain/kotlin/me/uma/protocol/PayRequest.kt b/uma-sdk/src/commonMain/kotlin/me/uma/protocol/PayRequest.kt index 8c555b1..3f3528e 100644 --- a/uma-sdk/src/commonMain/kotlin/me/uma/protocol/PayRequest.kt +++ b/uma-sdk/src/commonMain/kotlin/me/uma/protocol/PayRequest.kt @@ -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. @@ -63,7 +63,7 @@ data class CompliancePayerData( val utxos: List, val nodePubKey: String?, val kycStatus: KycStatus, - val travelRuleInfo: String?, + val encryptedTravelRuleInfo: String?, val utxoCallback: String, val signature: String, val signatureNonce: String,