Skip to content

Commit

Permalink
Merge branch 'develop' into fix/linter_unused_cleanup
Browse files Browse the repository at this point in the history
# Conflicts:
#	lib/credential/libs/polygonidcore/pidcore_credential.dart
#	lib/iden3comm/domain/use_cases/fetch_onchain_claims_use_case.dart
#	lib/iden3comm/libs/polygonidcore/pidcore_iden3comm.dart
#	lib/sdk/di/injector.config.dart
  • Loading branch information
5eeman committed Nov 4, 2024
2 parents 2f9bef0 + e80513b commit 1821afe
Show file tree
Hide file tree
Showing 30 changed files with 849 additions and 641 deletions.
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ apply plugin: 'maven-publish'
// apply plugin: 'signing'

android {
compileSdkVersion 33
compileSdkVersion 34
ndkVersion "26.3.11579264"

compileOptions {
Expand Down
16 changes: 16 additions & 0 deletions android/src/main/jniLibs/arm64-v8a/libpolygonid.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,22 @@ typedef enum
{
PLGNSTATUSCODE_ERROR,
PLGNSTATUSCODE_NIL_POINTER,
// error extracting credential status from verifiable credential
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_EXTRACTION_ERROR,
// error resolving credential status (e.g. getting the status from chain of DHS)
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_RESOLVE_ERROR,
// error getting merkletree proof from credential status
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_MT_BUILD_ERROR,
// merkletree proof is invalid
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_MT_STATE_ERROR,
// credential is revoked
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_REVOKED_ERROR,
// the same as above but for issuer credential (for signature proofs)
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_EXTRACTION_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_RESOLVE_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_MT_BUILD_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_MT_STATE_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_REVOKED_ERROR,
} PLGNStatusCode;

typedef struct _PLGNStatus
Expand Down
Binary file modified android/src/main/jniLibs/arm64-v8a/libpolygonid.so
Binary file not shown.
24 changes: 20 additions & 4 deletions android/src/main/jniLibs/libpolygonid.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,30 @@ typedef struct { const char *p; ptrdiff_t n; } _GoString_;

typedef enum
{
PLGNSTATUSCODE_ERROR,
PLGNSTATUSCODE_NIL_POINTER,
PLGNSTATUSCODE_ERROR,
PLGNSTATUSCODE_NIL_POINTER,
// error extracting credential status from verifiable credential
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_EXTRACTION_ERROR,
// error resolving credential status (e.g. getting the status from chain of DHS)
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_RESOLVE_ERROR,
// error getting merkletree proof from credential status
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_MT_BUILD_ERROR,
// merkletree proof is invalid
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_MT_STATE_ERROR,
// credential is revoked
PLGNSTATUSCODE_USER_CREDENTIAL_STATUS_REVOKED_ERROR,
// the same as above but for issuer credential (for signature proofs)
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_EXTRACTION_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_RESOLVE_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_MT_BUILD_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_MT_STATE_ERROR,
PLGNSTATUSCODE_ISSUER_CREDENTIAL_STATUS_REVOKED_ERROR,
} PLGNStatusCode;

typedef struct _PLGNStatus
{
PLGNStatusCode status;
char *error_msg;
PLGNStatusCode status;
char *error_msg;
} PLGNStatus;

#line 1 "cgo-generated-wrapper"
Expand Down
Loading

0 comments on commit 1821afe

Please sign in to comment.