@ocap/mcrypto 1.29.20 → 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 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' | '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_ANY', 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' | '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
@@ -107,6 +107,7 @@ const types = {
107
107
  ROLE_PROFILE: 21,
108
108
  ROLE_PASSKEY: 22,
109
109
  ROLE_TOKEN_FACTORY: 23,
110
+ ROLE_PROVIDER: 24,
110
111
  ROLE_ANY: 63
111
112
  },
112
113
  EncodingType: {
package/lib/index.cjs CHANGED
@@ -109,6 +109,7 @@ const types = {
109
109
  ROLE_PROFILE: 21,
110
110
  ROLE_PASSKEY: 22,
111
111
  ROLE_TOKEN_FACTORY: 23,
112
+ ROLE_PROVIDER: 24,
112
113
  ROLE_ANY: 63
113
114
  },
114
115
  EncodingType: {
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' | '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_ANY', 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' | '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.20",
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.20",
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.20",
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",