Skip to content

Commit

Permalink
feat: Replacing HEDERA naming by GREENCYPHER #1871
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Sep 5, 2023
1 parent be91b6c commit a5efa9e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions lib/app/shared/enum/type/oidc4vc_type.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum OIDC4VCType {
publicJWKNeeded: false,
),

HEDERA(
GREENCYPHER(
issuerVcType: 'jwt_vc',
verifierVpType: 'jwt_vp',
offerPrefix: 'openid-credential-offer-hedera://',
Expand Down Expand Up @@ -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';
}
Expand All @@ -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:
Expand All @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions lib/app/shared/helper_functions/helper_functions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -506,7 +506,7 @@ Future<String> getHost({
switch (currentOIIDC4VCTypeForIssuance) {
case OIDC4VCType.DEFAULT:
case OIDC4VCType.HEDERA:
case OIDC4VCType.GREENCYPHER:
case OIDC4VCType.EBSIV3:
final dynamic credentialOfferJson = await getCredentialOfferJson(
scannedResponse: uri.toString(),
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ class QRCodeScanCubit extends Cubit<QRCodeScanState> {
}) async {
switch (currentOIIDC4VCType) {
case OIDC4VCType.DEFAULT:
case OIDC4VCType.HEDERA:
case OIDC4VCType.GREENCYPHER:
case OIDC4VCType.EBSIV3:
final dynamic credentialOfferJson = await getCredentialOfferJson(
scannedResponse: scannedResponse,
Expand Down
2 changes: 1 addition & 1 deletion lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Future<void> initiateOIDC4VCCredentialIssuance({

switch (oidc4vcType) {
case OIDC4VCType.DEFAULT:
case OIDC4VCType.HEDERA:
case OIDC4VCType.GREENCYPHER:
case OIDC4VCType.EBSIV3:
final dynamic credentialOfferJson = await getCredentialOfferJson(
scannedResponse: scannedResponse,
Expand Down

0 comments on commit a5efa9e

Please sign in to comment.