File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ final class PresentationExchangeFlowTests: XCTestCase {
109
109
110
110
logger. info ( " Creating presentation request " )
111
111
let message = try edgeAgent. initiatePresentationRequest (
112
- type: . jwt ,
112
+ type: . sdjwt ,
113
113
fromDID: DID ( method: " test " , methodId: " alice " ) ,
114
114
toDID: DID ( method: " test " , methodId: " bob " ) ,
115
115
claimFilters: [
@@ -152,7 +152,8 @@ final class PresentationExchangeFlowTests: XCTestCase {
152
152
)
153
153
154
154
guard
155
- let key = try await edgeAgent. pluto. getDIDPrivateKeys ( did: issuerDID) . first ( ) . await ( ) ? . first,
155
+ let key = try await edgeAgent. pluto. getDIDPrivateKeys ( did: issuerDID) . first ( ) . await ( ) ? . first ( where: { $0. identifier. contains ( " authentication0 " )
156
+ } ) ,
156
157
let jwkD = try await edgeAgent. apollo. restorePrivateKey ( key) . exporting? . jwk
157
158
else {
158
159
XCTFail ( )
@@ -167,7 +168,8 @@ final class PresentationExchangeFlowTests: XCTestCase {
167
168
168
169
private func makeCredentialSDJWT( issuerDID: DID , subjectDID: DID ) async throws -> String {
169
170
guard
170
- let key = try await edgeAgent. pluto. getDIDPrivateKeys ( did: issuerDID) . first ( ) . await ( ) ? . first,
171
+ let key = try await edgeAgent. pluto. getDIDPrivateKeys ( did: issuerDID) . first ( ) . await ( ) ? . first ( where: { $0. identifier. contains ( " authentication0 " )
172
+ } ) ,
171
173
let jwkD = try await edgeAgent. apollo. restorePrivateKey ( key) . exporting? . jwk
172
174
else {
173
175
XCTFail ( )
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ extension PolluxImpl {
114
114
)
115
115
}
116
116
let presentationDefinition = PresentationDefinition (
117
- format: . init( sdJwt: . init( alg: [ . ES256K] ) ) ,
117
+ format: . init( sdJwt: . init( alg: [ . EdDSA , . ES256K] ) ) ,
118
118
inputDescriptors: descriptors
119
119
)
120
120
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ echo "Cleaning lcov partials directory"
20
20
rm -rf " $LCOV_DIR "
21
21
mkdir " $LCOV_DIR "
22
22
23
+ set -euo pipefail
24
+
23
25
# Run build and test
24
26
echo " Running build and test"
25
27
xcodebuild -scheme " EdgeAgentSDK-Package" \
You can’t perform that action at this time.
0 commit comments