Skip to content

Commit cba50dc

Browse files
committed
elip abf: change to LiquiDEX extensions
1 parent a27f30e commit cba50dc

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

elip-abf.mediawiki

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<pre>
22
ELIP: XXX
33
Layer: Applications
4-
Title: Asset Blinding Factors for Partially Signed Elements Transaction Format
4+
Title: LiquiDEX extensions for Partially Signed Elements Transaction Format
55
Author: Leonardo Comandini <[email protected]>
66
Comments-Summary: No comments yet.
77
Status: Draft
@@ -14,17 +14,18 @@
1414

1515
===Abstract===
1616

17-
This document describes an extension to the Partially Signed Elements Transaction (PSET) format, to encode additional data, the asset bliding factors, that might be necessary to collectively blind a transaction.
17+
This document describes extensions to the Partially Signed Elements Transaction (PSET) format for [https://leocomandini.github.io/2021/06/15/liquidex.html LiquiDEX] swaps.
1818

19-
The asset blinding factors are necessary under specific circumstances, but otherwise these fields should not be set.
19+
In LiquiDEX swaps, transactions are (partially) blinded collectively, thus some extra information must be shared to make blinding possible, this ELIP describes how to encode the necessary extra data (asset blinding factors) in a PSET.
2020

2121
===Copyright===
2222

2323
This ELIP is licensed under the 2-clause BSD license.
2424

2525
==Specification==
2626

27-
This ELIP extends the current PSET specification (available at https://github.com/ElementsProject/elements/blob/master/doc/pset.mediawiki) with an additional field for input asset blinding factors and an additional field for output blidning factors.
27+
To avoid possible collisions with PSET fields from the main specification (available at https://github.com/ElementsProject/elements/blob/master/doc/pset.mediawiki), a distinct proprietary field prefix <tt>"pset_liquidex"</tt> is used for the fields described in this ELIP.
28+
For example, identifier of PSBT_ELEMENTS_LIQUIDEX_IN_ABF is a sequence of 11 bytes <tt>fc0d707365745f6c6971756964657800</tt>.
2829

2930
This additional per-input proprietary type element is defined:
3031

@@ -40,7 +41,7 @@ This additional per-input proprietary type element is defined:
4041
! Versions Allowing Inclusion
4142
|-
4243
| Asset Blinding Factor
43-
| <tt>PSBT_ELEMENTS_IN_ASSET_BLINDING_FACTOR = 0x16</tt>
44+
| <tt>PSBT_ELEMENTS_LIQUIDEX_IN_ABF = 0x00</tt>
4445
| None
4546
| No key data
4647
| <tt><256 bit uint></tt>
@@ -64,7 +65,7 @@ And this additional per-output proprietary type element is defined:
6465
! Versions Allowing Inclusion
6566
|-
6667
| Asset Blinding Factor
67-
| <tt>PSBT_ELEMENTS_OUT_ASSET_BLINDING_FACTOR = 0x0b</tt>
68+
| <tt>PSBT_ELEMENTS_LIQUIDEX_OUT_ABF = 0x00</tt>
6869
| None
6970
| No key data
7071
| <tt><256 bit uint></tt>
@@ -127,5 +128,6 @@ However, in most cases, setting the asset blinding factors in a PSET is not nece
127128

128129
==Reference implementation==
129130

131+
(TODO: update to match spec changes)
130132
* [https://github.com/ElementsProject/elements/pull/1329 Elements Core]
131133
* [https://github.com/ElementsProject/rust-elements/pull/201 rust-elements]

0 commit comments

Comments
 (0)