@ocap/mcrypto 1.17.10 → 1.17.11

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/lib/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { BytesType, EncodingType, KeyPairType } from '@ocap/util';
3
3
  import { LiteralUnion } from 'type-fest';
4
4
  export declare type KeyType = LiteralUnion<'ED25519' | 'SECP256K1' | 'ETHEREUM', string>;
5
5
  export declare type HashType = LiteralUnion<'KECCAK' | 'SHA3' | 'KECCAK_384' | 'SHA3_384' | 'KECCAK_512' | 'SHA3_512' | 'SHA2', string>;
6
- export declare 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_REGISTRY' | 'ROLE_TOKEN' | 'ROLE_FACTORY' | 'ROLE_ROLLUP' | 'ROLE_ANY', string>;
6
+ export declare 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_ANY', string>;
7
7
  export declare type AddressType = LiteralUnion<'BASE16' | 'BASE58', string>;
8
8
  export interface HashFnType {
9
9
  (data: BytesType, round: number, encoding?: 'hex'): string;
@@ -151,10 +151,11 @@ export declare const types: {
151
151
  ROLE_DELEGATION: number;
152
152
  ROLE_VC: number;
153
153
  ROLE_BLOCKLET: number;
154
- ROLE_REGISTRY: number;
154
+ ROLE_STORE: number;
155
155
  ROLE_TOKEN: number;
156
156
  ROLE_FACTORY: number;
157
157
  ROLE_ROLLUP: number;
158
+ ROLE_STORAGE: number;
158
159
  ROLE_ANY: number;
159
160
  };
160
161
  /**
package/lib/index.js CHANGED
@@ -127,10 +127,11 @@ exports.types = {
127
127
  ROLE_DELEGATION: 13,
128
128
  ROLE_VC: 14,
129
129
  ROLE_BLOCKLET: 15,
130
- ROLE_REGISTRY: 16,
130
+ ROLE_STORE: 16,
131
131
  ROLE_TOKEN: 17,
132
132
  ROLE_FACTORY: 18,
133
133
  ROLE_ROLLUP: 19,
134
+ ROLE_STORAGE: 20,
134
135
  ROLE_ANY: 63,
135
136
  },
136
137
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ocap/mcrypto",
3
- "version": "1.17.10",
3
+ "version": "1.17.11",
4
4
  "description": "Crypto lib that provides signer,crypter,hasher interface",
5
5
  "keywords": [
6
6
  "crypto",
@@ -56,7 +56,7 @@
56
56
  "url": "https://github.com/ArcBlock/asset-chain/issues"
57
57
  },
58
58
  "dependencies": {
59
- "@ocap/util": "1.17.10",
59
+ "@ocap/util": "1.17.11",
60
60
  "bn.js": "5.2.1",
61
61
  "crypto-js": "^4.1.1",
62
62
  "elliptic": "^6.5.4",
@@ -72,5 +72,5 @@
72
72
  "bn.js": "5.2.1",
73
73
  "elliptic": "6.5.3"
74
74
  },
75
- "gitHead": "062c4f18a4e6d370cb1659980c602e8494969dc3"
75
+ "gitHead": "32ee93b1f1026709bb1b00a58b4b3dc5d551f94a"
76
76
  }