@hyperledger/anoncreds-nodejs 0.1.0 → 0.2.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 (131) hide show
  1. package/README.md +2 -3
  2. package/build/{NodeJSAnoncreds.d.ts → anoncreds-nodejs/src/NodeJSAnoncreds.d.ts} +14 -11
  3. package/build/{NodeJSAnoncreds.js → anoncreds-nodejs/src/NodeJSAnoncreds.js} +40 -35
  4. package/build/anoncreds-nodejs/src/NodeJSAnoncreds.js.map +1 -0
  5. package/build/{ffi → anoncreds-nodejs/src/ffi}/alloc.js +1 -1
  6. package/build/anoncreds-nodejs/src/ffi/alloc.js.map +1 -0
  7. package/build/{ffi → anoncreds-nodejs/src/ffi}/conversion.js +1 -1
  8. package/build/anoncreds-nodejs/src/ffi/conversion.js.map +1 -0
  9. package/build/{ffi → anoncreds-nodejs/src/ffi}/index.js +5 -1
  10. package/build/anoncreds-nodejs/src/ffi/index.js.map +1 -0
  11. package/build/anoncreds-nodejs/src/ffi/primitives.d.ts +14 -0
  12. package/build/{ffi → anoncreds-nodejs/src/ffi}/primitives.js +1 -1
  13. package/build/anoncreds-nodejs/src/ffi/primitives.js.map +1 -0
  14. package/build/{ffi → anoncreds-nodejs/src/ffi}/serialize.d.ts +5 -5
  15. package/build/{ffi → anoncreds-nodejs/src/ffi}/serialize.js +3 -3
  16. package/build/anoncreds-nodejs/src/ffi/serialize.js.map +1 -0
  17. package/build/{ffi → anoncreds-nodejs/src/ffi}/structures.d.ts +36 -36
  18. package/build/{ffi → anoncreds-nodejs/src/ffi}/structures.js +21 -19
  19. package/build/anoncreds-nodejs/src/ffi/structures.js.map +1 -0
  20. package/build/{index.js → anoncreds-nodejs/src/index.js} +5 -1
  21. package/build/anoncreds-nodejs/src/index.js.map +1 -0
  22. package/build/{library → anoncreds-nodejs/src/library}/NativeBindingInterface.d.ts +5 -7
  23. package/build/anoncreds-nodejs/src/library/NativeBindingInterface.js.map +1 -0
  24. package/build/{library → anoncreds-nodejs/src/library}/bindings.d.ts +57 -56
  25. package/build/{library → anoncreds-nodejs/src/library}/bindings.js +41 -24
  26. package/build/anoncreds-nodejs/src/library/bindings.js.map +1 -0
  27. package/build/{library → anoncreds-nodejs/src/library}/index.js +5 -1
  28. package/build/anoncreds-nodejs/src/library/index.js.map +1 -0
  29. package/build/{library → anoncreds-nodejs/src/library}/register.d.ts +4 -3
  30. package/build/{library → anoncreds-nodejs/src/library}/register.js +5 -5
  31. package/build/anoncreds-nodejs/src/library/register.js.map +1 -0
  32. package/build/anoncreds-shared/src/Anoncreds.d.ts +213 -0
  33. package/build/anoncreds-shared/src/Anoncreds.js +5 -0
  34. package/build/anoncreds-shared/src/Anoncreds.js.map +1 -0
  35. package/build/anoncreds-shared/src/AnoncredsObject.d.ts +7 -0
  36. package/build/anoncreds-shared/src/AnoncredsObject.js +15 -0
  37. package/build/anoncreds-shared/src/AnoncredsObject.js.map +1 -0
  38. package/build/anoncreds-shared/src/ObjectHandle.d.ts +7 -0
  39. package/build/anoncreds-shared/src/ObjectHandle.js +21 -0
  40. package/build/anoncreds-shared/src/ObjectHandle.js.map +1 -0
  41. package/build/anoncreds-shared/src/api/Credential.d.ts +36 -0
  42. package/build/anoncreds-shared/src/api/Credential.js +101 -0
  43. package/build/anoncreds-shared/src/api/Credential.js.map +1 -0
  44. package/build/anoncreds-shared/src/api/CredentialDefinition.d.ts +21 -0
  45. package/build/anoncreds-shared/src/api/CredentialDefinition.js +45 -0
  46. package/build/anoncreds-shared/src/api/CredentialDefinition.js.map +1 -0
  47. package/build/anoncreds-shared/src/api/CredentialDefinitionPrivate.d.ts +5 -0
  48. package/build/anoncreds-shared/src/api/CredentialDefinitionPrivate.js +12 -0
  49. package/build/anoncreds-shared/src/api/CredentialDefinitionPrivate.js.map +1 -0
  50. package/build/anoncreds-shared/src/api/CredentialOffer.d.ts +12 -0
  51. package/build/anoncreds-shared/src/api/CredentialOffer.js +35 -0
  52. package/build/anoncreds-shared/src/api/CredentialOffer.js.map +1 -0
  53. package/build/anoncreds-shared/src/api/CredentialRequest.d.ts +20 -0
  54. package/build/anoncreds-shared/src/api/CredentialRequest.js +46 -0
  55. package/build/anoncreds-shared/src/api/CredentialRequest.js.map +1 -0
  56. package/build/anoncreds-shared/src/api/CredentialRequestMetadata.d.ts +5 -0
  57. package/build/anoncreds-shared/src/api/CredentialRequestMetadata.js +12 -0
  58. package/build/anoncreds-shared/src/api/CredentialRequestMetadata.js.map +1 -0
  59. package/build/anoncreds-shared/src/api/CredentialRevocationConfig.d.ts +19 -0
  60. package/build/anoncreds-shared/src/api/CredentialRevocationConfig.js +25 -0
  61. package/build/anoncreds-shared/src/api/CredentialRevocationConfig.js.map +1 -0
  62. package/build/anoncreds-shared/src/api/CredentialRevocationState.d.ts +18 -0
  63. package/build/anoncreds-shared/src/api/CredentialRevocationState.js +52 -0
  64. package/build/anoncreds-shared/src/api/CredentialRevocationState.js.map +1 -0
  65. package/build/anoncreds-shared/src/api/KeyCorrectnessProof.d.ts +5 -0
  66. package/build/anoncreds-shared/src/api/KeyCorrectnessProof.js +12 -0
  67. package/build/anoncreds-shared/src/api/KeyCorrectnessProof.js.map +1 -0
  68. package/build/anoncreds-shared/src/api/LinkSecret.d.ts +3 -0
  69. package/build/anoncreds-shared/src/api/LinkSecret.js +11 -0
  70. package/build/anoncreds-shared/src/api/LinkSecret.js.map +1 -0
  71. package/build/anoncreds-shared/src/api/Presentation.d.ts +53 -0
  72. package/build/anoncreds-shared/src/api/Presentation.js +109 -0
  73. package/build/anoncreds-shared/src/api/Presentation.js.map +1 -0
  74. package/build/anoncreds-shared/src/api/PresentationRequest.d.ts +5 -0
  75. package/build/anoncreds-shared/src/api/PresentationRequest.js +12 -0
  76. package/build/anoncreds-shared/src/api/PresentationRequest.js.map +1 -0
  77. package/build/anoncreds-shared/src/api/RevocationRegistry.d.ts +12 -0
  78. package/build/anoncreds-shared/src/api/RevocationRegistry.js +12 -0
  79. package/build/anoncreds-shared/src/api/RevocationRegistry.js.map +1 -0
  80. package/build/anoncreds-shared/src/api/RevocationRegistryDefinition.d.ts +24 -0
  81. package/build/anoncreds-shared/src/api/RevocationRegistryDefinition.js +47 -0
  82. package/build/anoncreds-shared/src/api/RevocationRegistryDefinition.js.map +1 -0
  83. package/build/anoncreds-shared/src/api/RevocationRegistryDefinitionPrivate.d.ts +5 -0
  84. package/build/anoncreds-shared/src/api/RevocationRegistryDefinitionPrivate.js +12 -0
  85. package/build/anoncreds-shared/src/api/RevocationRegistryDefinitionPrivate.js.map +1 -0
  86. package/build/anoncreds-shared/src/api/RevocationStatusList.d.ts +31 -0
  87. package/build/anoncreds-shared/src/api/RevocationStatusList.js +70 -0
  88. package/build/anoncreds-shared/src/api/RevocationStatusList.js.map +1 -0
  89. package/build/anoncreds-shared/src/api/Schema.d.ts +12 -0
  90. package/build/anoncreds-shared/src/api/Schema.js +15 -0
  91. package/build/anoncreds-shared/src/api/Schema.js.map +1 -0
  92. package/build/anoncreds-shared/src/api/index.d.ts +17 -0
  93. package/build/anoncreds-shared/src/api/index.js +34 -0
  94. package/build/anoncreds-shared/src/api/index.js.map +1 -0
  95. package/build/anoncreds-shared/src/api/utils.d.ts +1 -0
  96. package/build/anoncreds-shared/src/api/utils.js +6 -0
  97. package/build/anoncreds-shared/src/api/utils.js.map +1 -0
  98. package/build/anoncreds-shared/src/error.d.ts +14 -0
  99. package/build/anoncreds-shared/src/error.js +22 -0
  100. package/build/anoncreds-shared/src/error.js.map +1 -0
  101. package/build/anoncreds-shared/src/index.d.ts +7 -0
  102. package/build/anoncreds-shared/src/index.js +24 -0
  103. package/build/anoncreds-shared/src/index.js.map +1 -0
  104. package/build/anoncreds-shared/src/register.d.ts +5 -0
  105. package/build/anoncreds-shared/src/register.js +6 -0
  106. package/build/anoncreds-shared/src/register.js.map +1 -0
  107. package/build/anoncreds-shared/src/types.d.ts +12 -0
  108. package/build/anoncreds-shared/src/types.js +14 -0
  109. package/build/anoncreds-shared/src/types.js.map +1 -0
  110. package/package.json +14 -16
  111. package/scripts/arch.js +1 -1
  112. package/scripts/platform.js +1 -5
  113. package/build/NodeJSAnoncreds.js.map +0 -1
  114. package/build/ffi/alloc.js.map +0 -1
  115. package/build/ffi/conversion.js.map +0 -1
  116. package/build/ffi/index.js.map +0 -1
  117. package/build/ffi/primitives.d.ts +0 -14
  118. package/build/ffi/primitives.js.map +0 -1
  119. package/build/ffi/serialize.js.map +0 -1
  120. package/build/ffi/structures.js.map +0 -1
  121. package/build/index.js.map +0 -1
  122. package/build/library/NativeBindingInterface.js.map +0 -1
  123. package/build/library/bindings.js.map +0 -1
  124. package/build/library/index.js.map +0 -1
  125. package/build/library/register.js.map +0 -1
  126. /package/build/{ffi → anoncreds-nodejs/src/ffi}/alloc.d.ts +0 -0
  127. /package/build/{ffi → anoncreds-nodejs/src/ffi}/conversion.d.ts +0 -0
  128. /package/build/{ffi → anoncreds-nodejs/src/ffi}/index.d.ts +0 -0
  129. /package/build/{index.d.ts → anoncreds-nodejs/src/index.d.ts} +0 -0
  130. /package/build/{library → anoncreds-nodejs/src/library}/NativeBindingInterface.js +0 -0
  131. /package/build/{library → anoncreds-nodejs/src/library}/index.d.ts +0 -0
@@ -1,5 +1,5 @@
1
+ import * as ref from '@2060.io/ref-napi';
1
2
  import RefArray from 'ref-array-di';
2
- import * as ref from 'ref-napi';
3
3
  import RefStruct from 'ref-struct-di';
4
4
  export declare const StringArray: RefArray.ArrayType<string | null>;
5
5
  export declare const ByteBufferArray: RefArray.ArrayType<number>;
@@ -8,39 +8,39 @@ export declare const Int64Array: RefArray.ArrayType<string | number>;
8
8
  export declare const Int32Array: RefArray.ArrayType<number>;
9
9
  export declare const StringArrayPtr: ref.Type<ref.Pointer<RefArray.TypedArray<string | null, number>>>;
10
10
  export declare const ByteBufferStruct: RefStruct.StructType<{
11
- len: ref.Type<string | number>;
12
- data: ref.Type<ref.Pointer<string | null>>;
11
+ len: import("ref-napi").Type<string | number>;
12
+ data: import("ref-napi").Type<ref.Pointer<string | null>>;
13
13
  }>;
14
14
  export declare const ByteBufferStructPtr: ref.Type<ref.Pointer<RefStruct.StructObject<{
15
15
  len: string | number;
16
16
  data: ref.Pointer<string | null>;
17
17
  }>>>;
18
18
  export declare const StringListStruct: RefStruct.StructType<{
19
- count: ref.Type<string | number>;
20
- data: ref.Type<RefArray.TypedArray<string | null, number>>;
19
+ count: import("ref-napi").Type<string | number>;
20
+ data: import("ref-napi").Type<RefArray.TypedArray<string | null, number>>;
21
21
  }>;
22
22
  export declare const StringListStructPtr: ref.Type<ref.Pointer<RefStruct.StructObject<{
23
23
  count: string | number;
24
24
  data: RefArray.TypedArray<string | null, number>;
25
25
  }>>>;
26
26
  export declare const I64ListStruct: RefStruct.StructType<{
27
- count: ref.Type<string | number>;
28
- data: ref.Type<RefArray.TypedArray<string | number, number>>;
27
+ count: import("ref-napi").Type<string | number>;
28
+ data: import("ref-napi").Type<RefArray.TypedArray<string | number, number>>;
29
29
  }>;
30
30
  export declare const I32ListStruct: RefStruct.StructType<{
31
- count: ref.Type<string | number>;
32
- data: ref.Type<RefArray.TypedArray<number, number>>;
31
+ count: import("ref-napi").Type<string | number>;
32
+ data: import("ref-napi").Type<RefArray.TypedArray<number, number>>;
33
33
  }>;
34
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>;
35
+ reg_def: import("ref-napi").Type<string | number>;
36
+ reg_def_private: import("ref-napi").Type<string | number>;
37
+ status_list: import("ref-napi").Type<string | number>;
38
+ reg_idx: import("ref-napi").Type<string | number>;
39
39
  }>;
40
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>;
41
+ credential: import("ref-napi").Type<string | number>;
42
+ timestamp: import("ref-napi").Type<string | number>;
43
+ rev_state: import("ref-napi").Type<string | number>;
44
44
  }>;
45
45
  export declare const CredentialEntryArray: RefArray.ArrayType<RefStruct.StructObject<{
46
46
  credential: string | number;
@@ -48,18 +48,18 @@ export declare const CredentialEntryArray: RefArray.ArrayType<RefStruct.StructOb
48
48
  rev_state: string | number;
49
49
  }>>;
50
50
  export declare const CredentialEntryListStruct: RefStruct.StructType<{
51
- count: ref.Type<string | number>;
52
- data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
51
+ count: import("ref-napi").Type<string | number>;
52
+ data: import("ref-napi").Type<RefArray.TypedArray<RefStruct.StructObject<{
53
53
  credential: string | number;
54
54
  timestamp: string | number;
55
55
  rev_state: string | number;
56
56
  }>, number>>;
57
57
  }>;
58
58
  export declare const CredentialProveStruct: RefStruct.StructType<{
59
- entry_idx: ref.Type<string | number>;
60
- referent: ref.Type<string | null>;
61
- is_predicate: ref.Type<number>;
62
- reveal: ref.Type<number>;
59
+ entry_idx: import("ref-napi").Type<string | number>;
60
+ referent: import("ref-napi").Type<string | null>;
61
+ is_predicate: import("ref-napi").Type<number>;
62
+ reveal: import("ref-napi").Type<number>;
63
63
  }>;
64
64
  export declare const CredentialProveArray: RefArray.ArrayType<RefStruct.StructObject<{
65
65
  entry_idx: string | number;
@@ -68,8 +68,8 @@ export declare const CredentialProveArray: RefArray.ArrayType<RefStruct.StructOb
68
68
  reveal: number;
69
69
  }>>;
70
70
  export declare const CredentialProveListStruct: RefStruct.StructType<{
71
- count: ref.Type<string | number>;
72
- data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
71
+ count: import("ref-napi").Type<string | number>;
72
+ data: import("ref-napi").Type<RefArray.TypedArray<RefStruct.StructObject<{
73
73
  entry_idx: string | number;
74
74
  referent: string | null;
75
75
  is_predicate: number;
@@ -78,13 +78,13 @@ export declare const CredentialProveListStruct: RefStruct.StructType<{
78
78
  }>;
79
79
  export declare const ObjectHandleArray: RefArray.ArrayType<string | number>;
80
80
  export declare const ObjectHandleListStruct: RefStruct.StructType<{
81
- count: ref.Type<string | number>;
82
- data: ref.Type<RefArray.TypedArray<string | number, number>>;
81
+ count: import("ref-napi").Type<string | number>;
82
+ data: import("ref-napi").Type<RefArray.TypedArray<string | number, number>>;
83
83
  }>;
84
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>;
85
+ def_entry_idx: import("ref-napi").Type<string | number>;
86
+ entry: import("ref-napi").Type<string | number>;
87
+ timestamp: import("ref-napi").Type<string | number>;
88
88
  }>;
89
89
  export declare const RevocationEntryArray: RefArray.ArrayType<RefStruct.StructObject<{
90
90
  def_entry_idx: string | number;
@@ -92,17 +92,17 @@ export declare const RevocationEntryArray: RefArray.ArrayType<RefStruct.StructOb
92
92
  timestamp: string | number;
93
93
  }>>;
94
94
  export declare const RevocationEntryListStruct: RefStruct.StructType<{
95
- count: ref.Type<string | number>;
96
- data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
95
+ count: import("ref-napi").Type<string | number>;
96
+ data: import("ref-napi").Type<RefArray.TypedArray<RefStruct.StructObject<{
97
97
  def_entry_idx: string | number;
98
98
  entry: string | number;
99
99
  timestamp: string | number;
100
100
  }>, number>>;
101
101
  }>;
102
102
  export declare const NonRevokedIntervalOverrideStruct: RefStruct.StructType<{
103
- rev_reg_def_id: ref.Type<string | null>;
104
- requested_from_ts: ref.Type<number>;
105
- override_rev_status_list_ts: ref.Type<number>;
103
+ rev_reg_def_id: import("ref-napi").Type<string | null>;
104
+ requested_from_ts: import("ref-napi").Type<number>;
105
+ override_rev_status_list_ts: import("ref-napi").Type<number>;
106
106
  }>;
107
107
  export declare const NonRevokedIntervalOverrideArray: RefArray.ArrayType<RefStruct.StructObject<{
108
108
  rev_reg_def_id: string | null;
@@ -110,8 +110,8 @@ export declare const NonRevokedIntervalOverrideArray: RefArray.ArrayType<RefStru
110
110
  override_rev_status_list_ts: number;
111
111
  }>>;
112
112
  export declare const NonRevokedIntervalOverrideListStruct: RefStruct.StructType<{
113
- count: ref.Type<string | number>;
114
- data: ref.Type<RefArray.TypedArray<RefStruct.StructObject<{
113
+ count: import("ref-napi").Type<string | number>;
114
+ data: import("ref-napi").Type<RefArray.TypedArray<RefStruct.StructObject<{
115
115
  rev_reg_def_id: string | null;
116
116
  requested_from_ts: number;
117
117
  override_rev_status_list_ts: number;
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -23,17 +27,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
23
27
  };
24
28
  Object.defineProperty(exports, "__esModule", { value: true });
25
29
  exports.NonRevokedIntervalOverrideListStruct = exports.NonRevokedIntervalOverrideArray = exports.NonRevokedIntervalOverrideStruct = 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;
30
+ const ref = __importStar(require("@2060.io/ref-napi"));
26
31
  const ref_array_di_1 = __importDefault(require("ref-array-di"));
27
- const ref = __importStar(require("ref-napi"));
28
32
  const ref_struct_di_1 = __importDefault(require("ref-struct-di"));
29
33
  const primitives_1 = require("./primitives");
30
34
  const CStruct = (0, ref_struct_di_1.default)(ref);
31
35
  const CArray = (0, ref_array_di_1.default)(ref);
32
36
  exports.StringArray = CArray('string');
33
37
  const FFI_INT32_ARRAY = CArray('int32');
34
- const FFI_INT32_ARRAY_PTR = ref.refType(FFI_INT32_ARRAY);
35
38
  const FFI_INT64_ARRAY = CArray('int64');
36
- const FFI_INT64_ARRAY_PTR = ref.refType(FFI_INT64_ARRAY);
37
39
  exports.ByteBufferArray = CArray('uint8');
38
40
  exports.ByteBufferArrayPtr = ref.refType(primitives_1.FFI_STRING);
39
41
  exports.Int64Array = FFI_INT64_ARRAY;
@@ -41,72 +43,72 @@ exports.Int32Array = FFI_INT32_ARRAY;
41
43
  exports.StringArrayPtr = ref.refType(exports.StringArray);
42
44
  exports.ByteBufferStruct = CStruct({
43
45
  len: primitives_1.FFI_INT64,
44
- data: exports.ByteBufferArrayPtr,
46
+ data: exports.ByteBufferArrayPtr
45
47
  });
46
48
  exports.ByteBufferStructPtr = ref.refType(exports.ByteBufferStruct);
47
49
  exports.StringListStruct = CStruct({
48
50
  count: ref.types.size_t,
49
- data: exports.StringArray,
51
+ data: exports.StringArray
50
52
  });
51
53
  exports.StringListStructPtr = ref.refType(exports.StringListStruct);
52
54
  exports.I64ListStruct = CStruct({
53
55
  count: primitives_1.FFI_ISIZE,
54
- data: FFI_INT64_ARRAY,
56
+ data: FFI_INT64_ARRAY
55
57
  });
56
58
  exports.I32ListStruct = CStruct({
57
59
  count: primitives_1.FFI_ISIZE,
58
- data: FFI_INT32_ARRAY,
60
+ data: FFI_INT32_ARRAY
59
61
  });
60
62
  exports.CredRevInfoStruct = CStruct({
61
63
  reg_def: primitives_1.FFI_OBJECT_HANDLE,
62
64
  reg_def_private: primitives_1.FFI_OBJECT_HANDLE,
63
- reg_idx: primitives_1.FFI_INT64,
64
- tails_path: primitives_1.FFI_STRING,
65
+ status_list: primitives_1.FFI_OBJECT_HANDLE,
66
+ reg_idx: primitives_1.FFI_INT64
65
67
  });
66
68
  exports.CredentialEntryStruct = CStruct({
67
69
  credential: primitives_1.FFI_ISIZE,
68
70
  timestamp: primitives_1.FFI_INT64,
69
- rev_state: primitives_1.FFI_ISIZE,
71
+ rev_state: primitives_1.FFI_ISIZE
70
72
  });
71
73
  exports.CredentialEntryArray = CArray(exports.CredentialEntryStruct);
72
74
  exports.CredentialEntryListStruct = CStruct({
73
75
  count: primitives_1.FFI_ISIZE,
74
- data: exports.CredentialEntryArray,
76
+ data: exports.CredentialEntryArray
75
77
  });
76
78
  exports.CredentialProveStruct = CStruct({
77
79
  entry_idx: primitives_1.FFI_INT64,
78
80
  referent: primitives_1.FFI_STRING,
79
81
  is_predicate: primitives_1.FFI_INT8,
80
- reveal: primitives_1.FFI_INT8,
82
+ reveal: primitives_1.FFI_INT8
81
83
  });
82
84
  exports.CredentialProveArray = CArray(exports.CredentialProveStruct);
83
85
  exports.CredentialProveListStruct = CStruct({
84
86
  count: primitives_1.FFI_ISIZE,
85
- data: exports.CredentialProveArray,
87
+ data: exports.CredentialProveArray
86
88
  });
87
89
  exports.ObjectHandleArray = CArray('size_t');
88
90
  exports.ObjectHandleListStruct = CStruct({
89
91
  count: primitives_1.FFI_ISIZE,
90
- data: exports.ObjectHandleArray,
92
+ data: exports.ObjectHandleArray
91
93
  });
92
94
  exports.RevocationEntryStruct = CStruct({
93
95
  def_entry_idx: primitives_1.FFI_INT64,
94
96
  entry: primitives_1.FFI_ISIZE,
95
- timestamp: primitives_1.FFI_INT64,
97
+ timestamp: primitives_1.FFI_INT64
96
98
  });
97
99
  exports.RevocationEntryArray = CArray(exports.RevocationEntryStruct);
98
100
  exports.RevocationEntryListStruct = CStruct({
99
101
  count: primitives_1.FFI_ISIZE,
100
- data: exports.RevocationEntryArray,
102
+ data: exports.RevocationEntryArray
101
103
  });
102
104
  exports.NonRevokedIntervalOverrideStruct = CStruct({
103
105
  rev_reg_def_id: primitives_1.FFI_STRING,
104
106
  requested_from_ts: primitives_1.FFI_INT32,
105
- override_rev_status_list_ts: primitives_1.FFI_INT32,
107
+ override_rev_status_list_ts: primitives_1.FFI_INT32
106
108
  });
107
109
  exports.NonRevokedIntervalOverrideArray = CArray(exports.NonRevokedIntervalOverrideStruct);
108
110
  exports.NonRevokedIntervalOverrideListStruct = CStruct({
109
111
  count: primitives_1.FFI_ISIZE,
110
- data: exports.NonRevokedIntervalOverrideArray,
112
+ data: exports.NonRevokedIntervalOverrideArray
111
113
  });
112
114
  //# sourceMappingURL=structures.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"structures.js","sourceRoot":"","sources":["../../../../src/ffi/structures.ts"],"names":[],"mappings":"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"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -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"}
@@ -9,19 +9,17 @@ interface StringTypeMapping {
9
9
  int: number;
10
10
  size_t: number;
11
11
  }
12
- declare type ShapeOf<T> = {
12
+ type ShapeOf<T> = {
13
13
  [Property in keyof T]: T[Property];
14
14
  };
15
- declare type StringTypeArrayToTypes<List extends Array<keyof StringTypeMapping>> = {
15
+ type StringTypeArrayToTypes<List extends (keyof StringTypeMapping)[]> = {
16
16
  [Item in keyof List]: List[Item] extends keyof StringTypeMapping ? StringTypeMapping[List[Item]] : Buffer;
17
17
  };
18
- declare type TypedMethods<Base extends {
19
- [method: string | number | symbol]: [any, any[]];
20
- }> = {
18
+ type TypedMethods<Base extends Record<string | number | symbol, [any, any[]]>> = {
21
19
  [Property in keyof Base]: (...args: StringTypeArrayToTypes<Base[Property][1]> extends any[] ? StringTypeArrayToTypes<Base[Property][1]> : []) => StringTypeMapping[Base[Property][0]];
22
20
  };
23
- declare type Mutable<T> = {
21
+ type Mutable<T> = {
24
22
  -readonly [K in keyof T]: Mutable<T[K]>;
25
23
  };
26
- export declare type NativeMethods = TypedMethods<ShapeOf<Mutable<typeof nativeBindings>>>;
24
+ export type NativeMethods = TypedMethods<ShapeOf<Mutable<typeof nativeBindings>>>;
27
25
  export {};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeBindingInterface.js","sourceRoot":"","sources":["../../../../src/library/NativeBindingInterface.ts"],"names":[],"mappings":";AAAA,uDAAuD"}
@@ -1,7 +1,7 @@
1
1
  export declare const nativeBindings: {
2
- readonly anoncreds_buffer_free: readonly [import("ref-napi").Type<void>, readonly [import("ref-struct-di").StructType<{
2
+ readonly anoncreds_buffer_free: readonly [import("@2060.io/ref-napi").Type<void>, readonly [import("ref-struct-di").StructType<{
3
3
  len: import("ref-napi").Type<string | number>;
4
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
4
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
5
5
  }>]];
6
6
  readonly anoncreds_create_credential: readonly ["uint", readonly ["size_t", "size_t", "size_t", "size_t", import("ref-struct-di").StructType<{
7
7
  count: import("ref-napi").Type<string | number>;
@@ -12,12 +12,12 @@ export declare const nativeBindings: {
12
12
  }>, import("ref-struct-di").StructType<{
13
13
  count: import("ref-napi").Type<string | number>;
14
14
  data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
15
- }>, "string", "size_t", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
16
- 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>>]];
17
- readonly anoncreds_create_credential_offer: readonly ["uint", readonly ["string", "string", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
18
- readonly anoncreds_create_credential_request: readonly ["uint", readonly ["string", "string", "size_t", "string", "string", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
19
- readonly anoncreds_create_link_secret: readonly ["uint", readonly [import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
20
- 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>>]];
15
+ }>, "size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
16
+ readonly anoncreds_create_credential_definition: readonly ["uint", readonly ["string", "size_t", "string", "string", "string", "int8", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
17
+ readonly anoncreds_create_credential_offer: readonly ["uint", readonly ["string", "string", "size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
18
+ readonly anoncreds_create_credential_request: readonly ["uint", readonly ["string", "string", "size_t", "string", "string", "size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
19
+ readonly anoncreds_create_link_secret: readonly ["uint", readonly [import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
20
+ readonly anoncreds_create_or_update_revocation_state: readonly ["uint", readonly ["size_t", "size_t", "int64", "string", "size_t", "size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
21
21
  readonly anoncreds_create_presentation: readonly ["uint", readonly ["size_t", import("ref-struct-di").StructType<{
22
22
  count: import("ref-napi").Type<string | number>;
23
23
  data: import("ref-napi").Type<import("ref-array-di").TypedArray<import("ref-struct-di").StructObject<{
@@ -51,31 +51,32 @@ export declare const nativeBindings: {
51
51
  }>, import("ref-struct-di").StructType<{
52
52
  count: import("ref-napi").Type<string | number>;
53
53
  data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
54
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
55
- 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>>]];
54
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
55
+ readonly anoncreds_create_revocation_registry_def: readonly ["uint", readonly ["size_t", "string", "string", "string", "string", "int64", "string", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
56
56
  readonly anoncreds_create_schema: readonly ["uint", readonly ["string", "string", "string", import("ref-struct-di").StructType<{
57
57
  count: import("ref-napi").Type<string | number>;
58
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_credential_get_attribute: readonly ["uint", readonly ["size_t", "string", import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
59
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
60
+ readonly anoncreds_credential_get_attribute: readonly ["uint", readonly ["size_t", "string", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
61
61
  readonly anoncreds_encode_credential_attributes: readonly ["uint", readonly [import("ref-struct-di").StructType<{
62
62
  count: import("ref-napi").Type<string | number>;
63
63
  data: import("ref-napi").Type<import("ref-array-di").TypedArray<string | null, number>>;
64
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
65
- readonly anoncreds_generate_nonce: readonly ["uint", readonly [import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
66
- readonly anoncreds_get_current_error: readonly ["uint", readonly [import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
67
- readonly anoncreds_object_free: readonly [import("ref-napi").Type<void>, readonly ["size_t"]];
68
- readonly anoncreds_object_get_json: readonly ["uint", readonly ["size_t", import("ref-napi").Type<import("ref-napi").Pointer<import("ref-struct-di").StructObject<{
64
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
65
+ readonly anoncreds_generate_nonce: readonly ["uint", readonly [import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
66
+ readonly anoncreds_get_current_error: readonly ["uint", readonly [import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
67
+ readonly anoncreds_object_free: readonly [import("@2060.io/ref-napi").Type<void>, readonly ["size_t"]];
68
+ readonly anoncreds_string_free: readonly [import("@2060.io/ref-napi").Type<void>, readonly [import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
69
+ readonly anoncreds_object_get_json: readonly ["uint", readonly ["size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<import("ref-struct-di").StructObject<{
69
70
  len: string | number;
70
- data: import("ref-napi").Pointer<string | null>;
71
+ data: import("@2060.io/ref-napi").Pointer<string | null>;
71
72
  }>>>]];
72
- readonly anoncreds_object_get_type_name: readonly ["uint", readonly ["size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
73
+ readonly anoncreds_object_get_type_name: readonly ["uint", readonly ["size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
73
74
  readonly anoncreds_presentation_request_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
74
75
  len: import("ref-napi").Type<string | number>;
75
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
76
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
77
- readonly anoncreds_process_credential: readonly ["uint", readonly ["size_t", "size_t", "string", "size_t", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
78
- readonly anoncreds_revocation_registry_definition_get_attribute: readonly ["uint", readonly ["size_t", "string", import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
76
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
77
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
78
+ readonly anoncreds_process_credential: readonly ["uint", readonly ["size_t", "size_t", "string", "size_t", "size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
79
+ readonly anoncreds_revocation_registry_definition_get_attribute: readonly ["uint", readonly ["size_t", "string", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
79
80
  readonly anoncreds_set_default_logger: readonly ["uint", readonly []];
80
81
  readonly anoncreds_verify_presentation: readonly ["uint", readonly ["size_t", "size_t", import("ref-struct-di").StructType<{
81
82
  count: import("ref-napi").Type<string | number>;
@@ -105,71 +106,71 @@ export declare const nativeBindings: {
105
106
  requested_from_ts: number;
106
107
  override_rev_status_list_ts: number;
107
108
  }>, number>>;
108
- }>, import("ref-napi").Type<import("ref-napi").Pointer<number>>]];
109
- readonly anoncreds_create_revocation_status_list: readonly ["uint", readonly ["string", "size_t", "string", "int64", "int8", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
110
- readonly anoncreds_update_revocation_status_list_timestamp_only: readonly ["uint", readonly ["int64", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
111
- readonly anoncreds_update_revocation_status_list: readonly ["uint", readonly ["int64", import("ref-struct-di").StructType<{
109
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<number>>]];
110
+ readonly anoncreds_create_revocation_status_list: readonly ["uint", readonly ["size_t", "string", "size_t", "size_t", "string", "int8", "int64", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
111
+ readonly anoncreds_update_revocation_status_list_timestamp_only: readonly ["uint", readonly ["int64", "size_t", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
112
+ readonly anoncreds_update_revocation_status_list: readonly ["uint", readonly ["size_t", "size_t", "size_t", "size_t", import("ref-struct-di").StructType<{
112
113
  count: import("ref-napi").Type<string | number>;
113
114
  data: import("ref-napi").Type<import("ref-array-di").TypedArray<number, number>>;
114
115
  }>, import("ref-struct-di").StructType<{
115
116
  count: import("ref-napi").Type<string | number>;
116
117
  data: import("ref-napi").Type<import("ref-array-di").TypedArray<number, number>>;
117
- }>, "size_t", "size_t", import("ref-napi").Type<import("ref-napi").Pointer<string | number>>]];
118
+ }>, "int64", import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | number>>]];
118
119
  readonly anoncreds_version: readonly ["string", readonly []];
119
120
  readonly anoncreds_credential_request_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
120
121
  len: import("ref-napi").Type<string | number>;
121
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
122
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
122
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
123
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
123
124
  readonly anoncreds_credential_request_metadata_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
124
125
  len: import("ref-napi").Type<string | number>;
125
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
126
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
126
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
127
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
127
128
  readonly anoncreds_presentation_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
128
129
  len: import("ref-napi").Type<string | number>;
129
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
130
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
130
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
131
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
131
132
  readonly anoncreds_credential_offer_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
132
133
  len: import("ref-napi").Type<string | number>;
133
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
134
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
134
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
135
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
135
136
  readonly anoncreds_revocation_registry_definition_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
136
137
  len: import("ref-napi").Type<string | number>;
137
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
138
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
138
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
139
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
139
140
  readonly anoncreds_revocation_registry_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
140
141
  len: import("ref-napi").Type<string | number>;
141
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
142
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
142
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
143
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
143
144
  readonly anoncreds_revocation_status_list_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
144
145
  len: import("ref-napi").Type<string | number>;
145
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
146
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
146
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
147
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
147
148
  readonly anoncreds_revocation_state_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
148
149
  len: import("ref-napi").Type<string | number>;
149
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
150
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
150
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
151
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
151
152
  readonly anoncreds_credential_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
152
153
  len: import("ref-napi").Type<string | number>;
153
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
154
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
154
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
155
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
155
156
  readonly anoncreds_credential_definition_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
156
157
  len: import("ref-napi").Type<string | number>;
157
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
158
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
158
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
159
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
159
160
  readonly anoncreds_credential_definition_private_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
160
161
  len: import("ref-napi").Type<string | number>;
161
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
162
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
162
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
163
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
163
164
  readonly anoncreds_revocation_registry_definition_private_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
164
165
  len: import("ref-napi").Type<string | number>;
165
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
166
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
166
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
167
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
167
168
  readonly anoncreds_key_correctness_proof_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
168
169
  len: import("ref-napi").Type<string | number>;
169
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
170
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
170
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
171
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
171
172
  readonly anoncreds_schema_from_json: readonly ["uint", readonly [import("ref-struct-di").StructType<{
172
173
  len: import("ref-napi").Type<string | number>;
173
- data: import("ref-napi").Type<import("ref-napi").Pointer<string | null>>;
174
- }>, import("ref-napi").Type<import("ref-napi").Pointer<string | null>>]];
174
+ data: import("ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>;
175
+ }>, import("@2060.io/ref-napi").Type<import("@2060.io/ref-napi").Pointer<string | null>>]];
175
176
  };