Skip to content
This repository was archived by the owner on Mar 8, 2024. It is now read-only.

Commit 4cd75ed

Browse files
authored
CLI - Chapter 1 - The beginning of a CLI (#22)
* functions and types for signing and validating a VerifiablePayID * get pem and x5c working simplify verify call to use Embedded option * lint fixes and refactored SigningParams types from interface to classes * exports * packages.json cleanup * WIP: get PKI with certificate chain validation workiing * lint fixes use generated Root CA, Intermediate CA, and server cert in tests * add 'name' to crit section * splitting web-pki into multiple branches * logic to parse a chain of certificates from the x5c section of a JWS * add test to verify self-signed certs pass signature check but fail chain of certificate check * initial stab at some CLI commands * refactoring of commands add commands for signing and verifying signatures * command to save key upper case the network and environment * refactor inspection logic into a standalone class * more refactoring * linting fixes * jsdoc, refactorings and test coverage * npm audit fix * npm audit fix * revert signing and verfication and inspection changes moving to a separate PR * reverting signing and verification related code for a later PR * code review feedback change command 'url to-payid' to 'payid from-url' * remove eslint disablement rule from eslint rc in favor of doing it in the one class that violates the rule * reorder fields to match constructor per PR review * documentation
1 parent 5bf69bd commit 4cd75ed

11 files changed

Lines changed: 999 additions & 45 deletions

File tree

.eslintrc.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,17 @@ module.exports = {
2727
],
2828

2929
rules: {},
30-
overrides: [],
30+
overrides: [
31+
{
32+
"files": ["*cli.ts"],
33+
"rules": {
34+
"node/shebang": "off"
35+
},
36+
},
37+
{
38+
"files": ["src/commands/*.ts"],
39+
"rules": {
40+
"class-methods-use-this": "off"
41+
},
42+
}],
3143
}

0 commit comments

Comments
 (0)