@cardanowall/crypto-core 0.2.0 → 0.3.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/dist/canonical-DHeJLYDR.d.cts +7 -0
- package/dist/canonical-DHeJLYDR.d.ts +7 -0
- package/dist/cbor.d.cts +2 -6
- package/dist/cbor.d.ts +2 -6
- package/dist/index.cjs +280 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +262 -110
- package/dist/index.js.map +1 -1
- package/dist/kem.cjs.map +1 -1
- package/dist/kem.js.map +1 -1
- package/dist/sealed-poe.cjs +299 -118
- package/dist/sealed-poe.cjs.map +1 -1
- package/dist/sealed-poe.d.cts +55 -3
- package/dist/sealed-poe.d.ts +55 -3
- package/dist/sealed-poe.js +281 -118
- package/dist/sealed-poe.js.map +1 -1
- package/dist/seed-derive.cjs.map +1 -1
- package/dist/seed-derive.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type CanonicalCborValue = null | boolean | number | bigint | string | Uint8Array | readonly CanonicalCborValue[] | {
|
|
2
|
+
readonly [key: string]: CanonicalCborValue;
|
|
3
|
+
} | ReadonlyMap<string | number, CanonicalCborValue>;
|
|
4
|
+
declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
|
|
5
|
+
declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
|
|
6
|
+
|
|
7
|
+
export { type CanonicalCborValue as C, decodeCanonicalCbor as d, encodeCanonicalCbor as e };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type CanonicalCborValue = null | boolean | number | bigint | string | Uint8Array | readonly CanonicalCborValue[] | {
|
|
2
|
+
readonly [key: string]: CanonicalCborValue;
|
|
3
|
+
} | ReadonlyMap<string | number, CanonicalCborValue>;
|
|
4
|
+
declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
|
|
5
|
+
declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
|
|
6
|
+
|
|
7
|
+
export { type CanonicalCborValue as C, decodeCanonicalCbor as d, encodeCanonicalCbor as e };
|
package/dist/cbor.d.cts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
readonly [key: string]: CanonicalCborValue;
|
|
3
|
-
} | ReadonlyMap<string | number, CanonicalCborValue>;
|
|
4
|
-
declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
|
|
5
|
-
declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
|
|
1
|
+
export { C as CanonicalCborValue, d as decodeCanonicalCbor, e as encodeCanonicalCbor } from './canonical-DHeJLYDR.cjs';
|
|
6
2
|
|
|
7
3
|
type CanonicalCborErrorCode = 'MALFORMED_CBOR';
|
|
8
4
|
declare class CanonicalCborError extends Error {
|
|
@@ -14,4 +10,4 @@ declare class CanonicalCborError extends Error {
|
|
|
14
10
|
|
|
15
11
|
declare function decodeCbor(bytes: Uint8Array): unknown;
|
|
16
12
|
|
|
17
|
-
export { CanonicalCborError, type CanonicalCborErrorCode,
|
|
13
|
+
export { CanonicalCborError, type CanonicalCborErrorCode, decodeCbor };
|
package/dist/cbor.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
readonly [key: string]: CanonicalCborValue;
|
|
3
|
-
} | ReadonlyMap<string | number, CanonicalCborValue>;
|
|
4
|
-
declare function encodeCanonicalCbor(value: CanonicalCborValue): Uint8Array;
|
|
5
|
-
declare function decodeCanonicalCbor(bytes: Uint8Array): unknown;
|
|
1
|
+
export { C as CanonicalCborValue, d as decodeCanonicalCbor, e as encodeCanonicalCbor } from './canonical-DHeJLYDR.js';
|
|
6
2
|
|
|
7
3
|
type CanonicalCborErrorCode = 'MALFORMED_CBOR';
|
|
8
4
|
declare class CanonicalCborError extends Error {
|
|
@@ -14,4 +10,4 @@ declare class CanonicalCborError extends Error {
|
|
|
14
10
|
|
|
15
11
|
declare function decodeCbor(bytes: Uint8Array): unknown;
|
|
16
12
|
|
|
17
|
-
export { CanonicalCborError, type CanonicalCborErrorCode,
|
|
13
|
+
export { CanonicalCborError, type CanonicalCborErrorCode, decodeCbor };
|