Skip to content

Commit

Permalink
Removed witnesscalc.
Browse files Browse the repository at this point in the history
  • Loading branch information
5eeman committed Dec 3, 2024
1 parent 7a18ace commit 9b447a1
Show file tree
Hide file tree
Showing 45 changed files with 126 additions and 1,460 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>LibIden3.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>LibIden3</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>
</plist>
28 changes: 14 additions & 14 deletions Iden3CLibrary.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,54 +6,54 @@
<array>
<dict>
<key>BinaryPath</key>
<string>libpolygonid-ios-sim.a</string>
<string>libpolygonid-ios.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>libpolygonid-ios-sim.a</string>
<string>libpolygonid-ios.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libpolygonid-ios.a</string>
<string>libpolygonid-macos.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>macos-arm64</string>
<key>LibraryPath</key>
<string>libpolygonid-ios.a</string>
<string>libpolygonid-macos.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>macos</string>
</dict>
<dict>
<key>BinaryPath</key>
<string>libpolygonid-macos.a</string>
<string>libpolygonid-ios-sim.a</string>
<key>HeadersPath</key>
<string>Headers</string>
<key>LibraryIdentifier</key>
<string>macos-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>libpolygonid-macos.a</string>
<string>libpolygonid-ios-sim.a</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
70 changes: 0 additions & 70 deletions Iden3CLibrary.xcframework/ios-arm64/Headers/libpolygonid-prover.h

This file was deleted.

27 changes: 27 additions & 0 deletions Iden3CLibrary.xcframework/ios-arm64/Headers/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 Expand Up @@ -189,7 +205,13 @@ extern GoUint8 PLGNAtomicQueryV3OnChainInputs(char** jsonResponse, char* in, cha
//
extern GoUint8 PLGNALinkedMultiQueryInputs(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern void PLGNFreeStatus(PLGNStatus* status);

// Deprecated: Use PLGNCleanCache2 instead. We need to support consistent path
// to the cache directory. This function supposed the cache directory is empty
// and should be calculated based on user's $HOME directory.
//
extern GoUint8 PLGNCleanCache(PLGNStatus** status);
extern GoUint8 PLGNCleanCache2(char* cfg, PLGNStatus** status);
extern GoUint8 PLGNCacheCredentials(char* in, char* cfg, PLGNStatus** status);

// PLGNW3CCredentialFromOnchainHex returns a verifiable credential from an onchain data hex string.
Expand Down Expand Up @@ -227,6 +249,11 @@ extern GoUint8 PLGNW3CCredentialFromOnchainHex(char** jsonResponse, char* in, ch
// }
//
extern GoUint8 PLGNDescribeID(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern GoUint8 PLGNBabyJubJubSignPoseidon(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern GoUint8 PLGNBabyJubJubVerifyPoseidon(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern GoUint8 PLGNBabyJubJubPrivate2Public(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern GoUint8 PLGNBabyJubJubPublicUncompress(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);
extern GoUint8 PLGNBabyJubJubPublicCompress(char** jsonResponse, char* in, char* cfg, PLGNStatus** status);

#ifdef __cplusplus
}
Expand Down
15 changes: 0 additions & 15 deletions Iden3CLibrary.xcframework/ios-arm64/Headers/module.modulemap

This file was deleted.

44 changes: 0 additions & 44 deletions Iden3CLibrary.xcframework/ios-arm64/Headers/witnesscalc.h

This file was deleted.

39 changes: 0 additions & 39 deletions Iden3CLibrary.xcframework/ios-arm64/Headers/witnesscalc_authV2.h

This file was deleted.

This file was deleted.

Loading

0 comments on commit 9b447a1

Please sign in to comment.