@ocap/mcrypto 1.29.19 → 1.29.21
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/esm/index.d.mts +2 -1
- package/esm/index.mjs +1 -0
- package/lib/index.cjs +1 -0
- package/lib/index.d.cts +2 -1
- package/package.json +3 -3
package/esm/index.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ import { LiteralUnion } from "type-fest";
|
|
|
11
11
|
//#region src/index.d.ts
|
|
12
12
|
type KeyType = LiteralUnion<'ED25519' | 'SECP256K1' | 'ETHEREUM', string>;
|
|
13
13
|
type HashType = LiteralUnion<'KECCAK' | 'SHA3' | 'KECCAK_384' | 'SHA3_384' | 'KECCAK_512' | 'SHA3_512' | 'SHA2', string>;
|
|
14
|
-
type RoleType = LiteralUnion<'ROLE_ACCOUNT' | 'ROLE_NODE' | 'ROLE_DEVICE' | 'ROLE_APPLICATION' | 'ROLE_SMART_CONTRACT' | 'ROLE_BOT' | 'ROLE_ASSET' | 'ROLE_STAKE' | 'ROLE_VALIDATOR' | 'ROLE_GROUP' | '
|
|
14
|
+
type RoleType = LiteralUnion<'ROLE_ACCOUNT' | 'ROLE_NODE' | 'ROLE_DEVICE' | 'ROLE_APPLICATION' | 'ROLE_SMART_CONTRACT' | 'ROLE_BOT' | 'ROLE_ASSET' | 'ROLE_STAKE' | 'ROLE_VALIDATOR' | 'ROLE_GROUP' | 'ROLE_TX' | 'ROLE_TETHER' | 'ROLE_SWAP' | 'ROLE_DELEGATION' | 'ROLE_VC' | 'ROLE_BLOCKLET' | 'ROLE_STORE' | 'ROLE_TOKEN' | 'ROLE_FACTORY' | 'ROLE_ROLLUP' | 'ROLE_STORAGE' | 'ROLE_PROFILE' | 'ROLE_PASSKEY' | 'ROLE_TOKEN_FACTORY' | 'ROLE_PROVIDER' | 'ROLE_ANY', string>;
|
|
15
15
|
type AddressType = LiteralUnion<'BASE16' | 'BASE58', string>;
|
|
16
16
|
interface HashFnType {
|
|
17
17
|
(data: BytesType, round: number, encoding?: 'hex'): string;
|
|
@@ -170,6 +170,7 @@ declare const types: {
|
|
|
170
170
|
ROLE_PROFILE: number;
|
|
171
171
|
ROLE_PASSKEY: number;
|
|
172
172
|
ROLE_TOKEN_FACTORY: number;
|
|
173
|
+
ROLE_PROVIDER: number;
|
|
173
174
|
ROLE_ANY: number;
|
|
174
175
|
};
|
|
175
176
|
/**
|
package/esm/index.mjs
CHANGED
package/lib/index.cjs
CHANGED
package/lib/index.d.cts
CHANGED
|
@@ -11,7 +11,7 @@ import { LiteralUnion } from "type-fest";
|
|
|
11
11
|
//#region src/index.d.ts
|
|
12
12
|
type KeyType = LiteralUnion<'ED25519' | 'SECP256K1' | 'ETHEREUM', string>;
|
|
13
13
|
type HashType = LiteralUnion<'KECCAK' | 'SHA3' | 'KECCAK_384' | 'SHA3_384' | 'KECCAK_512' | 'SHA3_512' | 'SHA2', string>;
|
|
14
|
-
type RoleType = LiteralUnion<'ROLE_ACCOUNT' | 'ROLE_NODE' | 'ROLE_DEVICE' | 'ROLE_APPLICATION' | 'ROLE_SMART_CONTRACT' | 'ROLE_BOT' | 'ROLE_ASSET' | 'ROLE_STAKE' | 'ROLE_VALIDATOR' | 'ROLE_GROUP' | '
|
|
14
|
+
type RoleType = LiteralUnion<'ROLE_ACCOUNT' | 'ROLE_NODE' | 'ROLE_DEVICE' | 'ROLE_APPLICATION' | 'ROLE_SMART_CONTRACT' | 'ROLE_BOT' | 'ROLE_ASSET' | 'ROLE_STAKE' | 'ROLE_VALIDATOR' | 'ROLE_GROUP' | 'ROLE_TX' | 'ROLE_TETHER' | 'ROLE_SWAP' | 'ROLE_DELEGATION' | 'ROLE_VC' | 'ROLE_BLOCKLET' | 'ROLE_STORE' | 'ROLE_TOKEN' | 'ROLE_FACTORY' | 'ROLE_ROLLUP' | 'ROLE_STORAGE' | 'ROLE_PROFILE' | 'ROLE_PASSKEY' | 'ROLE_TOKEN_FACTORY' | 'ROLE_PROVIDER' | 'ROLE_ANY', string>;
|
|
15
15
|
type AddressType = LiteralUnion<'BASE16' | 'BASE58', string>;
|
|
16
16
|
interface HashFnType {
|
|
17
17
|
(data: BytesType, round: number, encoding?: 'hex'): string;
|
|
@@ -170,6 +170,7 @@ declare const types: {
|
|
|
170
170
|
ROLE_PROFILE: number;
|
|
171
171
|
ROLE_PASSKEY: number;
|
|
172
172
|
ROLE_TOKEN_FACTORY: number;
|
|
173
|
+
ROLE_PROVIDER: number;
|
|
173
174
|
ROLE_ANY: number;
|
|
174
175
|
};
|
|
175
176
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocap/mcrypto",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.21",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Crypto lib that provides signer,crypter,hasher interface",
|
|
6
6
|
"keywords": [
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"esm"
|
|
49
49
|
],
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@ocap/e2e-test": "1.29.
|
|
51
|
+
"@ocap/e2e-test": "1.29.21",
|
|
52
52
|
"@types/crypto-js": "^4.2.2",
|
|
53
53
|
"@types/elliptic": "^6.4.18",
|
|
54
54
|
"@types/node": "^22.7.5",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@noble/ed25519": "^3.0.0",
|
|
78
78
|
"@noble/hashes": "^2.0.1",
|
|
79
|
-
"@ocap/util": "1.29.
|
|
79
|
+
"@ocap/util": "1.29.21",
|
|
80
80
|
"@simplewebauthn/server": "^13.0.0",
|
|
81
81
|
"bn.js": "5.2.3",
|
|
82
82
|
"crypto-js": "^4.2.0",
|