Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
ea61224c
Commit
ea61224c
authored
Jun 13, 2017
by
Jeremy Bokobza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added GiveEscapeKeyAsync method fro NtumbleBit update
parent
3a1e91e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
ITumblerService.cs
Breeze/src/Breeze.TumbleBit.Client/ITumblerService.cs
+2
-0
TumblerService.cs
Breeze/src/Breeze.TumbleBit.Client/TumblerService.cs
+6
-0
No files found.
Breeze/src/Breeze.TumbleBit.Client/ITumblerService.cs
View file @
ea61224c
...
@@ -40,5 +40,7 @@ namespace Breeze.TumbleBit.Client
...
@@ -40,5 +40,7 @@ namespace Breeze.TumbleBit.Client
Task
<
PuzzleSolver
.
ServerCommitment
[
]>
SolvePuzzlesAsync
(
int
cycleId
,
string
channelId
,
PuzzleValue
[]
puzzles
);
Task
<
PuzzleSolver
.
ServerCommitment
[
]>
SolvePuzzlesAsync
(
int
cycleId
,
string
channelId
,
PuzzleValue
[]
puzzles
);
Task
<
SolutionKey
[
]>
FulfillOfferAsync
(
int
cycleId
,
string
channelId
,
TransactionSignature
clientSignature
);
Task
<
SolutionKey
[
]>
FulfillOfferAsync
(
int
cycleId
,
string
channelId
,
TransactionSignature
clientSignature
);
Task
GiveEscapeKeyAsync
(
int
cycleId
,
string
channelId
,
TransactionSignature
signature
);
}
}
}
}
Breeze/src/Breeze.TumbleBit.Client/TumblerService.cs
View file @
ea61224c
...
@@ -110,5 +110,11 @@ namespace Breeze.TumbleBit.Client
...
@@ -110,5 +110,11 @@ namespace Breeze.TumbleBit.Client
SolutionKey
[]
result
=
await
this
.
serverAddress
.
AppendPathSegment
(
$"api/v1/tumblers/0/clientchannels/
{
cycleId
}
/
{
channelId
}
/offer"
).
PostJsonAsync
(
clientSignature
).
ReceiveJson
<
SolutionKey
[
]>
();
SolutionKey
[]
result
=
await
this
.
serverAddress
.
AppendPathSegment
(
$"api/v1/tumblers/0/clientchannels/
{
cycleId
}
/
{
channelId
}
/offer"
).
PostJsonAsync
(
clientSignature
).
ReceiveJson
<
SolutionKey
[
]>
();
return
result
;
return
result
;
}
}
/// <inheritdoc />
public
async
Task
GiveEscapeKeyAsync
(
int
cycleId
,
string
channelId
,
TransactionSignature
signature
)
{
await
this
.
serverAddress
.
AppendPathSegment
(
$"api/v1/tumblers/0/clientchannels/
{
cycleId
}
/
{
channelId
}
/escape"
).
PostJsonAsync
(
signature
);
}
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment