Merge pull request #303 from koczadly/patch-1

Integrate Nano cryptocurrency in V4V spec, adding documentation
pull/314/head
Dave Jones 2021-11-17 16:28:15 -06:00 zatwierdzone przez GitHub
commit 021d9efa9f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 38 dodań i 1 usunięć

Wyświetl plik

@ -448,4 +448,41 @@ Lightning payments are performed using lightning messages as specified in [BOLT
One part of the message is the `extension`, a TLV (Type-Length-Value) stream. Application specific data can be added to transactions using _custom records_ on the TLV Stream.
A community maintained registry of known custom record types and formats, governed by satoshis.stream, can be found at the document [TLV record registry](https://github.com/satoshisstream/satoshis.stream/blob/main/TLV_registry.md). In special, the section _Fields used in customKey / customValue Pairs_ documents the known use cases for the `customKey` and `customValue` attributes.
A community maintained registry of known custom record types and formats, governed by satoshis.stream, can be found at the document [TLV record registry](https://github.com/satoshisstream/satoshis.stream/blob/main/TLV_registry.md). In special, the section _Fields used in customKey / customValue Pairs_ documents the known use cases for the `customKey` and `customValue` attributes.
#### Nano
Specification for Value 4 Value integration with the [Nano](https://nano.org) cryptocurrency.
For the `<podcast:value>` tag, the following attributes are applicable:
- `type` (*required*): "nano"
- `method` (*required*): "sendblock"
- `suggested` (*optional*): A float representing the amount in nano (eg. 0.00025)
For the `<podcast:valueRecipient>` tag, the following attributes MUST be used:
- `type`: "account"
- `address`: \<*destination nano_xxx address*\>
- `split`: \<*the number of shares*\>
##### Example
***Note:** The following is a made up example, and the accounts shown are for demonstration purposes only.*
```xml
<channel>
<podcast:value type="nano" method="sendblock" suggested="0.0001">
<podcast:valueRecipient
name="John Doe (Host)"
type="account"
address="nano_3fegpdys1a3ncscmhagn3yxdrf5s9kb8drorsi75399omnwjbcp87cyibzyx"
split="50"
/>
<podcast:valueRecipient
name="Jane Doe (Guest)"
type="account"
address="nano_1ero6egquwf3bkh4h5ksf7ghumehn3c131opqe65bsi5q17huwjsnhcp8kxd"
split="50"
/>
</podcast:value>
</channel>
```