Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AnonCreds Credentials using the W3C Standard - wrappers #273

Merged
merged 28 commits into from
Jan 15, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
fbc2ecf
W3C: Updated Python wrapper
Artemkaaas Nov 13, 2023
dfbca25
Added JS wrapper
Artemkaaas Nov 14, 2023
6fb3c16
Updated wrappers
Artemkaaas Nov 15, 2023
1bed31e
Added missing method to NodeJS wrapper
Artemkaaas Nov 15, 2023
0e817d6
Fixes in Python and Node wrappers
Artemkaaas Nov 16, 2023
2f97949
fix: Replace with w3c call, change order of enum variants
Abdulbois Nov 21, 2023
19ca275
Python: Added classes for W3CCredentialOffer and W3CCredentialRequest
Artemkaaas Dec 4, 2023
00d3a15
Reverted lerna version change
Artemkaaas Dec 8, 2023
2b903fe
Run prettier
Artemkaaas Dec 8, 2023
c436949
Use `W3c` instead of capitalized `W3C`
Artemkaaas Dec 11, 2023
c276c2a
Use `W3c` instead of capitalized `W3C` in python wrapper
Artemkaaas Dec 11, 2023
e9e7229
Dropped redundant methods for non-anoncreds proof and offer/request c…
Artemkaaas Dec 11, 2023
3e1f184
Added convert helper in node package
Artemkaaas Dec 12, 2023
a3ce38c
Clean up
Artemkaaas Dec 20, 2023
7fed651
Merge branch 'anoncreds-w3c-format-changes' into anoncreds-wc3-wrappers
Artemkaaas Dec 20, 2023
87312b5
Updated python wrapper
Artemkaaas Dec 20, 2023
d04299f
Updated JavaScript wrappers
Artemkaaas Dec 20, 2023
189afbe
Merge branch 'anoncreds-w3c-format-changes' into anoncreds-wc3-wrappers
Artemkaaas Dec 20, 2023
1c3c30b
Corrected context definition
Artemkaaas Dec 20, 2023
67d456b
Returned rust version to 1.65.0
Artemkaaas Dec 20, 2023
5094192
Fixed prettier error
Artemkaaas Dec 20, 2023
b39c2c8
Merge remote-tracking branch 'dsr/anoncreds-w3c-format-changes' into …
Artemkaaas Dec 21, 2023
5648b15
Merge remote-tracking branch 'dsr/anoncreds-w3c-format-changes' into …
Artemkaaas Dec 21, 2023
f4b975c
Merge branch 'anoncreds-w3c-format-changes' into anoncreds-wc3-wrappers
Artemkaaas Dec 21, 2023
65c7ca6
Renamed parameter from version to w3cVersion
Artemkaaas Dec 21, 2023
93801c8
Merge remote-tracking branch 'dsr/anoncreds-w3c-format-changes' into …
Artemkaaas Jan 11, 2024
9e6875d
Merge remote-tracking branch 'origin/main' into anoncreds-wc3-wrappers
Artemkaaas Jan 12, 2024
f0c2901
Fixed couple comments
Artemkaaas Jan 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
400 changes: 400 additions & 0 deletions wrappers/javascript/packages/anoncreds-nodejs/src/NodeJSAnoncreds.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ export const nativeBindings = {
FFI_INT8_PTR
]
],

anoncreds_create_revocation_status_list: [
FFI_ERRORCODE,
[
Expand Down Expand Up @@ -192,5 +191,83 @@ export const nativeBindings = {
anoncreds_credential_definition_private_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]],
anoncreds_revocation_registry_definition_private_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]],
anoncreds_key_correctness_proof_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]],
anoncreds_schema_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]]
anoncreds_schema_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]],
anoncreds_create_w3c_credential_offer: [
FFI_ERRORCODE,
[FFI_STRING, FFI_STRING, FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE_PTR]
],
anoncreds_create_w3c_credential_request: [
FFI_ERRORCODE,
[
FFI_STRING,
FFI_STRING,
FFI_OBJECT_HANDLE,
FFI_STRING,
FFI_STRING,
FFI_OBJECT_HANDLE,
FFI_OBJECT_HANDLE_PTR,
FFI_OBJECT_HANDLE_PTR
]
],
anoncreds_create_w3c_credential: [
FFI_ERRORCODE,
[
FFI_OBJECT_HANDLE,
FFI_OBJECT_HANDLE,
FFI_OBJECT_HANDLE,
FFI_OBJECT_HANDLE,
StringListStruct,
StringListStruct,
FFI_STRING,
FFI_OBJECT_HANDLE,
FFI_OBJECT_HANDLE_PTR
]
],
anoncreds_process_w3c_credential: [
FFI_ERRORCODE,
[FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE, FFI_STRING, FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE_PTR]
],
anoncreds_create_w3c_presentation: [
FFI_ERRORCODE,
[
FFI_OBJECT_HANDLE,
CredentialEntryListStruct,
CredentialProveListStruct,
FFI_STRING,
ObjectHandleListStruct,
StringListStruct,
ObjectHandleListStruct,
StringListStruct,
FFI_OBJECT_HANDLE_PTR
]
],
anoncreds_verify_w3c_presentation: [
FFI_ERRORCODE,
[
FFI_OBJECT_HANDLE,
FFI_OBJECT_HANDLE,
ObjectHandleListStruct,
StringListStruct,
ObjectHandleListStruct,
StringListStruct,
ObjectHandleListStruct,
StringListStruct,
ObjectHandleListStruct,
NonRevokedIntervalOverrideListStruct,
FFI_INT8_PTR
]
],
anoncreds_credential_to_w3c: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE_PTR]],
anoncreds_credential_from_w3c: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_OBJECT_HANDLE_PTR]],
anoncreds_w3c_credential_add_non_anoncreds_integrity_proof: [
FFI_ERRORCODE,
[FFI_OBJECT_HANDLE, FFI_STRING, FFI_OBJECT_HANDLE_PTR]
],
anoncreds_w3c_credential_set_id: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_STRING, FFI_OBJECT_HANDLE_PTR]],
anoncreds_w3c_credential_set_subject_id: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_STRING, FFI_OBJECT_HANDLE_PTR]],
anoncreds_w3c_credential_add_context: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_STRING, FFI_OBJECT_HANDLE_PTR]],
anoncreds_w3c_credential_add_type: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_STRING, FFI_OBJECT_HANDLE_PTR]],
anoncreds_w3c_credential_get_attribute: [FFI_ERRORCODE, [FFI_OBJECT_HANDLE, FFI_STRING, FFI_STRING_PTR]],
anoncreds_w3c_presentation_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]],
anoncreds_w3c_credential_from_json: [FFI_ERRORCODE, [ByteBufferStruct, FFI_STRING_PTR]]
} as const
Loading