Open
Conversation
…dle/log in main()
UNG 2711
Keyservice example script
gruenwaldi
reviewed
Apr 7, 2022
gruenwaldi
left a comment
There was a problem hiding this comment.
please check and work on comments
examples/upp-anchoring-status.py
Outdated
| if r.status_code == 200: | ||
| logger.info("The UPP is known to the uBirch backend! (code: %d)" % r.status_code) | ||
|
|
||
| jobj = json.loads(r.content) |
examples/EXAMPLES.md
Outdated
| - [Generating and managing a keypair](#generating-and-managing-a-keypair) | ||
| - [Registering a public key](#registering-a-public-key) | ||
| - [Gathering Data](#gathering-data) | ||
| - [Creating an UPP](#creating-an-upp) |
There was a problem hiding this comment.
it is a UPP , not an UPP. Please check the whole file
examples/EXAMPLES.md
Outdated
| When working with `chained UPPs` it can be useful to check whether the chain is in order and valid. For | ||
| this task, the [`upp-chain-checker.py`](upp-chain-checker.py) can be used. It reads in a list of UPPs, | ||
| checks the signature of each UPP and compares the `prevsig` field with the `signature` of the last UPP. | ||
| If at any point something doesn't match up, it will print an error message alonge with the number of the |
examples/upp-creator.py
Outdated
| logger.info("UPP [hex]: \"%s\"" % binascii.hexlify(self.upp).decode()) | ||
|
|
||
| # try to write the upp | ||
| with open(self.output, "wb") as fd: |
examples/upp-sender.py
Outdated
|
|
||
| def store_response_upp(self) -> bool: | ||
| try: | ||
| with open(self.output, "wb") as fd: |
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| sys.exit(Main().run()) No newline at end of file |
| try: | ||
| logger.info("Reading the input UPP from \"%s\"" % self.input) | ||
|
|
||
| with open(self.input, "rb") as fd: |
examples/upp-sender.py
Outdated
|
|
||
|
|
||
| if __name__ == "__main__": | ||
| sys.exit(Main().run()) No newline at end of file |
|
|
||
| self.assertEqual(hashlib.sha256(b"UBIRCH").digest(), unpacked[3]) No newline at end of file | ||
| self.assertEqual(p.verfiy_signature(UUID(bytes=unpacked[1]), message), True) | ||
| self.assertEqual(hashlib.sha256(b"UBIRCH").digest(), unpacked[3]) |
There was a problem hiding this comment.
look for legacy trackle test and comment it out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.