Skip to content

Commit

Permalink
Move the compliance and kyc status fields into payeedata.
Browse files Browse the repository at this point in the history
This better matches the use of payeedata and how payerdata already works.
  • Loading branch information
jklein24 committed Feb 17, 2024
1 parent 2194bc8 commit d39f23c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
5 changes: 2 additions & 3 deletions umad-04-lnurlp-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,10 @@ The full structure of the LNURLP response is:
// UMA-specific authentication and compliance info.
"compliance" {
"isSubjectToTravelRule": boolean, // true if VASP2 needs travel rule info
"kycStatus": KycStatus, // [enum] KYC state indicating whether the receiver is a KYC'd customer of VASP2.
"signature": string, // hex encoded
"signatureNonce": string,
"signatureTimestamp": number // secs since epoch
"receiverIdentifier": string // The identity of the receiver at VASP2
"signatureTimestamp": number, // secs since epoch
"receiverIdentifier": string, // The identity of the receiver at VASP2
},
"umaVersion": "1.0", // The UMA protocol version that will be used for this transaction.
"tag": "payRequest",
Expand Down
1 change: 1 addition & 0 deletions umad-05-payreq-request.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ The body of the request is a JSON object with the following fields:
// The UMA protocol version that will be used for this transaction. See [UMAD-08](/umad-08-versioning.md).
"umaVersion": "1.0",
"payeeData": {
"compliance": { "mandatory": boolean },
"name": { "mandatory": boolean },
"identifier": { "mandatory": boolean },
"countryCode": { "mandatory": boolean },
Expand Down
30 changes: 16 additions & 14 deletions umad-06-payreq-response.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,6 @@ The full structure of the LNURLP response is:
"pr": string,
// Empty for legcy LNURL reasons.
"routes": [],
"compliance": {
// Public key of the recipient node for pre-screening.
"nodePubKey": string,
// A list of the expected UTXOs over which the receiver may receive the transaction (receiver's channels).
"utxos": string[],
// A url which the sending VASP should call on transaction completion to notify the receiving VASP of
// the utxos used to complete the transaction. See [UMAD-07](/umad-07-post-tx-hooks.md).
"utxoCallback": string,
// The receiving VASP's signature over sha256_hash(<sender UMA> (eg. [email protected]) + <receiver UMA> (eg. [email protected]) +
// signatureNonce + signatureTimestamp)
"signature": string,
"signatureNonce": string,
"signatureTimestamp": number, // in seconds since epoch
},
"converted": {
// The amount that the receiver will receive in the receiving currency not including fees. The amount is specified
// in the smallest unit of the currency (eg. cents for USD).
Expand All @@ -45,6 +31,22 @@ The full structure of the LNURLP response is:
"fee": number
},
"payeeData": {
"compliance": {
// [enum] KYC state indicating whether the receiver is a KYC'd customer of VASP2.
"kycStatus": KycStatus,
// Public key of the recipient node for pre-screening.
"nodePubKey": string,
// A list of the expected UTXOs over which the receiver may receive the transaction (receiver's channels).
"utxos": string[],
// A url which the sending VASP should call on transaction completion to notify the receiving VASP of
// the utxos used to complete the transaction. See [UMAD-07](/umad-07-post-tx-hooks.md).
"utxoCallback": string,
// The receiving VASP's signature over sha256_hash(<sender UMA> (eg. [email protected]) + <receiver UMA> (eg. [email protected]) +
// signatureNonce + signatureTimestamp)
"signature": string,
"signatureNonce": string,
"signatureTimestamp": number, // in seconds since epoch
},
"name": string,
"identifier": string,
"countryCode": string,
Expand Down

0 comments on commit d39f23c

Please sign in to comment.