From a5efa9e5bd68accac2a81669676810724780d02e Mon Sep 17 00:00:00 2001 From: Bibash Shrestha Date: Tue, 5 Sep 2023 13:54:13 +0545 Subject: [PATCH] feat: Replacing HEDERA naming by GREENCYPHER #1871 --- lib/app/shared/enum/type/oidc4vc_type.dart | 10 +++++----- lib/app/shared/helper_functions/helper_functions.dart | 6 +++--- .../qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart | 2 +- lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/app/shared/enum/type/oidc4vc_type.dart b/lib/app/shared/enum/type/oidc4vc_type.dart index ab47986ed..4424c00ea 100644 --- a/lib/app/shared/enum/type/oidc4vc_type.dart +++ b/lib/app/shared/enum/type/oidc4vc_type.dart @@ -26,7 +26,7 @@ enum OIDC4VCType { publicJWKNeeded: false, ), - HEDERA( + GREENCYPHER( issuerVcType: 'jwt_vc', verifierVpType: 'jwt_vp', offerPrefix: 'openid-credential-offer-hedera://', @@ -87,8 +87,8 @@ extension OIDC4VCTypeX on OIDC4VCType { return 'EBSI-V2'; case OIDC4VCType.EBSIV3: return 'EBSI-V3'; - case OIDC4VCType.HEDERA: - return 'HEDERA'; + case OIDC4VCType.GREENCYPHER: + return 'GREENCYPHER'; case OIDC4VCType.JWTVC: return 'JWT-VC'; } @@ -98,7 +98,7 @@ extension OIDC4VCTypeX on OIDC4VCType { switch (this) { case OIDC4VCType.DEFAULT: case OIDC4VCType.GAIAX: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.JWTVC: return 1; case OIDC4VCType.EBSIV2: @@ -113,7 +113,7 @@ extension OIDC4VCTypeX on OIDC4VCType { case OIDC4VCType.DEFAULT: case OIDC4VCType.EBSIV2: case OIDC4VCType.GAIAX: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.EBSIV3: return true; case OIDC4VCType.JWTVC: diff --git a/lib/app/shared/helper_functions/helper_functions.dart b/lib/app/shared/helper_functions/helper_functions.dart index fc9655268..232be4c61 100644 --- a/lib/app/shared/helper_functions/helper_functions.dart +++ b/lib/app/shared/helper_functions/helper_functions.dart @@ -371,7 +371,7 @@ Future<(String, String)> getDidAndKid({ switch (oidc4vcType) { case OIDC4VCType.DEFAULT: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.GAIAX: const didMethod = AltMeStrings.defaultDIDMethod; did = didKitProvider!.keyToDID(didMethod, privateKey); @@ -506,7 +506,7 @@ Future getHost({ switch (currentOIIDC4VCTypeForIssuance) { case OIDC4VCType.DEFAULT: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.EBSIV3: final dynamic credentialOfferJson = await getCredentialOfferJson( scannedResponse: uri.toString(), @@ -561,7 +561,7 @@ Future<(String?, String)> getIssuerAndPreAuthorizedCode({ switch (oidc4vcType) { case OIDC4VCType.DEFAULT: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.EBSIV3: final dynamic credentialOfferJson = await getCredentialOfferJson( scannedResponse: scannedResponse, diff --git a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart index e3f0759da..515716f7d 100644 --- a/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart +++ b/lib/dashboard/qr_code/qr_code_scan/cubit/qr_code_scan_cubit.dart @@ -499,7 +499,7 @@ class QRCodeScanCubit extends Cubit { }) async { switch (currentOIIDC4VCType) { case OIDC4VCType.DEFAULT: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.EBSIV3: final dynamic credentialOfferJson = await getCredentialOfferJson( scannedResponse: scannedResponse, diff --git a/lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart b/lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart index 92bc2dec7..858972135 100644 --- a/lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart +++ b/lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart @@ -26,7 +26,7 @@ Future initiateOIDC4VCCredentialIssuance({ switch (oidc4vcType) { case OIDC4VCType.DEFAULT: - case OIDC4VCType.HEDERA: + case OIDC4VCType.GREENCYPHER: case OIDC4VCType.EBSIV3: final dynamic credentialOfferJson = await getCredentialOfferJson( scannedResponse: scannedResponse,