mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-05 09:54:21 +01:00
BlindedMessages is now List[BlindedMessage] (no blinded_messages field) and PostMintRequest (new) is now with outputs field
This commit is contained in:
@@ -32,6 +32,8 @@ With the data being of the form `SplitRequest`:
|
||||
}
|
||||
```
|
||||
|
||||
`BlindedMessages` is a list (array) of `BlindedMessage`s (see [NUT-0][00]).
|
||||
|
||||
With curl:
|
||||
|
||||
```bash
|
||||
@@ -49,8 +51,7 @@ curl -X POST https://mint.host:3338/split -d \
|
||||
...
|
||||
}
|
||||
],
|
||||
"outputs":{
|
||||
"blinded_messages":
|
||||
"outputs":
|
||||
[
|
||||
{
|
||||
"amount": 2,
|
||||
@@ -59,10 +60,38 @@ curl -X POST https://mint.host:3338/split -d \
|
||||
{
|
||||
...
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
"amount": 40
|
||||
}
|
||||
```
|
||||
|
||||
If successful, `Bob` will respond
|
||||
If successful, `Bob` will respond with a `PostSplitResponse`
|
||||
|
||||
```python
|
||||
class PostSplitResponse(BaseModel):
|
||||
fst: BlindedSignatures
|
||||
snd: BlindedSignatures
|
||||
```
|
||||
|
||||
`BlindedSignatures` is a list (array) of `BlindedSignature`s (see [NUT-0][00]).
|
||||
|
||||
[00]: 00.md
|
||||
[01]: 02.md
|
||||
[03]: 03.md
|
||||
[04]: 04.md
|
||||
[05]: 05.md
|
||||
[06]: 06.md
|
||||
[07]: 07.md
|
||||
[08]: 08.md
|
||||
[09]: 09.md
|
||||
[10]: 10.md
|
||||
[11]: 11.md
|
||||
[12]: 12.md
|
||||
[13]: 13.md
|
||||
[14]: 14.md
|
||||
[15]: 15.md
|
||||
[16]: 16.md
|
||||
[17]: 17.md
|
||||
[18]: 18.md
|
||||
[19]: 19.md
|
||||
[20]: 20.md
|
||||
Reference in New Issue
Block a user