Skip to content
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

User command memo, better GraphQL docstring #7079

Merged
merged 3 commits into from
Dec 16, 2020
Merged

Conversation

psteckler
Copy link
Member

Better docstring for user command memos returned by GraphQL queries.

Also cleaned up a couple of other docstrings.

Closes #6915.

@psteckler psteckler requested a review from a team as a code owner December 16, 2020 00:46
@psteckler psteckler added ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR labels Dec 16, 2020
@garethtdavies
Copy link
Contributor

garethtdavies commented Dec 16, 2020

@psteckler what are the trailing bytes after the empty byte padding? The example is sending a memo of "Decode this memo" with the encoded version coming from GraphQL:

import base58check
print(base58check.b58decode('E4YtexMwhedqfiQUQ2bEzNEryhuqSF3itfN8U3vAt6FTFCimnHP6Q'))

Returns:

b'\x14\x01\x10Decode this memo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00|\x83\xdd\xe1'

@garethtdavies
Copy link
Contributor

Ignore that it's "Four bytes (32 bits) of SHA256-based error checking code.". Just realized I've been using base58 decoding and not base58Check decoding 😕

@lk86 lk86 merged commit ae64540 into develop Dec 16, 2020
@lk86 lk86 deleted the fix/memo-better-graphql-doc branch December 16, 2020 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-build-me Add this label to trigger a circle+buildkite build for this branch ready-to-merge Adding this label will trigger mergify and trigger CI to run and merge the PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve docs around Memo in graphql (it's base58check encoded, I think)
4 participants