@hyperledger/anoncreds-nodejs 0.1.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/LICENSE +192 -0
  2. package/README.md +38 -0
  3. package/build/NodeJSAnoncreds.d.ts +185 -0
  4. package/build/NodeJSAnoncreds.js +318 -0
  5. package/build/NodeJSAnoncreds.js.map +1 -0
  6. package/build/error.d.ts +1 -0
  7. package/build/error.js +16 -0
  8. package/build/error.js.map +1 -0
  9. package/build/ffi/alloc.d.ts +5 -0
  10. package/build/ffi/alloc.js +18 -0
  11. package/build/ffi/alloc.js.map +1 -0
  12. package/build/ffi/conversion.d.ts +8 -0
  13. package/build/ffi/conversion.js +8 -0
  14. package/build/ffi/conversion.js.map +1 -0
  15. package/build/ffi/index.d.ts +5 -0
  16. package/build/ffi/index.js +18 -0
  17. package/build/ffi/index.js.map +1 -0
  18. package/build/ffi/primitives.d.ts +13 -0
  19. package/build/ffi/primitives.js +20 -0
  20. package/build/ffi/primitives.js.map +1 -0
  21. package/build/ffi/serialize.d.ts +16 -0
  22. package/build/ffi/serialize.js +55 -0
  23. package/build/ffi/serialize.js.map +1 -0
  24. package/build/ffi/structures.d.ts +101 -0
  25. package/build/ffi/structures.js +102 -0
  26. package/build/ffi/structures.js.map +1 -0
  27. package/build/index.d.ts +3 -0
  28. package/build/index.js +19 -0
  29. package/build/index.js.map +1 -0
  30. package/build/library/NativeBindingInterface.d.ts +27 -0
  31. package/build/library/NativeBindingInterface.js +4 -0
  32. package/build/library/NativeBindingInterface.js.map +1 -0
  33. package/build/library/bindings.d.ts +177 -0
  34. package/build/library/bindings.js +170 -0
  35. package/build/library/bindings.js.map +1 -0
  36. package/build/library/index.d.ts +3 -0
  37. package/build/library/index.js +16 -0
  38. package/build/library/index.js.map +1 -0
  39. package/build/library/register.d.ts +43 -0
  40. package/build/library/register.js +56 -0
  41. package/build/library/register.js.map +1 -0
  42. package/package.json +53 -0
  43. package/scripts/arch.js +22 -0
@@ -0,0 +1,101 @@
1
+ import RefArray from 'ref-array-di';
2
+ import * as ref from 'ref-napi';
3
+ import RefStruct from 'ref-struct-di';
4
+ export declare const StringArray: RefArray.ArrayType<string | null>;
5
+ export declare const ByteBufferArray: RefArray.ArrayType<number>;
6
+ export declare const ByteBufferArrayPtr: ref.Type<ref.Pointer<string | null>>;
7
+ export declare const Int64Array: RefArray.ArrayType<string | number>;
8
+ export declare const Int32Array: RefArray.ArrayType<number>;
9
+ export declare const StringArrayPtr: ref.Type<ref.Pointer<RefArray.TypedArray<string | null, number>>>;
10
+ export declare const ByteBufferStruct: RefStruct.StructType<{
11
+ len: ref.Type<string | number>;
12
+ data: ref.Type<ref.Pointer<string | null>>;
13
+ }>;
14
+ export declare const ByteBufferStructPtr: ref.Type<ref.Pointer<RefStruct.StructObject<{
15
+ len: string | number;
16
+ data: ref.Pointer<string | null>;
17
+ }>>>;
18
+ export declare const StringListStruct: RefStruct.StructType<{
19
+ count: ref.Type<string | number>;
20
+ data: ref.Type<RefArray.TypedArray<string | null, number>>;
21
+ }>;
22
+ export declare const StringListStructPtr: ref.Type<ref.Pointer<RefStruct.StructObject<{
23
+ count: string | number;
24
+ data: RefArray.TypedArray<string | null, number>;
25
+ }>>>;
26
+ export declare const I64ListStruct: RefStruct.StructType<{
27
+ count: ref.Type<string | number>;
28
+ data: ref.Type<ref.Pointer<RefArray.TypedArray<string | number, number>>>;
29
+ }>;
30
+ export declare const I32ListStruct: RefStruct.StructType<{
31
+ count: ref.Type<string | number>;
32
+ data: ref.Type<ref.Pointer<RefArray.TypedArray<number, number>>>;
33
+ }>;
34
+ export declare const CredRevInfoStruct: RefStruct.StructType<{
35
+ reg_def: ref.Type<string | number>;
36
+ reg_def_private: ref.Type<string | number>;
37
+ reg_idx: ref.Type<string | number>;
38
+ tails_path: ref.Type<string | null>;
39
+ }>;
40
+ export declare const CredentialEntryStruct: RefStruct.StructType<{
41
+ credential: ref.Type<string | number>;
42
+ timestamp: ref.Type<string | number>;
43
+ rev_state: ref.Type<string | number>;
44
+ }>;
45
+ export declare const CredentialEntryArray: RefArray.ArrayType<RefStruct.StructObject<{
46
+ credential: string | number;
47
+ timestamp: string | number;
48
+ rev_state: string | number;
49
+ }>>;
50
+ export declare const CredentialEntryListStruct: RefStruct.StructType<{
51
+ count: ref.Type<string | number>;
52
+ data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
53
+ credential: string | number;
54
+ timestamp: string | number;
55
+ rev_state: string | number;
56
+ }>, number>>;
57
+ }>;
58
+ export declare const CredentialProveStruct: RefStruct.StructType<{
59
+ entry_idx: ref.Type<string | number>;
60
+ referent: ref.Type<string | null>;
61
+ is_predictable: ref.Type<number>;
62
+ reveal: ref.Type<number>;
63
+ }>;
64
+ export declare const CredentialProveArray: RefArray.ArrayType<RefStruct.StructObject<{
65
+ entry_idx: string | number;
66
+ referent: string | null;
67
+ is_predictable: number;
68
+ reveal: number;
69
+ }>>;
70
+ export declare const CredentialProveListStruct: RefStruct.StructType<{
71
+ count: ref.Type<string | number>;
72
+ data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
73
+ entry_idx: string | number;
74
+ referent: string | null;
75
+ is_predictable: number;
76
+ reveal: number;
77
+ }>, number>>;
78
+ }>;
79
+ export declare const ObjectHandleArray: RefArray.ArrayType<string | number>;
80
+ export declare const ObjectHandleListStruct: RefStruct.StructType<{
81
+ count: ref.Type<string | number>;
82
+ data: ref.Type<RefArray.TypedArray<string | number, number>>;
83
+ }>;
84
+ export declare const RevocationEntryStruct: RefStruct.StructType<{
85
+ def_entry_idx: ref.Type<string | number>;
86
+ entry: ref.Type<string | number>;
87
+ timestamp: ref.Type<string | number>;
88
+ }>;
89
+ export declare const RevocationEntryArray: RefArray.ArrayType<RefStruct.StructObject<{
90
+ def_entry_idx: string | number;
91
+ entry: string | number;
92
+ timestamp: string | number;
93
+ }>>;
94
+ export declare const RevocationEntryListStruct: RefStruct.StructType<{
95
+ count: ref.Type<string | number>;
96
+ data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
97
+ def_entry_idx: string | number;
98
+ entry: string | number;
99
+ timestamp: string | number;
100
+ }>, number>>;
101
+ }>;
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.RevocationEntryListStruct = exports.RevocationEntryArray = exports.RevocationEntryStruct = exports.ObjectHandleListStruct = exports.ObjectHandleArray = exports.CredentialProveListStruct = exports.CredentialProveArray = exports.CredentialProveStruct = exports.CredentialEntryListStruct = exports.CredentialEntryArray = exports.CredentialEntryStruct = exports.CredRevInfoStruct = exports.I32ListStruct = exports.I64ListStruct = exports.StringListStructPtr = exports.StringListStruct = exports.ByteBufferStructPtr = exports.ByteBufferStruct = exports.StringArrayPtr = exports.Int32Array = exports.Int64Array = exports.ByteBufferArrayPtr = exports.ByteBufferArray = exports.StringArray = void 0;
26
+ const ref_array_di_1 = __importDefault(require("ref-array-di"));
27
+ const ref = __importStar(require("ref-napi"));
28
+ const ref_struct_di_1 = __importDefault(require("ref-struct-di"));
29
+ const primitives_1 = require("./primitives");
30
+ const CStruct = (0, ref_struct_di_1.default)(ref);
31
+ const CArray = (0, ref_array_di_1.default)(ref);
32
+ exports.StringArray = CArray('string');
33
+ const FFI_INT32_ARRAY = CArray('int32');
34
+ const FFI_INT32_ARRAY_PTR = ref.refType(FFI_INT32_ARRAY);
35
+ const FFI_INT64_ARRAY = CArray('int64');
36
+ const FFI_INT64_ARRAY_PTR = ref.refType(FFI_INT64_ARRAY);
37
+ exports.ByteBufferArray = CArray('uint8');
38
+ exports.ByteBufferArrayPtr = ref.refType(primitives_1.FFI_STRING);
39
+ exports.Int64Array = FFI_INT64_ARRAY;
40
+ exports.Int32Array = FFI_INT32_ARRAY;
41
+ exports.StringArrayPtr = ref.refType(exports.StringArray);
42
+ exports.ByteBufferStruct = CStruct({
43
+ len: primitives_1.FFI_INT64,
44
+ data: exports.ByteBufferArrayPtr,
45
+ });
46
+ exports.ByteBufferStructPtr = ref.refType(exports.ByteBufferStruct);
47
+ exports.StringListStruct = CStruct({
48
+ count: ref.types.size_t,
49
+ data: exports.StringArray,
50
+ });
51
+ exports.StringListStructPtr = ref.refType(exports.StringListStruct);
52
+ exports.I64ListStruct = CStruct({
53
+ count: primitives_1.FFI_ISIZE,
54
+ data: FFI_INT64_ARRAY_PTR,
55
+ });
56
+ exports.I32ListStruct = CStruct({
57
+ count: primitives_1.FFI_ISIZE,
58
+ data: FFI_INT32_ARRAY_PTR,
59
+ });
60
+ exports.CredRevInfoStruct = CStruct({
61
+ reg_def: primitives_1.FFI_OBJECT_HANDLE,
62
+ reg_def_private: primitives_1.FFI_OBJECT_HANDLE,
63
+ reg_idx: primitives_1.FFI_INT64,
64
+ tails_path: primitives_1.FFI_STRING,
65
+ });
66
+ exports.CredentialEntryStruct = CStruct({
67
+ credential: primitives_1.FFI_ISIZE,
68
+ timestamp: primitives_1.FFI_INT64,
69
+ rev_state: primitives_1.FFI_ISIZE,
70
+ });
71
+ exports.CredentialEntryArray = CArray(exports.CredentialEntryStruct);
72
+ exports.CredentialEntryListStruct = CStruct({
73
+ count: primitives_1.FFI_ISIZE,
74
+ data: exports.CredentialEntryArray,
75
+ });
76
+ exports.CredentialProveStruct = CStruct({
77
+ entry_idx: primitives_1.FFI_INT64,
78
+ referent: primitives_1.FFI_STRING,
79
+ is_predictable: primitives_1.FFI_INT8,
80
+ reveal: primitives_1.FFI_INT8,
81
+ });
82
+ exports.CredentialProveArray = CArray(exports.CredentialProveStruct);
83
+ exports.CredentialProveListStruct = CStruct({
84
+ count: primitives_1.FFI_ISIZE,
85
+ data: exports.CredentialProveArray,
86
+ });
87
+ exports.ObjectHandleArray = CArray('size_t');
88
+ exports.ObjectHandleListStruct = CStruct({
89
+ count: primitives_1.FFI_ISIZE,
90
+ data: exports.ObjectHandleArray,
91
+ });
92
+ exports.RevocationEntryStruct = CStruct({
93
+ def_entry_idx: primitives_1.FFI_INT64,
94
+ entry: primitives_1.FFI_ISIZE,
95
+ timestamp: primitives_1.FFI_INT64,
96
+ });
97
+ exports.RevocationEntryArray = CArray(exports.RevocationEntryStruct);
98
+ exports.RevocationEntryListStruct = CStruct({
99
+ count: primitives_1.FFI_ISIZE,
100
+ data: exports.RevocationEntryArray,
101
+ });
102
+ //# sourceMappingURL=structures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structures.js","sourceRoot":"","sources":["../../src/ffi/structures.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,gEAAmC;AACnC,8CAA+B;AAC/B,kEAAqC;AAErC,6CAA4F;AAE5F,MAAM,OAAO,GAAG,IAAA,uBAAS,EAAC,GAAG,CAAC,CAAA;AAC9B,MAAM,MAAM,GAAG,IAAA,sBAAQ,EAAC,GAAG,CAAC,CAAA;AAEf,QAAA,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;AAE3C,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC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
package/build/index.js ADDED
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.anoncredsNodeJS = void 0;
14
+ const anoncreds_shared_1 = require("@hyperledger/anoncreds-shared");
15
+ const NodeJSAnoncreds_1 = require("./NodeJSAnoncreds");
16
+ exports.anoncredsNodeJS = new NodeJSAnoncreds_1.NodeJSAnoncreds();
17
+ (0, anoncreds_shared_1.registerAnoncreds)({ lib: exports.anoncredsNodeJS });
18
+ __exportStar(require("@hyperledger/anoncreds-shared"), exports);
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oEAAiE;AAEjE,uDAAmD;AAEtC,QAAA,eAAe,GAAG,IAAI,iCAAe,EAAE,CAAA;AACpD,IAAA,oCAAiB,EAAC,EAAE,GAAG,EAAE,uBAAe,EAAE,CAAC,CAAA;AAE3C,gEAA6C"}
@@ -0,0 +1,27 @@
1
+ import type { nativeBindings } from './bindings';
2
+ interface StringTypeMapping {
3
+ pointer: Buffer;
4
+ 'char*': Buffer;
5
+ string: string;
6
+ int64: number;
7
+ int32: number;
8
+ int8: number;
9
+ int: number;
10
+ size_t: number;
11
+ }
12
+ declare type ShapeOf<T> = {
13
+ [Property in keyof T]: T[Property];
14
+ };
15
+ declare type StringTypeArrayToTypes<List extends Array<keyof StringTypeMapping>> = {
16
+ [Item in keyof List]: List[Item] extends keyof StringTypeMapping ? StringTypeMapping[List[Item]] : Buffer;
17
+ };
18
+ declare type TypedMethods<Base extends {
19
+ [method: string | number | symbol]: [any, any[]];
20
+ }> = {
21
+ [Property in keyof Base]: (...args: StringTypeArrayToTypes<Base[Property][1]> extends any[] ? StringTypeArrayToTypes<Base[Property][1]> : []) => StringTypeMapping[Base[Property][0]];
22
+ };
23
+ declare type Mutable<T> = {
24
+ -readonly [K in keyof T]: Mutable<T[K]>;
25
+ };
26
+ export declare type NativeMethods = TypedMethods<ShapeOf<Mutable<typeof nativeBindings>>>;
27
+ export {};
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ /* eslint-disable @typescript-eslint/no-explicit-any */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ //# sourceMappingURL=NativeBindingInterface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeBindingInterface.js","sourceRoot":"","sources":["../../src/library/NativeBindingInterface.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -0,0 +1,177 @@
1
+ export declare const nativeBindings: {
2
+ readonly anoncreds_buffer_free: readonly [import("ref-napi").Type<void>, readonly [import("ref-struct-di").StructType<{
3
+ len: import("ref-napi").Type<string | number>;
4
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
5
+ }>]];
6
+ readonly anoncreds_create_credential: readonly ["uint", readonly ["size_t", "size_t", "size_t", "size_t", import("ref-struct-di").StructType<{
7
+ count: import("ref-napi").Type<string | number>;
8
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
9
+ }>, import("ref-struct-di").StructType<{
10
+ count: import("ref-napi").Type<string | number>;
11
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
12
+ }>, import("ref-struct-di").StructType<{
13
+ count: import("ref-napi").Type<string | number>;
14
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
15
+ }>, "string", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<import("ref-struct-di").StructObject<{
16
+ reg_def: string | number;
17
+ reg_def_private: string | number;
18
+ reg_idx: string | number;
19
+ tails_path: string | null;
20
+ }>>>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
21
+ readonly anoncreds_create_credential_definition: readonly ["uint", readonly ["string", "size_t", "string", "string", "string", "int8", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
22
+ readonly anoncreds_create_credential_offer: readonly ["uint", readonly ["string", "string", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
23
+ readonly anoncreds_create_credential_request: readonly ["uint", readonly ["string", "size_t", "size_t", "string", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
24
+ readonly anoncreds_create_master_secret: readonly ["uint", readonly [import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
25
+ readonly anoncreds_create_or_update_revocation_state: readonly ["uint", readonly ["size_t", "size_t", "int64", "string", "size_t", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
26
+ readonly anoncreds_create_presentation: readonly ["uint", readonly ["size_t", import("ref-struct-di").StructType<{
27
+ count: import("ref-napi").Type<string | number>;
28
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<import("ref-struct-di").StructObject<{
29
+ credential: string | number;
30
+ timestamp: string | number;
31
+ rev_state: string | number;
32
+ }>, number>>;
33
+ }>, import("ref-struct-di").StructType<{
34
+ count: import("ref-napi").Type<string | number>;
35
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<import("ref-struct-di").StructObject<{
36
+ entry_idx: string | number;
37
+ referent: string | null;
38
+ is_predictable: number;
39
+ reveal: number;
40
+ }>, number>>;
41
+ }>, import("ref-struct-di").StructType<{
42
+ count: import("ref-napi").Type<string | number>;
43
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
44
+ }>, import("ref-struct-di").StructType<{
45
+ count: import("ref-napi").Type<string | number>;
46
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
47
+ }>, "size_t", import("ref-struct-di").StructType<{
48
+ count: import("ref-napi").Type<string | number>;
49
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | number, number>>;
50
+ }>, import("ref-struct-di").StructType<{
51
+ count: import("ref-napi").Type<string | number>;
52
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
53
+ }>, import("ref-struct-di").StructType<{
54
+ count: import("ref-napi").Type<string | number>;
55
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | number, number>>;
56
+ }>, import("ref-struct-di").StructType<{
57
+ count: import("ref-napi").Type<string | number>;
58
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
59
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
60
+ readonly anoncreds_create_revocation_registry_def: readonly ["uint", readonly ["size_t", "string", "string", "string", "string", "int64", "string", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
61
+ readonly anoncreds_create_schema: readonly ["uint", readonly ["string", "string", "string", import("ref-struct-di").StructType<{
62
+ count: import("ref-napi").Type<string | number>;
63
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
64
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
65
+ readonly anoncreds_credential_get_attribute: readonly ["uint", readonly ["size_t", "string", import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
66
+ readonly anoncreds_encode_credential_attributes: readonly ["uint", readonly [import("ref-struct-di").StructType<{
67
+ count: import("ref-napi").Type<string | number>;
68
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
69
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
70
+ readonly anoncreds_generate_nonce: readonly ["uint", readonly [import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
71
+ readonly anoncreds_get_current_error: readonly ["uint", readonly [import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
72
+ readonly anoncreds_object_free: readonly [import("ref-napi").Type<void>, readonly ["size_t"]];
73
+ readonly anoncreds_object_get_json: readonly ["uint", readonly ["size_t", import("ref-napi").Type<import("ref-napi").Pointer<import("ref-struct-di").StructObject<{
74
+ len: string | number;
75
+ data: import("ref-napi").Pointer<string | null>;
76
+ }>>>]];
77
+ readonly anoncreds_object_get_type_name: readonly ["uint", readonly ["size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
78
+ readonly anoncreds_presentation_request_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
79
+ len: import("ref-napi").Type<string | number>;
80
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
81
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
82
+ readonly anoncreds_process_credential: readonly ["uint", readonly ["size_t", "size_t", "size_t", "size_t", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
83
+ readonly anoncreds_revocation_registry_definition_get_attribute: readonly ["uint", readonly ["size_t", "string", import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
84
+ readonly anoncreds_set_default_logger: readonly ["uint", readonly []];
85
+ readonly anoncreds_verify_presentation: readonly ["uint", readonly ["size_t", "size_t", import("ref-struct-di").StructType<{
86
+ count: import("ref-napi").Type<string | number>;
87
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | number, number>>;
88
+ }>, import("ref-struct-di").StructType<{
89
+ count: import("ref-napi").Type<string | number>;
90
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
91
+ }>, import("ref-struct-di").StructType<{
92
+ count: import("ref-napi").Type<string | number>;
93
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | number, number>>;
94
+ }>, import("ref-struct-di").StructType<{
95
+ count: import("ref-napi").Type<string | number>;
96
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
97
+ }>, import("ref-struct-di").StructType<{
98
+ count: import("ref-napi").Type<string | number>;
99
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | number, number>>;
100
+ }>, import("ref-struct-di").StructType<{
101
+ count: import("ref-napi").Type<string | number>;
102
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
103
+ }>, import("ref-struct-di").StructType<{
104
+ count: import("ref-napi").Type<string | number>;
105
+ data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | number, number>>;
106
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<number>>]];
107
+ readonly anoncreds_create_revocation_status_list: readonly ["uint", readonly ["string", "size_t", "int64", "int8", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
108
+ readonly anoncreds_update_revocation_status_list_timestamp_only: readonly ["uint", readonly ["int64", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
109
+ readonly anoncreds_update_revocation_status_list: readonly ["uint", readonly ["int64", import("ref-struct-di").StructType<{
110
+ count: import("ref-napi").Type<string | number>;
111
+ data: import("ref-napi").Type<import("ref-napi").Pointer<import("ref-array-di").TypedArray<number, number>>>;
112
+ }>, import("ref-struct-di").StructType<{
113
+ count: import("ref-napi").Type<string | number>;
114
+ data: import("ref-napi").Type<import("ref-napi").Pointer<import("ref-array-di").TypedArray<number, number>>>;
115
+ }>, "size_t", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
116
+ readonly anoncreds_version: readonly ["string", readonly []];
117
+ readonly anoncreds_master_secret_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
118
+ len: import("ref-napi").Type<string | number>;
119
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
120
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
121
+ readonly anoncreds_credential_request_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
122
+ len: import("ref-napi").Type<string | number>;
123
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
124
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
125
+ readonly anoncreds_credential_request_metadata_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
126
+ len: import("ref-napi").Type<string | number>;
127
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
128
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
129
+ readonly anoncreds_presentation_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
130
+ len: import("ref-napi").Type<string | number>;
131
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
132
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
133
+ readonly anoncreds_credential_offer_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
134
+ len: import("ref-napi").Type<string | number>;
135
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
136
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
137
+ readonly anoncreds_revocation_registry_definition_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
138
+ len: import("ref-napi").Type<string | number>;
139
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
140
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
141
+ readonly anoncreds_revocation_registry_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
142
+ len: import("ref-napi").Type<string | number>;
143
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
144
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
145
+ readonly anoncreds_revocation_state_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
146
+ len: import("ref-napi").Type<string | number>;
147
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
148
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
149
+ readonly anoncreds_credential_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
150
+ len: import("ref-napi").Type<string | number>;
151
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
152
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
153
+ readonly anoncreds_credential_definition_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
154
+ len: import("ref-napi").Type<string | number>;
155
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
156
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
157
+ readonly anoncreds_credential_definition_private_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
158
+ len: import("ref-napi").Type<string | number>;
159
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
160
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
161
+ readonly anoncreds_revocation_registry_definition_private_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
162
+ len: import("ref-napi").Type<string | number>;
163
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
164
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
165
+ readonly anoncreds_revocation_registry_delta_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
166
+ len: import("ref-napi").Type<string | number>;
167
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
168
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
169
+ readonly anoncreds_key_correctness_proof_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
170
+ len: import("ref-napi").Type<string | number>;
171
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
172
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
173
+ readonly anoncreds_schema_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
174
+ len: import("ref-napi").Type<string | number>;
175
+ data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
176
+ }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
177
+ };
@@ -0,0 +1,170 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.nativeBindings = void 0;
4
+ const ref_napi_1 = require("ref-napi");
5
+ const ffi_1 = require("../ffi");
6
+ exports.nativeBindings = {
7
+ // first element is method return type, second element is list of method argument types
8
+ anoncreds_buffer_free: [ffi_1.FFI_VOID, [ffi_1.ByteBufferStruct]],
9
+ anoncreds_create_credential: [
10
+ ffi_1.FFI_ERRORCODE,
11
+ [
12
+ ffi_1.FFI_OBJECT_HANDLE,
13
+ ffi_1.FFI_OBJECT_HANDLE,
14
+ ffi_1.FFI_OBJECT_HANDLE,
15
+ ffi_1.FFI_OBJECT_HANDLE,
16
+ ffi_1.StringListStruct,
17
+ ffi_1.StringListStruct,
18
+ ffi_1.StringListStruct,
19
+ ffi_1.FFI_STRING,
20
+ ffi_1.FFI_OBJECT_HANDLE,
21
+ (0, ref_napi_1.refType)(ffi_1.CredRevInfoStruct),
22
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
23
+ ],
24
+ ],
25
+ anoncreds_create_credential_definition: [
26
+ ffi_1.FFI_ERRORCODE,
27
+ [
28
+ ffi_1.FFI_STRING,
29
+ ffi_1.FFI_OBJECT_HANDLE,
30
+ ffi_1.FFI_STRING,
31
+ ffi_1.FFI_STRING,
32
+ ffi_1.FFI_STRING,
33
+ ffi_1.FFI_INT8,
34
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
35
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
36
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
37
+ ],
38
+ ],
39
+ anoncreds_create_credential_offer: [
40
+ ffi_1.FFI_ERRORCODE,
41
+ [ffi_1.FFI_STRING, ffi_1.FFI_STRING, ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_OBJECT_HANDLE_PTR],
42
+ ],
43
+ anoncreds_create_credential_request: [
44
+ ffi_1.FFI_ERRORCODE,
45
+ [
46
+ ffi_1.FFI_STRING,
47
+ ffi_1.FFI_OBJECT_HANDLE,
48
+ ffi_1.FFI_OBJECT_HANDLE,
49
+ ffi_1.FFI_STRING,
50
+ ffi_1.FFI_OBJECT_HANDLE,
51
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
52
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
53
+ ],
54
+ ],
55
+ anoncreds_create_master_secret: [ffi_1.FFI_ERRORCODE, [ffi_1.FFI_OBJECT_HANDLE_PTR]],
56
+ anoncreds_create_or_update_revocation_state: [
57
+ ffi_1.FFI_ERRORCODE,
58
+ [
59
+ ffi_1.FFI_OBJECT_HANDLE,
60
+ ffi_1.FFI_OBJECT_HANDLE,
61
+ ffi_1.FFI_INT64,
62
+ ffi_1.FFI_STRING,
63
+ ffi_1.FFI_OBJECT_HANDLE,
64
+ ffi_1.FFI_OBJECT_HANDLE,
65
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
66
+ ],
67
+ ],
68
+ anoncreds_create_presentation: [
69
+ ffi_1.FFI_ERRORCODE,
70
+ [
71
+ ffi_1.FFI_OBJECT_HANDLE,
72
+ ffi_1.CredentialEntryListStruct,
73
+ ffi_1.CredentialProveListStruct,
74
+ ffi_1.StringListStruct,
75
+ ffi_1.StringListStruct,
76
+ ffi_1.FFI_OBJECT_HANDLE,
77
+ ffi_1.ObjectHandleListStruct,
78
+ ffi_1.StringListStruct,
79
+ ffi_1.ObjectHandleListStruct,
80
+ ffi_1.StringListStruct,
81
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
82
+ ],
83
+ ],
84
+ anoncreds_create_revocation_registry_def: [
85
+ ffi_1.FFI_ERRORCODE,
86
+ [
87
+ ffi_1.FFI_OBJECT_HANDLE,
88
+ ffi_1.FFI_STRING,
89
+ ffi_1.FFI_STRING,
90
+ ffi_1.FFI_STRING,
91
+ ffi_1.FFI_STRING,
92
+ ffi_1.FFI_INT64,
93
+ ffi_1.FFI_STRING,
94
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
95
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
96
+ ],
97
+ ],
98
+ anoncreds_create_schema: [
99
+ ffi_1.FFI_ERRORCODE,
100
+ [ffi_1.FFI_STRING, ffi_1.FFI_STRING, ffi_1.FFI_STRING, ffi_1.StringListStruct, ffi_1.FFI_OBJECT_HANDLE_PTR],
101
+ ],
102
+ anoncreds_credential_get_attribute: [ffi_1.FFI_ERRORCODE, [ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_STRING, ffi_1.FFI_STRING_PTR]],
103
+ anoncreds_encode_credential_attributes: [ffi_1.FFI_ERRORCODE, [ffi_1.StringListStruct, ffi_1.FFI_STRING_PTR]],
104
+ anoncreds_generate_nonce: [ffi_1.FFI_ERRORCODE, [ffi_1.FFI_STRING_PTR]],
105
+ anoncreds_get_current_error: [ffi_1.FFI_ERRORCODE, [ffi_1.FFI_STRING_PTR]],
106
+ anoncreds_object_free: [ffi_1.FFI_VOID, [ffi_1.FFI_OBJECT_HANDLE]],
107
+ anoncreds_object_get_json: [ffi_1.FFI_ERRORCODE, [ffi_1.FFI_OBJECT_HANDLE, ffi_1.ByteBufferStructPtr]],
108
+ anoncreds_object_get_type_name: [ffi_1.FFI_ERRORCODE, [ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_STRING_PTR]],
109
+ anoncreds_presentation_request_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
110
+ anoncreds_process_credential: [
111
+ ffi_1.FFI_ERRORCODE,
112
+ [
113
+ ffi_1.FFI_OBJECT_HANDLE,
114
+ ffi_1.FFI_OBJECT_HANDLE,
115
+ ffi_1.FFI_OBJECT_HANDLE,
116
+ ffi_1.FFI_OBJECT_HANDLE,
117
+ ffi_1.FFI_OBJECT_HANDLE,
118
+ ffi_1.FFI_OBJECT_HANDLE_PTR,
119
+ ],
120
+ ],
121
+ anoncreds_revocation_registry_definition_get_attribute: [
122
+ ffi_1.FFI_ERRORCODE,
123
+ [ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_STRING, ffi_1.FFI_STRING_PTR],
124
+ ],
125
+ anoncreds_set_default_logger: [ffi_1.FFI_ERRORCODE, []],
126
+ anoncreds_verify_presentation: [
127
+ ffi_1.FFI_ERRORCODE,
128
+ [
129
+ ffi_1.FFI_OBJECT_HANDLE,
130
+ ffi_1.FFI_OBJECT_HANDLE,
131
+ ffi_1.ObjectHandleListStruct,
132
+ ffi_1.StringListStruct,
133
+ ffi_1.ObjectHandleListStruct,
134
+ ffi_1.StringListStruct,
135
+ ffi_1.ObjectHandleListStruct,
136
+ ffi_1.StringListStruct,
137
+ ffi_1.ObjectHandleListStruct,
138
+ ffi_1.FFI_INT8_PTR,
139
+ ],
140
+ ],
141
+ anoncreds_create_revocation_status_list: [
142
+ ffi_1.FFI_ERRORCODE,
143
+ [ffi_1.FFI_STRING, ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_INT64, ffi_1.FFI_INT8, ffi_1.FFI_OBJECT_HANDLE_PTR],
144
+ ],
145
+ anoncreds_update_revocation_status_list_timestamp_only: [
146
+ ffi_1.FFI_ERRORCODE,
147
+ [ffi_1.FFI_INT64, ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_OBJECT_HANDLE_PTR],
148
+ ],
149
+ anoncreds_update_revocation_status_list: [
150
+ ffi_1.FFI_ERRORCODE,
151
+ [ffi_1.FFI_INT64, ffi_1.I32ListStruct, ffi_1.I32ListStruct, ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_OBJECT_HANDLE, ffi_1.FFI_OBJECT_HANDLE_PTR],
152
+ ],
153
+ anoncreds_version: [ffi_1.FFI_STRING, []],
154
+ anoncreds_master_secret_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
155
+ anoncreds_credential_request_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
156
+ anoncreds_credential_request_metadata_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
157
+ anoncreds_presentation_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
158
+ anoncreds_credential_offer_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
159
+ anoncreds_revocation_registry_definition_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
160
+ anoncreds_revocation_registry_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
161
+ anoncreds_revocation_state_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
162
+ anoncreds_credential_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
163
+ anoncreds_credential_definition_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
164
+ anoncreds_credential_definition_private_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
165
+ anoncreds_revocation_registry_definition_private_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
166
+ anoncreds_revocation_registry_delta_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
167
+ anoncreds_key_correctness_proof_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
168
+ anoncreds_schema_from_json: [ffi_1.FFI_ERRORCODE, [ffi_1.ByteBufferStruct, ffi_1.FFI_STRING_PTR]],
169
+ };
170
+ //# sourceMappingURL=bindings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bindings.js","sourceRoot":"","sources":["../../src/library/bindings.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC,gCAkBe;AAEF,QAAA,cAAc,GAAG;IAC5B,uFAAuF;IACvF,qBAAqB,EAAE,CAAC,cAAQ,EAAE,CAAC,sBAAgB,CAAC,CAAC;IACrD,2BAA2B,EAAE;QAC3B,mBAAa;QACb;YACE,uBAAiB;YACjB,uBAAiB;YACjB,uBAAiB;YACjB,uBAAiB;YACjB,sBAAgB;YAChB,sBAAgB;YAChB,sBAAgB;YAChB,gBAAU;YACV,uBAAiB;YACjB,IAAA,kBAAO,EAAC,uBAAiB,CAAC;YAC1B,2BAAqB;SACtB;KACF;IACD,sCAAsC,EAAE;QACtC,mBAAa;QACb;YACE,gBAAU;YACV,uBAAiB;YACjB,gBAAU;YACV,gBAAU;YACV,gBAAU;YACV,cAAQ;YACR,2BAAqB;YACrB,2BAAqB;YACrB,2BAAqB;SACtB;KACF;IACD,iCAAiC,EAAE;QACjC,mBAAa;QACb,CAAC,gBAAU,EAAE,gBAAU,EAAE,uBAAiB,EAAE,2BAAqB,CAAC;KACnE;IACD,mCAAmC,EAAE;QACnC,mBAAa;QACb;YACE,gBAAU;YACV,uBAAiB;YACjB,uBAAiB;YACjB,gBAAU;YACV,uBAAiB;YACjB,2BAAqB;YACrB,2BAAqB;SACtB;KACF;IACD,8BAA8B,EAAE,CAAC,mBAAa,EAAE,CAAC,2BAAqB,CAAC,CAAC;IACxE,2CAA2C,EAAE;QAC3C,mBAAa;QACb;YACE,uBAAiB;YACjB,uBAAiB;YACjB,eAAS;YACT,gBAAU;YACV,uBAAiB;YACjB,uBAAiB;YACjB,2BAAqB;SACtB;KACF;IACD,6BAA6B,EAAE;QAC7B,mBAAa;QACb;YACE,uBAAiB;YACjB,+BAAyB;YACzB,+BAAyB;YACzB,sBAAgB;YAChB,sBAAgB;YAChB,uBAAiB;YACj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