-
Notifications
You must be signed in to change notification settings - Fork 172
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
[Core] Feature/#263 add SocketAuthenicator and JWT #283
Conversation
fix codec tests
…V2 into #273-encryption-policies # Conflicts: # Sources/Chat/NetworkingInteractor.swift # Sources/Chat/Serializing.swift # Sources/WalletConnectKMS/Codec/ChaChaPolyCodec.swift # Sources/WalletConnectKMS/Crypto/CryptoKitWrapper/CryptoKitWrapper.swift # Sources/WalletConnectKMS/Crypto/KeyManagementService.swift # Sources/WalletConnectKMS/Serialiser/Serializer.swift # Sources/WalletConnectSign/NetworkInteractor/NetworkInteractor.swift # Sources/WalletConnectSign/Serializing.swift # Tests/IntegrationTests/SerialiserTests.swift # Tests/TestingUtils/Mocks/KeyManagementServiceMock.swift # Tests/WalletConnectSignTests/Mocks/SerializerMock.swift
3c1e052
to
a624076
Compare
@@ -0,0 +1,30 @@ | |||
import Foundation | |||
|
|||
struct JWT: Codable, Equatable { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be split to JWT and SignedJWT ?
public func sign(jwt: JWT, using jwtSigner: JWTSigning) throws -> SignedJWT
or something like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If so, no need to modify alg inside Header
. We could just recreate Header
enum Errors: Error { | ||
case invalidJWTString | ||
} | ||
var alg = "EdDSA" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why alg everywhere is internal var?
var sut: ED25519DIDKeyFactoryImpl! | ||
|
||
func test() { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
planning to implement?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
implemented but the factory itself is not implemented - scope of #288
* Add SerializationPolicy type * savepoint * savepoint * Add envelope * update serialize method * update envelope * handle envelope in Sign sdk * extract envelope to a new file * add getPublicKey method to kms * fix kms errors * fix kms tests * add kms tests scheme fix codec tests * fix serializer tests * update kms test, fix type 0 envelope key size issue * simplify serialiser, add envelope init * Fix envelope type, fix serialiser tests * remove debugging prints * update codec docs * remove unused error * remove unused error * move serializing protocol to serializer * prevent potential crash on envelope init * add serializing file * run lint * Add client auth core components * Add client auth mocks * Add signing private key * Add signing crypto kit wrapper * Add Socket Authenticator Test * update SocketAuthenticator * savepoint * savepoint * pass jwt test * extract jwt encoder * savepoint * update signer * fix tests * extract ED25519DIDKeyFactoryMock * clean up * remove commented code * run lint fix * change relay url * test * update relay url * test * test * revert * test * fix typo * savepoint * Update ED25519DIDKeyFactoryTests * update test
Adds SocketAuthenicator, JWT, JWT signer for client authentication on Iridium with unit tests for dependant components.
close #284
close #285
close #286
close #287