mirror of
https://github.com/hzrd149/blossom.git
synced 2025-12-08 14:58:49 +00:00
fix typos
This commit is contained in:
27
buds/07.md
27
buds/07.md
@@ -12,7 +12,7 @@ Payment requirements for blob storage.
|
||||
|
||||
Some servers MAY require payment for file storage. In such cases, these endpoints MUST return a **402 Payment Required** status code:
|
||||
|
||||
- [HEAD /upload](./01.md#head-sha256---has-blob) (Optional, if [BU-06](./06.md) is implemented)
|
||||
- [HEAD /upload](./01.md#head-sha256---has-blob) (Optional, if [BUD-06](./06.md) is implemented)
|
||||
- [PUT /upload](./02.md#put-upload---upload-blob)
|
||||
- [HEAT /<sha256>](./01.md#head-sha256---has-blob)
|
||||
- [GET /<sha256>](./01.md#get-sha256---get-blob)
|
||||
@@ -36,11 +36,11 @@ If a server supports multiple payment methods, it MAY send multiple `X-{payment_
|
||||
|
||||
Fields included in the X-Cashu header:
|
||||
|
||||
- identifier: The unique identifier for the payment.
|
||||
- amount: The amount of ecash being requested
|
||||
- mints: An array of mints that this server uses
|
||||
- unit: The cashu `unit` from the `mints`
|
||||
- pubkey: (optional) a 33 byte pubkey to lock the tokens too. see [NUT-11](https://github.com/cashubtc/nuts/blob/main/11.md)
|
||||
- `identifier`: The unique identifier for the payment.
|
||||
- `amount`: The amount of ecash being requested
|
||||
- `mints`: An array of mints that this server uses
|
||||
- `unit`: The cashu `unit` from the `mints`
|
||||
- `pubkey`: (optional) a 33 byte pubkey to lock the tokens too. see [NUT-11](https://github.com/cashubtc/nuts/blob/main/11.md)
|
||||
|
||||
The `identifier` field is a unique reference to a specific payment request. It allows the server to distinguish between different payments for the same file or blob. The server MUST ensure that each identifier is unique and link it internally to the relevant file or blob.
|
||||
|
||||
@@ -65,9 +65,9 @@ X-Cashu: ewogICJpZGVudGlmaWVyIjogIjIzNTM3IiwKICAiYW1vdW50IjogIjMwMCIsCiAgIm1pbnR
|
||||
|
||||
Fields included in the X-Lightning header:
|
||||
|
||||
- identifier: The unique identifier for the payment.
|
||||
- amount: The amount to be paid.
|
||||
- payment_request: The lightning payment request.
|
||||
- `identifier`: The unique identifier for the payment.
|
||||
- `amount`: The amount to be paid.
|
||||
- `payment_request`: The lightning payment request.
|
||||
|
||||
The `identifier` field is a unique reference to a specific payment request. It allows the server to distinguish between different payments for the same file or blob. The server MUST ensure that each identifier is unique and link it internally to the relevant file or blob.
|
||||
|
||||
@@ -101,8 +101,8 @@ Clients MUST parse and validate all available `X-{payment_method}` headers recei
|
||||
|
||||
- `X-{payment_method}-Payment`: Base64 UrlSafe encoded JSON with the client payment proof.
|
||||
|
||||
- identifier: The unique identifier for the payment.
|
||||
- payment_proof: The proof of payment, specific to the method:
|
||||
- `identifier`: The unique identifier for the payment.
|
||||
- `payment_proof`: The proof of payment, specific to the method:
|
||||
|
||||
- For cashu the payment should be a serialized cashu token according to [NUT-00](https://github.com/cashubtc/nuts/blob/main/00.md#v4-tokens)
|
||||
- For lightning the payment should be the preimage of the payment request according to [BOLT-11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md)
|
||||
@@ -114,6 +114,7 @@ Example for Cashu:
|
||||
"identifier": "23537",
|
||||
"payment_proof": "c3b9e2..."
|
||||
}
|
||||
```
|
||||
|
||||
```http
|
||||
X-Cashu-Payment: ewogICJpZGVudGlmaWVyIjogIjIzNTM3IiwKICAicGF5bWVudF9wcm9vZiI6ICJjM2I5ZTIiCn0
|
||||
@@ -152,8 +153,8 @@ New methods MUST use a unique `X-{payment_method}` header containing Base64 UrlS
|
||||
|
||||
Required Fields:
|
||||
|
||||
- identifier: Unique reference for the payment.
|
||||
- amount: Payment amount in the method’s smallest unit.
|
||||
- `identifier`: Unique reference for the payment.
|
||||
- `amount`: Payment amount in the method’s smallest unit.
|
||||
|
||||
Backward Compatibility:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user