-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swagger adjustment: Supported pool id param is hex or bech32 #2093
Conversation
specifications/api/swagger.yaml
Outdated
maxLength: 56 | ||
minLength: 64 | ||
minLength: 56 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empirically I see that pool ids (no matter if in hex or bech32 format) have consistently 56 char length 🤷♂️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KtorZ is that something we can guarantee? I'm not sure how deterministic bech32 is here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this is right indeed, so we could leave it as a comment in the description instead.
Also, pool ids can be 64 chars ..... with jormungandr :s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added a comment. Pls let me know it that's fine.
01d5d50
to
104c2b3
Compare
specifications/api/swagger.yaml
Outdated
@@ -2226,6 +2224,9 @@ paths: | |||
<p align="right">status: <strong>stable</strong></p> | |||
|
|||
Delegate all (current and future) addresses from the given wallet to the given stake pool. | |||
|
|||
<strong>Note:</strong> Stake pool id lenght can be undeterministic when encoded as bech32. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
length
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤦
104c2b3
to
2017bc1
Compare
specifications/api/swagger.yaml
Outdated
@@ -2226,6 +2224,9 @@ paths: | |||
<p align="right">status: <strong>stable</strong></p> | |||
|
|||
Delegate all (current and future) addresses from the given wallet to the given stake pool. | |||
|
|||
<strong>Note:</strong> Stake pool id length can be undeterministic when encoded as bech32. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can be --> is ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that "undeterministic" (which should probably be "nondeterministic") is the best way to word this.
Readers might infer that the bech32 encoding is nondeterministic in its length. Of course this is not true, as Bech32 encoding is completely deterministic.
Perhaps we could instead say something like:
Bech32-encoded stake pool identifiers can vary in length.
And perhaps then give some examples to illustrate the different lengths that are possible.
@piotr-iohk What do you think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that "undeterministic" (which should probably read "nondeterministic") is the best way to word this.
Unfamiliar readers might infer that the bech32 encoding is nondeterministic in its length. (Of course as we know this isn't true, as Bech32 encoding is completely deterministic.)
Perhaps we could instead say something like:
Bech32-encoded stake pool identifiers can vary in length.
And perhaps then give some examples to illustrate the different lengths that are possible.
What do you think?
specifications/api/swagger.yaml
Outdated
@@ -2226,6 +2224,9 @@ paths: | |||
<p align="right">status: <strong>stable</strong></p> | |||
|
|||
Delegate all (current and future) addresses from the given wallet to the given stake pool. | |||
|
|||
<strong>Note:</strong> Stake pool id length can be undeterministic when encoded as bech32. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure that "undeterministic" (which should probably be "nondeterministic") is the best way to word this.
Readers might infer that the bech32 encoding is nondeterministic in its length. Of course this is not true, as Bech32 encoding is completely deterministic.
Perhaps we could instead say something like:
Bech32-encoded stake pool identifiers can vary in length.
And perhaps then give some examples to illustrate the different lengths that are possible.
@piotr-iohk What do you think?
2017bc1
to
985a129
Compare
bors r+ |
Build succeeded |
Issue Number
#2023
#2025
Overview
Supported pool id param is hex or bech32
Comments
Before:
After: