-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update statement creation to rev a4645e4bc3e78ad5cfd9f8347c7e0ac8267c…
…1079 of SCITT arch and implement verification of statements (#39) * create statement: As standalone file for rev a4645e4bc3e78ad5cfd9f8347c7e0ac8267c1079 of SCITT arch Related: ietf-wg-scitt/draft-ietf-scitt-architecture@a4645e4 Signed-off-by: John Andersen <[email protected]> * scitt: create_claim: Update to rev a4645e4bc3e78ad5cfd9f8347c7e0ac8267c1079 of SCITT arch Related: ietf-wg-scitt/draft-ietf-scitt-architecture@a4645e4 Signed-off-by: John Andersen <[email protected]> * docs: registration policies: CWT decode and COSESign1.verify_signature - Working with SSH authorized_keys and OIDC style jwks - CWT decode - COSESign1.verify_signature - Working registration policy Signed-off-by: John Andersen <[email protected]> * verify statement: As standalone file Signed-off-by: John Andersen <[email protected]> * create statement: Issuer as public key using did:key if not given Signed-off-by: John Andersen <[email protected]> * Remove unused imports $ git ls-files '*.py' | xargs autoflake --in-place --remove-all-unused-imports --ignore-init-module-imports Signed-off-by: John Andersen <[email protected]> * key loader format url referencing x509: Initial commit Asciinema: https://asciinema.org/a/627130 Signed-off-by: John Andersen <[email protected]> * tests: key loader format url referencing x509: In progress Signed-off-by: John Andersen <[email protected]> * key helpers: verification key to object: In progress Tests passing as of https://asciinema.org/a/627194 Asciinema: https://asciinema.org/a/627150 Asciinema: https://asciinema.org/a/627165 Asciinema: https://asciinema.org/a/627183 Asciinema: https://asciinema.org/a/627193 Asciinema: https://asciinema.org/a/627194 Signed-off-by: John Andersen <[email protected]> * docs: registration policies: x509 subject validation Asciinema: https://asciinema.org/a/627198 Signed-off-by: John Andersen <[email protected]> * key loader: x509: Remove Signed-off-by: John Andersen <[email protected]> * key loader: did: jwk: Ditch multibase did keys Signed-off-by: John Andersen <[email protected]> * test: docs: registration polcies: Ensure both ssh and oidc notary public key resolvers tested seperatly Signed-off-by: John Andersen <[email protected]> * key loader: did: web: SCITT SCRAPI transparency-configuration Signed-off-by: John Andersen <[email protected]> * create statement: Enable payload as bytes and creation of transparent statements (via receipts list) Signed-off-by: John Andersen <[email protected]> * did helpers: Move url_to_did_web from tests Helpful for OIDC audience Signed-off-by: John Andersen <[email protected]> --------- Signed-off-by: John Andersen <[email protected]>
- Loading branch information
Showing
24 changed files
with
1,126 additions
and
124 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,4 @@ dependencies: | |
- jwcrypto==1.5.0 | ||
- PyJWT==2.8.0 | ||
- werkzeug==2.2.2 | ||
- cwt==2.7.1 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[pytest] | ||
# https://docs.pytest.org/en/7.1.x/how-to/doctest.html#using-doctest-options | ||
doctest_optionflags = NORMALIZE_WHITESPACE IGNORE_EXCEPTION_DETAIL | ||
# Alternatively, options can be enabled by an inline comment in the doc test itself: | ||
# >>> something_that_raises() # doctest: +IGNORE_EXCEPTION_DETAIL | ||
# Traceback (most recent call last): | ||
# ValueError: ... | ||
addopts = --doctest-modules |
This file contains 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
This file contains 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
Oops, something went wrong.