-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from uma-universal-money-address/feat/markdownlint
Add markdownlint and CI job to check it
- Loading branch information
Showing
11 changed files
with
88 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: "Markdown Lint" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
markdown-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: DavidAnson/markdownlint-cli2-action@v13 | ||
with: | ||
config: ".markdownlint.json" | ||
globs: "**/*.md" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"default": true, | ||
"MD013": { | ||
"line_length": 120, | ||
"code_blocks": false, | ||
"tables": false, | ||
"headers": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
# UMAD-01: UMA Addresses | ||
|
||
The UMA address format is based on Lightning Addresses ([LUD-16](https://github.com/lnurl/luds/blob/luds/16.md)), and are themselves valid LNURL Lightning Addresses. They are in the format _$\<username>@\<domainname>_ (eg. _$[email protected]_). Similar to Lightning Addresses ([LUD-16](https://github.com/lnurl/luds/blob/luds/16.md)), the domain will be used to make the first lnurlp call to somevasp.com. | ||
The UMA address format is based on Lightning Addresses ([LUD-16](https://github.com/lnurl/luds/blob/luds/16.md)), and | ||
are themselves valid LNURL Lightning Addresses. They are in the format _$\<username>@\<domainname>_ | ||
(eg. _$[email protected]_). Similar to Lightning Addresses ([LUD-16](https://github.com/lnurl/luds/blob/luds/16.md)), | ||
the domain will be used to make the first lnurlp call to somevasp.com. | ||
|
||
![UMA Address Diagram](/images/address_diagram.png) | ||
|
||
|
@@ -9,6 +12,7 @@ The UMA address format is based on Lightning Addresses ([LUD-16](https://github. | |
- Must start with a $ symbol. This is to differentiate from email addresses and clearly identify an uma address. | ||
- The \<username> portion is limited to `a-z0-9-_.+` | ||
- Addresses are case-insensitive, but by convention are written only with lowercase letters | ||
- Like email addresses, the maximum number of characters for the \<username> portion of the address is 64 characters (including the $). | ||
- Like email addresses, the maximum number of characters for the \<username> portion of the address is 64 characters | ||
(including the $). | ||
|
||
The UMA SDKs validate these requirements and will throw an error if they are not met. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# UMAD-03: LNURLP Request | ||
|
||
The first request in the UMA protocol is the LNURLP request, which aligns with LNURL-PAY ([LUD-06](https://github.com/lnurl/luds/blob/luds/06.md)), but with a few added query parameters for compliance and authentication. | ||
The first request in the UMA protocol is the LNURLP request, which aligns with LNURL-PAY | ||
([LUD-06](https://github.com/lnurl/luds/blob/luds/06.md)), but with a few added query parameters for compliance and | ||
authentication. | ||
|
||
If `[email protected]` is paying `[email protected]`, the request looks like: | ||
|
||
|
@@ -9,8 +11,11 @@ GET https://vasp2.com/.well-known/lnurlp/$bob?umaVersion=1.0&nonce=1234&vaspDoma | |
``` | ||
|
||
- `umaVersion` **(string)**: is the UMA protocol version supported by VASP1. See the [versioning UMAD](/umad-08-versioning.md). | ||
- `vaspDomain` **(string)**: is the domain name of the sending vasp. This will be used when validating the signature as per [UMAD-02](/umad-02-keys-and-authentication.md). | ||
- `vaspDomain` **(string)**: is the domain name of the sending vasp. This will be used when validating the signature as | ||
per [UMAD-02](/umad-02-keys-and-authentication.md). | ||
- `isSubjectToTravelRule` **(bool)**: indicates vasp1 is a financial institution that is subject to the Travel Rule. | ||
- `nonce` **(string)**: is a random unique string generated by the SDK that is used to prevent replay attacks. | ||
- `timestamp` **(long)**: is the unix timestamp in seconds (number of seconds since epoch). | ||
- `signature` **(string)**: is vasp1's signature over `hash("[email protected]" + nonce + timestamp)`. Signatures are always hex-encoded strings for UMA. Details on signatures, keys, and how to generate them can be found in [UMAD-02: Keys and Authentication](/umad-02-keys-and-authentication.md). | ||
- `signature` **(string)**: is vasp1's signature over `hash("[email protected]" + nonce + timestamp)`. Signatures are | ||
always hex-encoded strings for UMA. Details on signatures, keys, and how to generate them can be found in | ||
[UMAD-02: Keys and Authentication](/umad-02-keys-and-authentication.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
# UMAD-04: LNURLP Response | ||
|
||
The response to the LNURLP request is an extension of LNURL's [LUD-06](https://github.com/lnurl/luds/blob/luds/06.md). It also utilizes the payer data spec as described in [LUD-18](https://github.com/lnurl/luds/blob/luds/18.md) and a slightly modified version of the local currency spec proposed in [LUD-21](https://github.com/lnurl/luds/pull/207). The full structure of the LNURLP response is: | ||
The response to the LNURLP request is an extension of LNURL's [LUD-06](https://github.com/lnurl/luds/blob/luds/06.md). | ||
It also utilizes the payer data spec as described in [LUD-18](https://github.com/lnurl/luds/blob/luds/18.md) and a | ||
slightly modified version of the local currency spec proposed in [LUD-21](https://github.com/lnurl/luds/pull/207). | ||
The full structure of the LNURLP response is: | ||
|
||
``` | ||
```raw | ||
{ | ||
"callback": string, | ||
// Max millisatoshi amount the receiver is willing to receive. | ||
|
@@ -52,4 +55,5 @@ The response to the LNURLP request is an extension of LNURL's [LUD-06](https://g | |
} | ||
``` | ||
|
||
The signature here is over `sha256_hash(<receiver UMA> (eg. "[email protected]") + nonce + timestamp)`. The receiving VASPs `signingPubKey` can be used by the sending VASP to verify the signature as described in [UMAD-02](/umad-02-keys-and-authentication.md). | ||
The signature here is over `sha256_hash(<receiver UMA> (eg. "[email protected]") + nonce + timestamp)`. | ||
The receiving VASPs `signingPubKey` can be used by the sending VASP to verify the signature as described in [UMAD-02](/umad-02-keys-and-authentication.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
# UMAD-05: Payreq Request | ||
# UMAD-05: Payreq Request | ||
|
||
The first request in the UMA protocol is the payreq request, which aligns with the same request in LNURL-PAY | ||
([LUD-06](https://github.com/lnurl/luds/blob/luds/06.md)), but with a few added query parameters for compliance, | ||
currency conversion, and authentication. This request tells the receiving VASP to generate an invoice for a specified | ||
amount on behalf of the receiving user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# UMAD-06: Payreq Response | ||
# UMAD-06: Payreq Response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# UMAD-07: Post-transaction compliance hooks | ||
# UMAD-07: Post-transaction compliance hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# UMAD-08 Versioning | ||
# UMAD-08 Versioning |