@reallyme/codec 0.1.21 → 0.2.0
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.
- package/NOTICE +16 -0
- package/README.md +55 -4
- package/dist/boundary.d.ts +17 -0
- package/dist/boundary.js +277 -0
- package/dist/cbor.d.ts +67 -4
- package/dist/cbor.js +1252 -66
- package/dist/deterministicCborBoundary.d.ts +11 -0
- package/dist/deterministicCborBoundary.js +17 -0
- package/dist/index.d.ts +39 -22
- package/dist/index.js +14 -18
- package/dist/jcs.js +3 -60
- package/dist/multiformat.d.ts +10 -12
- package/dist/multiformat.js +155 -91
- package/dist/operationContract.d.ts +31 -0
- package/dist/operationContract.js +754 -0
- package/dist/pem.d.ts +2 -5
- package/dist/pem.js +265 -41
- package/dist/proto/generated/reallyme/codec/v1/codec_pb.d.ts +906 -13
- package/dist/proto/generated/reallyme/codec/v1/codec_pb.js +278 -23
- package/dist/proto.d.ts +2 -2
- package/dist/proto.js +1 -1
- package/dist/readOutput.d.ts +8 -7
- package/dist/readOutput.js +136 -22
- package/dist/wasm/reallyme_codec_wasm.d.ts +25 -140
- package/dist/wasm/reallyme_codec_wasm.js +134 -428
- package/dist/wasm/reallyme_codec_wasm_bg.wasm +0 -0
- package/dist/wasmProvider.d.ts +5 -31
- package/dist/wasmProvider.js +18 -51
- package/package.json +4 -1
package/dist/readOutput.js
CHANGED
|
@@ -1,9 +1,80 @@
|
|
|
1
1
|
// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
|
|
2
2
|
//
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
import { MAX_CODEC_FFI_INPUT_BYTES, MAX_CODEC_FFI_OUTPUT_BYTES, requireBoundaryUtf8String, } from "./boundary.js";
|
|
4
5
|
import { ReallyMeCodecError } from "./errors.js";
|
|
6
|
+
const uint8ArraySubarray = Uint8Array.prototype.subarray;
|
|
7
|
+
const uint8ArraySet = Uint8Array.prototype.set;
|
|
8
|
+
const readProviderProperty = (object, name, allowMissing = false) => {
|
|
9
|
+
try {
|
|
10
|
+
const descriptor = Object.getOwnPropertyDescriptor(object, name);
|
|
11
|
+
if (descriptor === undefined) {
|
|
12
|
+
if (allowMissing) {
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
16
|
+
}
|
|
17
|
+
if (!("value" in descriptor)) {
|
|
18
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
19
|
+
}
|
|
20
|
+
return descriptor.value;
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
if (error instanceof ReallyMeCodecError) {
|
|
24
|
+
throw error;
|
|
25
|
+
}
|
|
26
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
const requireBoundedProviderString = (value, allowEmpty) => {
|
|
30
|
+
try {
|
|
31
|
+
requireBoundaryUtf8String(value, allowEmpty, MAX_CODEC_FFI_OUTPUT_BYTES);
|
|
32
|
+
return value;
|
|
33
|
+
}
|
|
34
|
+
catch (_error) {
|
|
35
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
36
|
+
}
|
|
37
|
+
};
|
|
5
38
|
export const ensureBytesInput = (value) => {
|
|
6
|
-
if (!(value instanceof Uint8Array)
|
|
39
|
+
if (!(value instanceof Uint8Array) ||
|
|
40
|
+
!ArrayBuffer.isView(value) ||
|
|
41
|
+
value.constructor !== Uint8Array) {
|
|
42
|
+
throw new ReallyMeCodecError("invalid-input");
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Copies one bounded caller-owned byte view and verifies that the same length
|
|
47
|
+
* was copied. Length-tracking resizable buffers, detached buffers, and exotic
|
|
48
|
+
* typed-array wrappers must not let validation observe one length while the
|
|
49
|
+
* provider or protobuf serializer consumes another.
|
|
50
|
+
*/
|
|
51
|
+
export const snapshotBoundedBytesInput = (value, maximumLength = MAX_CODEC_FFI_INPUT_BYTES) => {
|
|
52
|
+
ensureBytesInput(value);
|
|
53
|
+
const expectedLength = value.length;
|
|
54
|
+
if (expectedLength > maximumLength) {
|
|
55
|
+
throw new ReallyMeCodecError("invalid-input");
|
|
56
|
+
}
|
|
57
|
+
let snapshot;
|
|
58
|
+
try {
|
|
59
|
+
const boundedView = uint8ArraySubarray.call(value, 0, expectedLength);
|
|
60
|
+
if (boundedView.length !== expectedLength) {
|
|
61
|
+
throw new ReallyMeCodecError("invalid-input");
|
|
62
|
+
}
|
|
63
|
+
snapshot = new Uint8Array(expectedLength);
|
|
64
|
+
uint8ArraySet.call(snapshot, boundedView, 0);
|
|
65
|
+
if (value.length !== expectedLength ||
|
|
66
|
+
boundedView.length !== expectedLength ||
|
|
67
|
+
snapshot.length !== expectedLength) {
|
|
68
|
+
snapshot.fill(0);
|
|
69
|
+
throw new ReallyMeCodecError("invalid-input");
|
|
70
|
+
}
|
|
71
|
+
return snapshot;
|
|
72
|
+
}
|
|
73
|
+
catch (error) {
|
|
74
|
+
snapshot?.fill(0);
|
|
75
|
+
if (error instanceof ReallyMeCodecError) {
|
|
76
|
+
throw error;
|
|
77
|
+
}
|
|
7
78
|
throw new ReallyMeCodecError("invalid-input");
|
|
8
79
|
}
|
|
9
80
|
};
|
|
@@ -27,8 +98,38 @@ export const readBytesOutput = (value) => {
|
|
|
27
98
|
if (!(value instanceof Uint8Array)) {
|
|
28
99
|
throw new ReallyMeCodecError("provider-failure");
|
|
29
100
|
}
|
|
101
|
+
if (value.length > MAX_CODEC_FFI_OUTPUT_BYTES) {
|
|
102
|
+
value.fill(0);
|
|
103
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
104
|
+
}
|
|
30
105
|
return value;
|
|
31
106
|
};
|
|
107
|
+
export const readIndependentBoundedBytesOutput = (value, input, maximumLength) => {
|
|
108
|
+
try {
|
|
109
|
+
if (!(value instanceof Uint8Array)) {
|
|
110
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
111
|
+
}
|
|
112
|
+
// Even non-overlapping views into one ArrayBuffer share transfer and detach
|
|
113
|
+
// semantics, so they do not provide independent result ownership.
|
|
114
|
+
if (value.buffer === input.buffer) {
|
|
115
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
116
|
+
}
|
|
117
|
+
if (value.length === 0 || value.length > maximumLength) {
|
|
118
|
+
value.fill(0);
|
|
119
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
120
|
+
}
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
catch (error) {
|
|
124
|
+
if (error instanceof ReallyMeCodecError) {
|
|
125
|
+
throw error;
|
|
126
|
+
}
|
|
127
|
+
// Detached views and proxy-wrapped typed arrays can throw while reading
|
|
128
|
+
// buffer metadata or clearing storage. They are malformed provider output,
|
|
129
|
+
// never platform exceptions that should escape the typed SDK contract.
|
|
130
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
131
|
+
}
|
|
132
|
+
};
|
|
32
133
|
export const readNumberOutput = (value) => {
|
|
33
134
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 0) {
|
|
34
135
|
throw new ReallyMeCodecError("provider-failure");
|
|
@@ -39,56 +140,60 @@ export const readObjectOutput = (value) => {
|
|
|
39
140
|
if (typeof value !== "object" || value === null) {
|
|
40
141
|
throw new ReallyMeCodecError("provider-failure");
|
|
41
142
|
}
|
|
42
|
-
|
|
143
|
+
try {
|
|
144
|
+
const prototype = Object.getPrototypeOf(value);
|
|
145
|
+
if (prototype !== Object.prototype && prototype !== null) {
|
|
146
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
147
|
+
}
|
|
148
|
+
return value;
|
|
149
|
+
}
|
|
150
|
+
catch (error) {
|
|
151
|
+
if (error instanceof ReallyMeCodecError) {
|
|
152
|
+
throw error;
|
|
153
|
+
}
|
|
154
|
+
throw new ReallyMeCodecError("provider-failure");
|
|
155
|
+
}
|
|
43
156
|
};
|
|
44
157
|
export const readStringOutput = (value) => {
|
|
45
158
|
if (typeof value !== "string") {
|
|
46
159
|
throw new ReallyMeCodecError("provider-failure");
|
|
47
160
|
}
|
|
48
|
-
return value;
|
|
161
|
+
return requireBoundedProviderString(value, true);
|
|
49
162
|
};
|
|
50
163
|
export const readStringProperty = (object, name) => {
|
|
51
|
-
const value =
|
|
164
|
+
const value = readProviderProperty(object, name);
|
|
52
165
|
if (typeof value !== "string" || value.length === 0) {
|
|
53
166
|
throw new ReallyMeCodecError("provider-failure");
|
|
54
167
|
}
|
|
55
|
-
return value;
|
|
168
|
+
return requireBoundedProviderString(value, false);
|
|
56
169
|
};
|
|
57
170
|
export const readStringValueProperty = (object, name) => {
|
|
58
|
-
const value =
|
|
171
|
+
const value = readProviderProperty(object, name);
|
|
59
172
|
if (typeof value !== "string") {
|
|
60
173
|
throw new ReallyMeCodecError("provider-failure");
|
|
61
174
|
}
|
|
62
|
-
return value;
|
|
175
|
+
return requireBoundedProviderString(value, true);
|
|
63
176
|
};
|
|
64
177
|
export const readBooleanProperty = (object, name) => {
|
|
65
|
-
const value =
|
|
178
|
+
const value = readProviderProperty(object, name);
|
|
66
179
|
if (typeof value !== "boolean") {
|
|
67
180
|
throw new ReallyMeCodecError("provider-failure");
|
|
68
181
|
}
|
|
69
182
|
return value;
|
|
70
183
|
};
|
|
71
184
|
export const readBytesProperty = (object, name) => {
|
|
72
|
-
const value =
|
|
185
|
+
const value = readProviderProperty(object, name);
|
|
73
186
|
if (!(value instanceof Uint8Array)) {
|
|
74
187
|
throw new ReallyMeCodecError("provider-failure");
|
|
75
188
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
export const readProtoResultOutput = (value) => {
|
|
79
|
-
const object = readObjectOutput(value);
|
|
80
|
-
const status = readStringProperty(object, "status");
|
|
81
|
-
if (status !== "result" && status !== "codec-error") {
|
|
189
|
+
if (value.length > MAX_CODEC_FFI_OUTPUT_BYTES) {
|
|
190
|
+
value.fill(0);
|
|
82
191
|
throw new ReallyMeCodecError("provider-failure");
|
|
83
192
|
}
|
|
84
|
-
return
|
|
85
|
-
status,
|
|
86
|
-
bytes: readBytesProperty(object, "bytes"),
|
|
87
|
-
isCodecError: status === "codec-error",
|
|
88
|
-
};
|
|
193
|
+
return value;
|
|
89
194
|
};
|
|
90
195
|
export const readOptionalLengthProperty = (object, name) => {
|
|
91
|
-
const value =
|
|
196
|
+
const value = readProviderProperty(object, name, true);
|
|
92
197
|
if (value === undefined) {
|
|
93
198
|
return undefined;
|
|
94
199
|
}
|
|
@@ -98,8 +203,17 @@ export const readOptionalLengthProperty = (object, name) => {
|
|
|
98
203
|
return value;
|
|
99
204
|
};
|
|
100
205
|
export const asciiBytesToString = (bytes) => {
|
|
206
|
+
if (bytes.length > MAX_CODEC_FFI_INPUT_BYTES) {
|
|
207
|
+
throw new ReallyMeCodecError("invalid-input");
|
|
208
|
+
}
|
|
101
209
|
let value = "";
|
|
102
|
-
|
|
210
|
+
// Indexed access avoids executing an attacker-supplied iterator installed
|
|
211
|
+
// on an otherwise valid Uint8Array instance.
|
|
212
|
+
for (let index = 0; index < bytes.length; index += 1) {
|
|
213
|
+
const byte = bytes[index];
|
|
214
|
+
if (byte === undefined) {
|
|
215
|
+
throw new ReallyMeCodecError("invalid-input");
|
|
216
|
+
}
|
|
103
217
|
if (byte > 0x7f) {
|
|
104
218
|
throw new ReallyMeCodecError("invalid-input");
|
|
105
219
|
}
|
|
@@ -56,16 +56,6 @@ export function dagCborCodecCode(): number;
|
|
|
56
56
|
*/
|
|
57
57
|
export function dagCborComputeCid(bytes: Uint8Array): string;
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* Decode canonical DAG-CBOR bytes into the tagged JSON representation.
|
|
61
|
-
*/
|
|
62
|
-
export function dagCborDecode(bytes: Uint8Array): string;
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* Encode a tagged JSON representation as canonical DAG-CBOR bytes.
|
|
66
|
-
*/
|
|
67
|
-
export function dagCborEncode(value_json: string): Uint8Array;
|
|
68
|
-
|
|
69
59
|
/**
|
|
70
60
|
* Return the sha2-256 multihash envelope for canonical DAG-CBOR bytes.
|
|
71
61
|
*/
|
|
@@ -76,21 +66,6 @@ export function dagCborMultihash(bytes: Uint8Array): Uint8Array;
|
|
|
76
66
|
*/
|
|
77
67
|
export function dagCborSha256ContentHash(bytes: Uint8Array): Uint8Array;
|
|
78
68
|
|
|
79
|
-
/**
|
|
80
|
-
* Recompute and compare a CIDv1 dag-cbor/sha2-256 string.
|
|
81
|
-
*/
|
|
82
|
-
export function dagCborVerifyCid(cid: string, bytes: Uint8Array): any;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Recompute and compare a CID as a `CodecDagCborVerifyCidResult` protobuf message.
|
|
86
|
-
*/
|
|
87
|
-
export function dagCborVerifyCidProto(cid: string, bytes: Uint8Array): Uint8Array;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Recompute and compare a CID protobuf message with an explicit result status.
|
|
91
|
-
*/
|
|
92
|
-
export function dagCborVerifyCidProtoResult(cid: string, bytes: Uint8Array): any;
|
|
93
|
-
|
|
94
69
|
/**
|
|
95
70
|
* Return whether a string parses as a CID.
|
|
96
71
|
*/
|
|
@@ -116,95 +91,25 @@ export function multibaseBase64urlEncode(bytes: Uint8Array): string;
|
|
|
116
91
|
*/
|
|
117
92
|
export function multibaseDecode(encoded: string): Uint8Array;
|
|
118
93
|
|
|
119
|
-
/**
|
|
120
|
-
* Resolve a byte slice that starts with a known multicodec prefix.
|
|
121
|
-
*/
|
|
122
|
-
export function multicodecLookupPrefix(bytes: Uint8Array): any;
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* Resolve a prefix as a `CodecMulticodecLookupResult` protobuf message.
|
|
126
|
-
*/
|
|
127
|
-
export function multicodecLookupPrefixProto(bytes: Uint8Array): Uint8Array;
|
|
128
|
-
|
|
129
|
-
/**
|
|
130
|
-
* Resolve a prefix protobuf message with an explicit result status.
|
|
131
|
-
*/
|
|
132
|
-
export function multicodecLookupPrefixProtoResult(bytes: Uint8Array): any;
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Return multicodec metadata for a canonical codec name.
|
|
136
|
-
*/
|
|
137
|
-
export function multicodecPrefixForName(codec_name: string): any;
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Return multicodec metadata as a `CodecMulticodecSpec` protobuf message.
|
|
141
|
-
*/
|
|
142
|
-
export function multicodecPrefixForNameProto(codec_name: string): Uint8Array;
|
|
143
|
-
|
|
144
|
-
/**
|
|
145
|
-
* Return multicodec metadata protobuf bytes with an explicit result status.
|
|
146
|
-
*/
|
|
147
|
-
export function multicodecPrefixForNameProtoResult(codec_name: string): any;
|
|
148
|
-
|
|
149
94
|
/**
|
|
150
95
|
* Strip a known multicodec prefix, or return the original bytes when none is found.
|
|
151
96
|
*/
|
|
152
97
|
export function multicodecStripPrefix(bytes: Uint8Array): Uint8Array;
|
|
153
98
|
|
|
154
|
-
/**
|
|
155
|
-
* Return the supported multicodec table.
|
|
156
|
-
*/
|
|
157
|
-
export function multicodecTable(): any;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Return the supported multicodec table as protobuf bytes.
|
|
161
|
-
*/
|
|
162
|
-
export function multicodecTableProto(): Uint8Array;
|
|
163
|
-
|
|
164
|
-
/**
|
|
165
|
-
* Return the supported multicodec table protobuf bytes with an explicit result status.
|
|
166
|
-
*/
|
|
167
|
-
export function multicodecTableProtoResult(): any;
|
|
168
|
-
|
|
169
99
|
/**
|
|
170
100
|
* Encode a public key as a multibase base58btc multikey.
|
|
171
101
|
*/
|
|
172
102
|
export function multikeyEncode(codec_name: string, public_key: Uint8Array): string;
|
|
173
103
|
|
|
174
104
|
/**
|
|
175
|
-
*
|
|
176
|
-
*/
|
|
177
|
-
export function multikeyParse(multikey: string): any;
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Parse and validate a multikey as a `CodecMultikeyParseResult` protobuf message.
|
|
181
|
-
*/
|
|
182
|
-
export function multikeyParseProto(multikey: string): Uint8Array;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* Parse and validate a multikey protobuf message with an explicit result status.
|
|
186
|
-
*/
|
|
187
|
-
export function multikeyParseProtoResult(multikey: string): any;
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* Decode PEM text armor with caller-supplied size and label policy.
|
|
191
|
-
*/
|
|
192
|
-
export function pemDecode(input: string, options_json: string): any;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Decode PEM text armor as a `CodecPemDecodeResult` protobuf message.
|
|
105
|
+
* Execute one generated binary protobuf request and return a fully discriminated response.
|
|
196
106
|
*/
|
|
197
|
-
export function
|
|
107
|
+
export function processOperation(request: Uint8Array): Uint8Array;
|
|
198
108
|
|
|
199
109
|
/**
|
|
200
|
-
*
|
|
110
|
+
* Execute one generated ProtoJSON request and return a discriminated response.
|
|
201
111
|
*/
|
|
202
|
-
export function
|
|
203
|
-
|
|
204
|
-
/**
|
|
205
|
-
* Encode DER bytes as PEM text armor.
|
|
206
|
-
*/
|
|
207
|
-
export function pemEncode(label: string, der: Uint8Array, options_json: string): string;
|
|
112
|
+
export function processOperationJson(request_json: Uint8Array): Uint8Array;
|
|
208
113
|
|
|
209
114
|
/**
|
|
210
115
|
* Fail closed when a codec name is not in the supported table.
|
|
@@ -225,57 +130,37 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
225
130
|
|
|
226
131
|
export interface InitOutput {
|
|
227
132
|
readonly memory: WebAssembly.Memory;
|
|
228
|
-
readonly base58btcDecode: (a:
|
|
133
|
+
readonly base58btcDecode: (a: any) => [number, number, number];
|
|
229
134
|
readonly base58btcEncode: (a: any) => [number, number, number, number];
|
|
230
|
-
readonly base64Decode: (a:
|
|
231
|
-
readonly base64Encode: (a: any) => [number, number];
|
|
232
|
-
readonly base64urlDecode: (a:
|
|
233
|
-
readonly base64urlEncode: (a: any) => [number, number];
|
|
234
|
-
readonly bindingTypeMatchesCodec: (a:
|
|
235
|
-
readonly bytesToLowerHex: (a: any) => [number, number];
|
|
236
|
-
readonly canonicalizeJson: (a:
|
|
135
|
+
readonly base64Decode: (a: any) => [number, number, number];
|
|
136
|
+
readonly base64Encode: (a: any) => [number, number, number, number];
|
|
137
|
+
readonly base64urlDecode: (a: any) => [number, number, number];
|
|
138
|
+
readonly base64urlEncode: (a: any) => [number, number, number, number];
|
|
139
|
+
readonly bindingTypeMatchesCodec: (a: any, b: any) => [number, number, number];
|
|
140
|
+
readonly bytesToLowerHex: (a: any) => [number, number, number, number];
|
|
141
|
+
readonly canonicalizeJson: (a: any) => [number, number, number, number];
|
|
237
142
|
readonly dagCborCodecCode: () => number;
|
|
238
143
|
readonly dagCborComputeCid: (a: any) => [number, number, number, number];
|
|
239
|
-
readonly dagCborDecode: (a: any) => [number, number, number, number];
|
|
240
|
-
readonly dagCborEncode: (a: number, b: number) => [number, number, number];
|
|
241
144
|
readonly dagCborMultihash: (a: any) => [number, number, number];
|
|
242
145
|
readonly dagCborSha256ContentHash: (a: any) => [number, number, number];
|
|
243
|
-
readonly
|
|
244
|
-
readonly
|
|
245
|
-
readonly dagCborVerifyCidProtoResult: (a: number, b: number, c: any) => [number, number, number];
|
|
246
|
-
readonly isValidCidString: (a: number, b: number) => number;
|
|
247
|
-
readonly lowerHexToBytes: (a: number, b: number) => [number, number, number];
|
|
146
|
+
readonly isValidCidString: (a: any) => [number, number, number];
|
|
147
|
+
readonly lowerHexToBytes: (a: any) => [number, number, number];
|
|
248
148
|
readonly multibaseBase58btcEncode: (a: any) => [number, number, number, number];
|
|
249
|
-
readonly multibaseBase64urlEncode: (a: any) => [number, number];
|
|
250
|
-
readonly multibaseDecode: (a:
|
|
251
|
-
readonly
|
|
252
|
-
readonly
|
|
253
|
-
readonly
|
|
254
|
-
readonly
|
|
255
|
-
readonly
|
|
256
|
-
readonly
|
|
257
|
-
readonly
|
|
258
|
-
readonly multicodecTable: () => [number, number, number];
|
|
259
|
-
readonly multicodecTableProto: () => [number, number, number];
|
|
260
|
-
readonly multicodecTableProtoResult: () => [number, number, number];
|
|
261
|
-
readonly multikeyEncode: (a: number, b: number, c: any) => [number, number, number, number];
|
|
262
|
-
readonly multikeyParse: (a: number, b: number) => [number, number, number];
|
|
263
|
-
readonly multikeyParseProto: (a: number, b: number) => [number, number, number];
|
|
264
|
-
readonly multikeyParseProtoResult: (a: number, b: number) => [number, number, number];
|
|
265
|
-
readonly pemDecode: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
266
|
-
readonly pemDecodeProto: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
267
|
-
readonly pemDecodeProtoResult: (a: number, b: number, c: number, d: number) => [number, number, number];
|
|
268
|
-
readonly pemEncode: (a: number, b: number, c: any, d: number, e: number) => [number, number, number, number];
|
|
269
|
-
readonly requireSupportedMulticodec: (a: number, b: number) => [number, number];
|
|
270
|
-
readonly tryParseCid: (a: number, b: number) => any;
|
|
271
|
-
readonly validateKeyBinding: (a: number, b: number, c: number, d: number, e: number, f: number) => [number, number];
|
|
272
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
273
|
-
readonly __externref_table_alloc: () => number;
|
|
274
|
-
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
149
|
+
readonly multibaseBase64urlEncode: (a: any) => [number, number, number, number];
|
|
150
|
+
readonly multibaseDecode: (a: any) => [number, number, number];
|
|
151
|
+
readonly multicodecStripPrefix: (a: any) => [number, number, number];
|
|
152
|
+
readonly multikeyEncode: (a: any, b: any) => [number, number, number, number];
|
|
153
|
+
readonly processOperation: (a: any) => [number, number, number];
|
|
154
|
+
readonly processOperationJson: (a: any) => [number, number, number];
|
|
155
|
+
readonly requireSupportedMulticodec: (a: any) => [number, number];
|
|
156
|
+
readonly tryParseCid: (a: any) => [number, number, number];
|
|
157
|
+
readonly validateKeyBinding: (a: any, b: number, c: any) => [number, number];
|
|
275
158
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
276
159
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
160
|
+
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
277
161
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
278
162
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
163
|
+
readonly __externref_table_alloc: () => number;
|
|
279
164
|
readonly __wbindgen_start: () => void;
|
|
280
165
|
}
|
|
281
166
|
|