File tree 6 files changed +33
-29
lines changed
6 files changed +33
-29
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ jobs:
40
40
- name : Run ESLint
41
41
run : npm run lint
42
42
43
- # - name: Circular dependency check
44
- # run: npm run deps:check
45
-
46
43
- name : Run Build
47
44
run : npm run build
48
45
46
+ - name : Circular dependency check
47
+ run : npm run deps:check
48
+
49
49
- name : Download regular circuits for CI 'latest.zip' from S3
50
50
run : mkdir ./tests/proofs/testdata && wget https://iden3-circuits-bucket.s3.eu-west-1.amazonaws.com/latest.zip -P ./tests/proofs/testdata
51
51
Original file line number Diff line number Diff line change @@ -6,13 +6,3 @@ export * from './protocol/revocation';
6
6
7
7
export * from './packer' ;
8
8
export * from './packageManager' ;
9
- /**
10
- * Protocol message type
11
- */
12
- export type ProtocolMessage = string ;
13
-
14
- type JSONValue = string | number | boolean | object | Array < object > ;
15
-
16
- export type JSONObject = {
17
- [ x : string ] : JSONValue ;
18
- } ;
Original file line number Diff line number Diff line change 1
- import { IPacker , PackerParams } from './packer' ;
1
+ import { BasicMessage , IPacker , PackerParams } from './packer' ;
2
2
import { MediaType } from '../constants' ;
3
- import { ProtocolMessage } from '.' ;
4
-
5
- export type BasicMessage = {
6
- id : string ;
7
- typ ?: MediaType ;
8
- type : ProtocolMessage ;
9
- thid ?: string ;
10
- body ?: unknown ;
11
- from ?: string ;
12
- to ?: string ;
13
- } ;
14
3
15
4
/**
16
5
* Interface for defining the registry of packers
Original file line number Diff line number Diff line change 1
1
import { DID } from '@iden3/js-iden3-core' ;
2
2
import { DataPrepareHandlerFunc , VerificationHandlerFunc } from '../packers' ;
3
- import { BasicMessage } from './index' ;
4
3
import { ProvingMethodAlg } from '@iden3/js-jwz' ;
5
4
import { CircuitId } from '../../circuits' ;
6
5
import { MediaType } from '../constants' ;
7
6
7
+ /**
8
+ * Protocol message type
9
+ */
10
+ export type ProtocolMessage = string ;
11
+
12
+ /**
13
+ * JSONValue
14
+ */
15
+ type JSONValue = string | number | boolean | object | Array < object > ;
16
+
17
+ /**
18
+ * JSON object
19
+ */
20
+ export type JSONObject = {
21
+ [ x : string ] : JSONValue ;
22
+ } ;
23
+
24
+ export type BasicMessage = {
25
+ id : string ;
26
+ typ ?: MediaType ;
27
+ type : ProtocolMessage ;
28
+ thid ?: string ;
29
+ body ?: unknown ;
30
+ from ?: string ;
31
+ to ?: string ;
32
+ } ;
33
+
8
34
/**
9
35
* parameters for any packer
10
36
*/
Original file line number Diff line number Diff line change 1
1
import { ZKProof } from '@iden3/js-jwz' ;
2
2
import { MediaType } from '../../constants' ;
3
- import { JSONObject , ProtocolMessage } from '../index ' ;
3
+ import { JSONObject , ProtocolMessage } from '../packer ' ;
4
4
5
5
/** AuthorizationResponseMessage is struct the represents iden3message authorization response */
6
6
export type AuthorizationResponseMessage = {
Original file line number Diff line number Diff line change 1
- import { ProtocolMessage } from '../index' ;
2
- import { JSONObject } from '../index' ;
3
1
import { W3CCredential } from '../../../verifiable' ;
4
2
import { MediaType } from '../../constants' ;
3
+ import { JSONObject , ProtocolMessage } from '../packer' ;
5
4
6
5
/** CredentialIssuanceRequestMessageBody represents data for credential issuance request */
7
6
export type CredentialIssuanceRequestMessageBody = {
You can’t perform that action at this time.
0 commit comments