Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: hyperledger-identus/sdk-ts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.0.0
Choose a base ref
...
head repository: hyperledger-identus/sdk-ts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.0.0
Choose a head ref

Commits on May 2, 2024

  1. feat(apollo) Add tested mnemonic generation (#2)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    elribonazo committed May 2, 2024
    Copy the full SHA
    c648a03 View commit details
  2. feat(apollo) Implementing the Apollo interface with basic test covera…

    …ge. (#3)
    
    * Add tested mnemonic generation
    * implementing Apollo with minimal test coverage.
    * fix test.
    * remove unused variable.
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    elribonazo committed May 2, 2024
    Copy the full SHA
    ee56adb View commit details
  3. feat(Castor) Implement All castor interface except for signature veri…

    …fication. (#5)
    
    * Add tested mnemonic generation
    * implementing Apollo with minimal test coverage.
    * Port Amtlr grammar.
    * Add prism generated code protos, ported to typescript.
    * Improve sha256 depencency for a more light weight fully compatible impl.
    * Implement Dependency free peer did creation and resolution.
    * Implement testing for PrismDID Resolution and fix tests.
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    elribonazo committed May 2, 2024
    Copy the full SHA
    cf80967 View commit details
  4. ci: add CI, semantic-release and pr-lint (#7)

    Co-authored-by: Ribó <elribonazo@gmail.com>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk and elribonazo committed May 2, 2024
    Copy the full SHA
    13c6c1a View commit details
  5. feat(testing): Add Karma testing for browser (#9)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    elribonazo committed May 2, 2024
    Copy the full SHA
    d0d2117 View commit details
  6. ci: changes to npm (#10)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk authored and elribonazo committed May 2, 2024
    Copy the full SHA
    566c15e View commit details
  7. feat(examples): initial examples setup + build config update (#8)

    Co-authored-by: Ribó <elribonazo@gmail.com>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 and elribonazo committed May 2, 2024
    Copy the full SHA
    856ad06 View commit details
  8. feat(apollo): Implementing PeerDID ED25519 and X25519 algorithms for …

    …KeyAgreement and Authentication. (#13)
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    elribonazo committed May 2, 2024
    Copy the full SHA
    256ea6f View commit details
  9. feat(Pollux): Implementing Pollux.parseVerifiableCredential with tests (

    #4)
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    curtis-h authored and elribonazo committed May 2, 2024
    Copy the full SHA
    2b1521b View commit details
  10. fix(apollo): throw error when signing with x25519 (#16)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    5a4e0d1 View commit details
  11. fix(apollo): fix typo in public method (#15)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    d7f09d9 View commit details
  12. feat: ATL 3641 - Pluto in wallet implementation (#17)

    Co-authored-by: Allain Magyar <allain.magyar@iohk.io>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    2 people authored and elribonazo committed May 2, 2024
    Copy the full SHA
    56fd32b View commit details
  13. feat(examples): add browser sdk integration example - keys and dids (#14

    )
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    45bba1a View commit details
  14. docs: Update README - initial version (#19)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    808b33e View commit details
  15. feat(agent): Implement agent with basic mediation protocol, with exam…

    …ples (#23)
    
    Co-authored-by: Curtish <ch@curtish.me>
    Co-authored-by: Ianos <ianos.dorultan@iohk.io>
    Co-authored-by: Milos Dzepina <milos.dzepina@iohk.io>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    4 people committed May 2, 2024
    Copy the full SHA
    a64f779 View commit details
  16. docs: Apollo usage tutorial (#20)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    37d745d View commit details
  17. docs: Castor usage tutorial (#21)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    e01b835 View commit details
  18. feat: Pluto typeorm migration. (#22)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    2640a6c View commit details
  19. fix(pluto): usage on agent & other minor updates (#27)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    2705262 View commit details
  20. docs: add docusaurus integration (#28)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    abalias authored and elribonazo committed May 2, 2024
    Copy the full SHA
    ce1d51d View commit details
  21. docs: Pluto usage tutorial (#25)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    52b5a44 View commit details
  22. docs: Agent module usage tutorial (#26)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    3111f60 View commit details
  23. docs: update docusaurus sidebar

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    Anton Baliasnikov authored and elribonazo committed May 2, 2024
    Copy the full SHA
    6ef32c9 View commit details
  24. feat(examples): adding agent control buttons to browser demo (#24)

    Co-authored-by: Ribó <elribonazo@gmail.com>
    Co-authored-by: Ianos <ianos.dorultan@iohk.io>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    3 people committed May 2, 2024
    Copy the full SHA
    5a0fa86 View commit details
  25. fix: browser webpack issue (#29)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    e332996 View commit details
  26. fix: Browser webpack issue (#30)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    47689e2 View commit details
  27. fix: react-native-sqlite-storage complain (#32)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    1419272 View commit details
  28. fix: Webpack dev server infinite loop (#33)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    48c2ea1 View commit details
  29. docs: Update docs (#35)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    7cd7f8c View commit details
  30. fix: pluto table recreate attempt (#34)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    624b302 View commit details
  31. feat(agent): Implementing DIDComm V2 Protocols + Demo showcasing (#36)

    Co-authored-by: Curtish <ch@curtish.me>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    elribonazo and curtis-h committed May 2, 2024
    Copy the full SHA
    36e5efe View commit details
  32. chore: removes duplicated readme.md file (#31)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk authored and elribonazo committed May 2, 2024
    Copy the full SHA
    e24dd07 View commit details
  33. ci: add semantic-release

    BREAKING CHANGE: release Atala V2
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk authored and elribonazo committed May 2, 2024
    Copy the full SHA
    1048eb7 View commit details
  34. ci: fix from yarn to npm (#38)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk authored and elribonazo committed May 2, 2024
    Copy the full SHA
    3169698 View commit details
  35. chore(release): release 2.0.0

    # [2.0.0](v1.0.0...v2.0.0) (2023-03-28)
    
    ### Bug Fixes
    
    * **apollo:** fix typo in public method ([#15](#15)) ([59cd862](59cd862))
    * **apollo:** throw error when signing with x25519 ([#16](#16)) ([6371d27](6371d27))
    * browser webpack issue ([#29](#29)) ([02d186e](02d186e))
    * Browser webpack issue ([#30](#30)) ([8c59450](8c59450))
    * pluto table recreate attempt ([#34](#34)) ([3a011cb](3a011cb))
    * **pluto:** usage on agent & other minor updates ([#27](#27)) ([2a18d14](2a18d14))
    * react-native-sqlite-storage complain ([#32](#32)) ([9ca0ad3](9ca0ad3))
    * Webpack dev server infinite loop ([#33](#33)) ([94eb991](94eb991))
    
    ### Continuous Integration
    
    * add semantic-release ([617c64a](617c64a))
    
    ### Features
    
    * **agent:** Implement agent with basic mediation protocol, with examples ([#23](#23)) ([b0104b2](b0104b2))
    * **agent:** Implementing DIDComm V2 Protocols + Demo showcasing ([#36](#36)) ([515d835](515d835))
    * **apollo:** Implementing PeerDID ED25519 and X25519 algorithms for KeyAgreement and Authentication. ([#13](#13)) ([f6eabef](f6eabef))
    * ATL 3641 - Pluto in wallet implementation ([#17](#17)) ([54579e5](54579e5))
    * **examples:** add browser sdk integration example - keys and dids ([#14](#14)) ([4cd0e75](4cd0e75))
    * **examples:** adding agent control buttons to browser demo ([#24](#24)) ([696309d](696309d))
    * **examples:** initial examples setup + build config update ([#8](#8)) ([0b6ec28](0b6ec28))
    * Pluto typeorm migration. ([#22](#22)) ([6107ef2](6107ef2))
    * **Pollux:** Implementing Pollux.parseVerifiableCredential with tests ([#4](#4)) ([da05e65](da05e65))
    * **testing:** Add Karma testing for browser ([#9](#9)) ([b15f148](b15f148))
    
    ### BREAKING CHANGES
    
    * release Atala V2
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    atala-dev authored and elribonazo committed May 2, 2024
    Copy the full SHA
    472e450 View commit details
  36. fix: typeorm cleanup (#40)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    igdev0 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    aff7000 View commit details
  37. fix: move required libs to dependencies instead of devDependencies (#39)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    milosh86 authored and elribonazo committed May 2, 2024
    Copy the full SHA
    f8b7c38 View commit details
  38. ci: fix deploy npm package release (#41)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk authored and elribonazo committed May 2, 2024
    Copy the full SHA
    a656284 View commit details
  39. ci: add npm build step (#42)

    Co-authored-by: Ianos <ianos.dorultan@iohk.io>
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    2 people authored and elribonazo committed May 2, 2024
    Copy the full SHA
    58b3ea4 View commit details
  40. fix: parse timestamp to date (#43)

    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    amagyar-iohk authored and elribonazo committed May 2, 2024
    Copy the full SHA
    882ef4d View commit details
  41. chore(release): release 2.0.0

    # [2.0.0](v1.0.0...v2.0.0) (2023-04-04)
    
    ### Bug Fixes
    
    * **apollo:** fix typo in public method ([#15](#15)) ([59cd862](59cd862))
    * **apollo:** throw error when signing with x25519 ([#16](#16)) ([6371d27](6371d27))
    * browser webpack issue ([#29](#29)) ([02d186e](02d186e))
    * Browser webpack issue ([#30](#30)) ([8c59450](8c59450))
    * move required libs to dependencies instead of devDependencies ([#39](#39)) ([7a7716f](7a7716f))
    * parse timestamp to date ([#43](#43)) ([0eb0cc6](0eb0cc6))
    * pluto table recreate attempt ([#34](#34)) ([3a011cb](3a011cb))
    * **pluto:** usage on agent & other minor updates ([#27](#27)) ([2a18d14](2a18d14))
    * react-native-sqlite-storage complain ([#32](#32)) ([9ca0ad3](9ca0ad3))
    * typeorm cleanup ([#40](#40)) ([f8765a9](f8765a9))
    * Webpack dev server infinite loop ([#33](#33)) ([94eb991](94eb991))
    
    ### Continuous Integration
    
    * add semantic-release ([617c64a](617c64a))
    
    ### Features
    
    * **agent:** Implement agent with basic mediation protocol, with examples ([#23](#23)) ([b0104b2](b0104b2))
    * **agent:** Implementing DIDComm V2 Protocols + Demo showcasing ([#36](#36)) ([515d835](515d835))
    * **apollo:** Implementing PeerDID ED25519 and X25519 algorithms for KeyAgreement and Authentication. ([#13](#13)) ([f6eabef](f6eabef))
    * ATL 3641 - Pluto in wallet implementation ([#17](#17)) ([54579e5](54579e5))
    * **examples:** add browser sdk integration example - keys and dids ([#14](#14)) ([4cd0e75](4cd0e75))
    * **examples:** adding agent control buttons to browser demo ([#24](#24)) ([696309d](696309d))
    * **examples:** initial examples setup + build config update ([#8](#8)) ([0b6ec28](0b6ec28))
    * Pluto typeorm migration. ([#22](#22)) ([6107ef2](6107ef2))
    * **Pollux:** Implementing Pollux.parseVerifiableCredential with tests ([#4](#4)) ([da05e65](da05e65))
    * **testing:** Add Karma testing for browser ([#9](#9)) ([b15f148](b15f148))
    
    ### BREAKING CHANGES
    
    * release Atala V2
    
    Signed-off-by: Francisco Javier Ribó Labrador <elribonazo@gmail.com>
    atala-dev authored and elribonazo committed May 2, 2024
    Copy the full SHA
    c583b37 View commit details
Showing with 42,468 additions and 6,666 deletions.
  1. +0 −45 .babelrc.js
  2. +2 −0 .eslintignore
  3. +40 −0 .eslintrc
  4. +0 −116 .eslintrc.js
  5. +15 −0 .github/pull_request_template.md
  6. +44 −0 .github/workflows/ci.yml
  7. +13 −0 .github/workflows/lint-pr.yml
  8. +53 −0 .github/workflows/release.yml
  9. +18 −90 .gitignore
  10. +34 −5 .npmignore
  11. +25 −0 .releaserc.yml
  12. +0 −3 .vscode/extensions.json
  13. +11 −13 .vscode/launch.json
  14. +13 −12 .vscode/settings.json
  15. +40 −0 CHANGELOG.md
  16. +101 −0 README.md
  17. +0 −18 apollo/Apollo.d.ts
  18. +143 −56 apollo/Apollo.ts
  19. +56 −0 apollo/models/OctetKeyPair.ts
  20. +7 −0 apollo/utils/Ed25519KeyCommon.ts
  21. +44 −0 apollo/utils/Ed25519KeyPair.ts
  22. +24 −0 apollo/utils/Ed25519PrivateKey.ts
  23. +29 −0 apollo/utils/Ed25519PublicKey.ts
  24. +7 −0 apollo/utils/Secp256k1KeyCommon.ts
  25. +32 −0 apollo/utils/Secp256k1KeyPair.ts
  26. +55 −0 apollo/utils/Secp256k1PrivateKey.ts
  27. +138 −0 apollo/utils/Secp256k1PublicKey.ts
  28. +6 −0 apollo/utils/X25519KeyCommon.ts
  29. +34 −0 apollo/utils/X25519KeyPair.ts
  30. +11 −0 apollo/utils/X25519PrivateKey.ts
  31. +11 −0 apollo/utils/X25519PublicKey.ts
  32. +8 −0 apollo/utils/bn/BNHelper.ts
  33. +42 −0 apollo/utils/derivation/DerivationAxis.ts
  34. +50 −0 apollo/utils/derivation/DerivationPath.ts
  35. +44 −0 apollo/utils/derivation/ExtendedKey.ts
  36. +15 −0 apollo/utils/derivation/KeyDerivation.ts
  37. +14 −0 apollo/utils/ec/ECCoordinate.ts
  38. +17 −0 apollo/utils/ec/ECPoint.ts
  39. +95 −0 apollo/utils/jwt/JWT.ts
  40. +19 −0 babel.config.js
  41. +0 −9 castor/Castor.d.ts
  42. +226 −11 castor/Castor.ts
  43. +24 −0 castor/did/prismDID/LongFormPrismDID.ts
  44. +29 −0 castor/did/prismDID/PrismDIDMethodId.ts
  45. +157 −0 castor/did/prismDID/PrismDIDPublicKey.ts
  46. +34 −0 castor/parser/DIDAbnf.g4
  47. +33 −0 castor/parser/DIDAbnf.interp
  48. +14 −0 castor/parser/DIDAbnf.tokens
  49. +49 −0 castor/parser/DIDAbnfLexer.interp
  50. +14 −0 castor/parser/DIDAbnfLexer.tokens
  51. +155 −0 castor/parser/DIDAbnfLexer.ts
  52. +61 −0 castor/parser/DIDAbnfListener.ts
  53. +505 −0 castor/parser/DIDAbnfParser.ts
  54. +54 −0 castor/parser/DIDParser.ts
  55. +62 −0 castor/parser/DIDUrlAbnf.g4
  56. +53 −0 castor/parser/DIDUrlAbnf.interp
  57. +26 −0 castor/parser/DIDUrlAbnf.tokens
  58. +69 −0 castor/parser/DIDUrlAbnfLexer.interp
  59. +26 −0 castor/parser/DIDUrlAbnfLexer.tokens
  60. +146 −0 castor/parser/DIDUrlAbnfLexer.ts
  61. +133 −0 castor/parser/DIDUrlAbnfListener.ts
  62. +899 −0 castor/parser/DIDUrlAbnfParser.ts
  63. +77 −0 castor/parser/DIDUrlParser.ts
  64. +25 −0 castor/parser/ErrorStrategy.ts
  65. +107 −0 castor/protos/common_models.proto
  66. +548 −0 castor/protos/common_models.ts
  67. +181 −0 castor/protos/common_models_pb.d.ts
  68. +98 −0 castor/protos/google/protobuf/timestamp.ts
  69. +284 −0 castor/protos/node_models.proto
  70. +3,450 −0 castor/protos/node_models.ts
  71. +990 −0 castor/protos/node_models_pb.d.ts
  72. +144 −0 castor/resolver/LongFormPrismDIDResolver.ts
  73. +244 −0 castor/resolver/PeerDIDResolver.ts
  74. +17 −0 castor/types/index.ts
  75. +24 −0 config/ECConfig.ts
  76. +0 −27 config/base.js
  77. +0 −4 config/browser/rollup.cjs.js
  78. +0 −4 config/browser/rollup.es.js
  79. +0 −4 config/node/rollup.cjs.js
  80. +0 −4 config/node/rollup.es.js
  81. +4 −0 demos/browser/App.css
  82. +550 −0 demos/browser/App.tsx
  83. +17 −0 demos/browser/Box.tsx
  84. +5 −0 demos/browser/Spacer.tsx
  85. +6 −0 demos/browser/state.ts
  86. +6 −0 demos/browser/utils.ts
  87. +51 −0 demos/createTestScenario.ts
  88. +23 −0 demos/test-browser.tsx
  89. +20 −0 demos/test-node.ts
  90. +154 −0 docs/Agent.md
  91. +93 −0 docs/Apollo.md
  92. +108 −0 docs/Castor.md
  93. +160 −0 docs/Pluto.md
  94. +21 −0 docs/index.md
  95. +30 −0 docs/sidebars.js
  96. +0 −16 domain/buildingBlocks/Apollo.d.ts
  97. +23 −8 domain/buildingBlocks/Apollo.ts
  98. +0 −8 domain/buildingBlocks/Castor.d.ts
  99. +16 −5 domain/buildingBlocks/Castor.ts
  100. +0 −7 domain/buildingBlocks/Mercury.d.ts
  101. +4 −4 domain/buildingBlocks/Mercury.ts
  102. +0 −40 domain/buildingBlocks/Pluto.d.ts
  103. +43 −45 domain/buildingBlocks/Pluto.ts
  104. +0 −4 domain/buildingBlocks/Pollux.d.ts
  105. +1 −3 domain/buildingBlocks/Pollux.ts
  106. +0 −6 domain/index.d.ts
  107. +17 −0 domain/models/Api.ts
  108. 0 domain/models/Connection.ts
  109. +0 −11 domain/models/DID.d.ts
  110. +16 −20 domain/models/DID.ts
  111. +0 −71 domain/models/DIDDocument.d.ts
  112. +65 −21 domain/models/DIDDocument.ts
  113. +0 −7 domain/models/DIDPair.d.ts
  114. +3 −3 domain/models/DIDPair.ts
  115. +6 −0 domain/models/DIDResolver.ts
  116. +0 −12 domain/models/DIDUrl.d.ts
  117. +4 −2 domain/models/DIDUrl.ts
  118. +0 −7 domain/models/Errors.d.ts
  119. +8 −8 domain/models/Errors.ts
  120. +74 −0 domain/models/JWTVerifiableCredential.ts
  121. +0 −10 domain/models/KeyCurve.d.ts
  122. +7 −5 domain/models/KeyCurve.ts
  123. +0 −8 domain/models/KeyPair.d.ts
  124. +0 −8 domain/models/Mediator.d.ts
  125. +4 −8 domain/models/Mediator.ts
  126. +0 −23 domain/models/Message.d.ts
  127. +127 −21 domain/models/Message.ts
  128. +0 −35 domain/models/MessageAttachment.d.ts
  129. +38 −20 domain/models/MessageAttachment.ts
  130. +0 −7 domain/models/PeerDID.d.ts
  131. +0 −7 domain/models/PrismDIDInfo.d.ts
  132. +1 −1 domain/models/PrismDIDInfo.ts
  133. +29 −0 domain/models/PrismDIDMethodId.ts
  134. +0 −5 domain/models/PrivateKey.d.ts
  135. +1 −1 domain/models/PrivateKey.ts
  136. +0 −9 domain/models/PublicKey.d.ts
  137. +2 −2 domain/models/PublicKey.ts
  138. +0 −3 domain/models/Seed.d.ts
  139. +1 −1 domain/models/Seed.ts
  140. +0 −6 domain/models/SeedWords.d.ts
  141. +0 −3 domain/models/Signature.d.ts
  142. +0 −31 domain/models/VerifiableCredential.d.ts
  143. +27 −26 domain/models/VerifiableCredential.ts
  144. +0 −26 domain/models/WordList.d.ts
  145. +0 −48 domain/models/errors/Agent.d.ts
  146. +88 −4 domain/models/errors/Agent.ts
  147. +5 −0 domain/models/errors/Api.ts
  148. +0 −9 domain/models/errors/Apollo.d.ts
  149. +20 −2 domain/models/errors/Apollo.ts
  150. +0 −27 domain/models/errors/Castor.d.ts
  151. +6 −2 domain/models/errors/Castor.ts
  152. +0 −3 domain/models/errors/Common.d.ts
  153. +5 −0 domain/models/errors/Connection.ts
  154. +0 −35 domain/models/errors/Mercury.d.ts
  155. +12 −0 domain/models/errors/Mercury.ts
  156. +20 −0 domain/models/errors/Mnemonic.ts
  157. +0 −18 domain/models/errors/Pluto.d.ts
  158. +0 −4 domain/models/errors/Pollux.d.ts
  159. +0 −11 domain/models/index.d.ts
  160. +21 −11 domain/models/index.ts
  161. +0 −7 index.d.ts
  162. +12 −6 index.ts
  163. +18 −0 mercury/DIDCommProtocol.ts
  164. +0 −8 mercury/Mercury.d.ts
  165. +136 −10 mercury/Mercury.ts
  166. +77 −0 mercury/didcomm/DIDResolver.ts
  167. +87 −0 mercury/didcomm/SecretsResolver.ts
  168. +246 −0 mercury/didcomm/Wrapper.ts
  169. +29 −0 mercury/forward/ForwardMessage.ts
  170. +5 −0 mercury/helpers/MediaType.ts
  171. +21,892 −0 package-lock.json
  172. +131 −77 package.json
  173. +80 −0 peer-did/PeerDID.ts
  174. +156 −0 peer-did/PeerDIDCreate.ts
  175. +63 −0 peer-did/helpers/JWKHelper.ts
  176. +36 −0 peer-did/helpers/Multicodec.ts
  177. +134 −0 peer-did/helpers/VarInt.ts
  178. +133 −0 peer-did/types.ts
  179. +0 −41 pluto/Pluto.d.ts
  180. +587 −70 pluto/Pluto.ts
  181. +18 −0 pluto/entities/DID.ts
  182. +16 −0 pluto/entities/DIDPair.ts
  183. +16 −0 pluto/entities/Mediator.ts
  184. +28 −0 pluto/entities/Message.ts
  185. +19 −0 pluto/entities/PrivateKey.ts
  186. +23 −0 pluto/entities/VerifiableCredential.ts
  187. +8 −0 pluto/entities/index.ts
  188. +0 −8 pollux/Pollux.d.ts
  189. +25 −6 pollux/Pollux.ts
  190. +22 −0 pollux/models/JWTCredential.ts
  191. 0 pollux/models/JWTPresentation.ts
  192. +218 −0 prism-agent/Agent.Credentials.ts
  193. +110 −0 prism-agent/Agent.DIDHigherFunctions.ts
  194. +118 −0 prism-agent/Agent.Invitations.ts
  195. +33 −0 prism-agent/Agent.MessageEvents.ts
  196. +262 −0 prism-agent/Agent.ts
  197. +0 −2 prism-agent/agent.d.ts
  198. +0 −1 prism-agent/agent.ts
  199. +140 −0 prism-agent/connectionsManager/ConnectionsManager.ts
  200. +66 −0 prism-agent/helpers/ApiImpl.ts
  201. +9 −0 prism-agent/helpers/HttpError.ts
  202. +307 −0 prism-agent/helpers/ProtocolHelpers.ts
  203. +57 −0 prism-agent/helpers/Task.ts
  204. +130 −0 prism-agent/mediator/BasicMediatorHandler.ts
  205. +20 −0 prism-agent/mediator/PlutoMediatorStore.ts
  206. +33 −0 prism-agent/protocols/ProtocolTypes.ts
  207. +29 −0 prism-agent/protocols/connection/DIDCommConnectionRunner.ts
  208. +114 −0 prism-agent/protocols/connection/HandshakeRequest.ts
  209. +64 −0 prism-agent/protocols/invitation/v2/DIDCommInvitationRunner.ts
  210. +12 −0 prism-agent/protocols/invitation/v2/InvitationRunner.ts
  211. +58 −0 prism-agent/protocols/invitation/v2/OutOfBandInvitation.ts
  212. +24 −0 prism-agent/protocols/invitation/v2/OutOfBandParser.ts
  213. +13 −0 prism-agent/protocols/issueCredential/ClaimRequestSignatureJWT.ts
  214. +4 −0 prism-agent/protocols/issueCredential/CredentialFormat.ts
  215. +24 −0 prism-agent/protocols/issueCredential/CredentialPreview.ts
  216. +130 −0 prism-agent/protocols/issueCredential/IssueCredential.ts
  217. +127 −0 prism-agent/protocols/issueCredential/OfferCredential.ts
  218. +100 −0 prism-agent/protocols/issueCredential/ProposeCredential.ts
  219. +93 −0 prism-agent/protocols/issueCredential/RequestCredential.ts
  220. +25 −0 prism-agent/protocols/mediation/MediationGrant.ts
  221. +37 −0 prism-agent/protocols/mediation/MediationKeysUpdateList.ts
  222. +29 −0 prism-agent/protocols/mediation/MediationRequest.ts
  223. +41 −0 prism-agent/protocols/other/BasicMessage.ts
  224. +26 −0 prism-agent/protocols/pickup/PickupReceived.ts
  225. +26 −0 prism-agent/protocols/pickup/PickupRequest.ts
  226. +67 −0 prism-agent/protocols/pickup/PickupRunner.ts
  227. +32 −0 prism-agent/protocols/prismOnboarding/PrismOnboardingInvitation.ts
  228. +90 −0 prism-agent/protocols/proofPresentation/Presentation.ts
  229. +91 −0 prism-agent/protocols/proofPresentation/ProposePresentation.ts
  230. +91 −0 prism-agent/protocols/proofPresentation/RequestPresentation.ts
  231. +87 −0 prism-agent/protocols/types.ts
  232. +150 −0 prism-agent/types/index.ts
  233. +0 −1 readme.md
  234. +22 −0 scripts/typeorm-cleanup.sh
  235. +0 −7 tests/Default.test.ts
  236. +13 −0 tests/agent/helpers/DID.ts
  237. +44 −0 tests/agent/mocks/MercuryMock.ts
  238. +65 −0 tests/agent/protocols/connection/HandShakeRequest.test.ts
  239. +30 −0 tests/agent/protocols/invitation/v2/DIDCommInvitationRunner.test.ts
  240. +106 −0 tests/agent/protocols/issueCredential/IssueCredential.test.ts
  241. +60 −0 tests/agent/protocols/issueCredential/OfferCredential.test.ts
  242. +50 −0 tests/agent/protocols/issueCredential/ProposeCredential.test.ts
  243. +43 −0 tests/agent/protocols/issueCredential/RequestCredential.test.ts
  244. +80 −0 tests/agent/protocols/pickup/PickupRunner.test.ts
  245. +36 −0 tests/agent/protocols/prismOnboarding/PrismOnboardingInvitation.test.ts
  246. +37 −0 tests/agent/protocols/proofPresentation/Presentation.test.ts
  247. +78 −0 tests/agent/protocols/proofPresentation/ProposePresentation.test.ts
  248. +78 −0 tests/agent/protocols/proofPresentation/RequestPresentation.test.ts
  249. +234 −0 tests/apollo/Apollo.test.ts
  250. +151 −0 tests/apollo/derivation/BipVectors.ts
  251. +73 −0 tests/castor/DIDParser.test.ts
  252. +55 −0 tests/castor/DIDUrlParser.test.ts
  253. +222 −0 tests/castor/PeerDID.test.ts
  254. +89 −0 tests/castor/PrismDID.test.ts
  255. +254 −0 tests/mercury/Mercury.test.ts
  256. +84 −0 tests/mercury/didcomm/DIDResolver.test.ts
  257. +188 −0 tests/mercury/didcomm/SecretsResolver.test.ts
  258. +645 −0 tests/pluto/Pluto.test.ts
  259. +173 −0 tests/pollux/Pollux.test.ts
  260. +0 −25 tsconfig-base.json
  261. +39 −28 tsconfig.json
  262. +0 −73 webpack.config.js
  263. +144 −0 webpack/webpack.browser.conf.js
  264. +81 −0 webpack/webpack.node.conf.js
  265. +0 −5,127 yarn.lock
45 changes: 0 additions & 45 deletions .babelrc.js

This file was deleted.

2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/*
/**/*.d.ts
40 changes: 40 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"ignorePatterns": ["castor/parser", "castor/protos", "webpack", "scripts"],
"plugins": ["@typescript-eslint", "react"],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended"
],
"rules": {
"comma-dangle": 0,
"no-unexpected-multiline": "warn",
"prefer-const": "warn",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn"]
},
"settings": {
"react": {
"version": "detect"
}
},
"env": {
"browser": true,
"node": true,
"jasmine": true,
"jest": true,
"es2021": true
}
}
116 changes: 0 additions & 116 deletions .eslintrc.js

This file was deleted.

15 changes: 15 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Description
<!-- What this PR does, and why is needed, a useful description is expected -->


# Jira link
<!-- Please add Jira ticket -->


# Checklist
<!-- Details you need to consider that are commonly forgotten -->
<!-- Pre-submit checklist should be marked as completed when PR moves out from DRAFT -->
- [ ] Self-reviewed the diff
- [ ] New code has inline documentation
- [ ] New code has proper comments/tests
- [ ] Any changes not covered by tests have been tested manually
44 changes: 44 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Continuous integration

concurrency:
group: ${{ github.head_ref }}${{ github.ref }}-wallet-sdk
cancel-in-progress: true
on:
pull_request:
push:
branches:
- "master"

defaults:
run:
shell: bash

jobs:
build-and-test:
name: Build and test
runs-on: ubuntu-latest
env:
NODE_AUTH_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
scope: "@input-output-hk"
registry-url: "https://npm.pkg.github.com"

- name: Install
run: npm install

- name: Eslint
run: npx eslint .

- name: Build
run: npm run build

- name: Tests with Code Coverage
run: npm run coverage
13 changes: 13 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Pull request linter"

on:
pull_request:

jobs:
lint_pr:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
53 changes: 53 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Release wallet-sdk-ts

on:
workflow_dispatch:

jobs:
release:
env:
GITHUB_ACTOR: ${{ secrets.ATALA_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
ATALA_GITHUB_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
NODE_AUTH_TOKEN: ${{ secrets.ATALA_GITHUB_TOKEN }}

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "lts/*"
registry-url: https://npm.pkg.github.com/
scope: "@input-output-hk"

- name: Install dependencies
run: npm install

- name: Build project
run: npm run build

- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true

- name: Release
env:
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }}
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
run: |
npm install
npx semantic-release
- name: Publish artifact
run: npm publish
Loading