Skip to content

Commit

Permalink
total integration with the i3m wallets. Tests now also store agreemen…
Browse files Browse the repository at this point in the history
…ts and proofs
  • Loading branch information
juanelas committed Oct 28, 2022
1 parent ba1d70c commit 24ef617
Show file tree
Hide file tree
Showing 66 changed files with 1,019 additions and 575 deletions.
2 changes: 1 addition & 1 deletion dist/bundles/esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bundles/iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bundles/umd.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/cjs/index.node.cjs

Large diffs are not rendered by default.

94 changes: 52 additions & 42 deletions dist/esm/index.browser.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/esm/index.node.js

Large diffs are not rendered by default.

54 changes: 27 additions & 27 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ ___

#### Defined in

[src/ts/types.ts:12](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/types.ts#L12)
[src/ts/types.ts:12](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/types.ts#L12)

___

Expand All @@ -119,7 +119,7 @@ ___

#### Defined in

[src/ts/types.ts:10](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/types.ts#L10)
[src/ts/types.ts:10](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/types.ts#L10)

___

Expand All @@ -129,7 +129,7 @@ ___

#### Defined in

[src/ts/types.ts:8](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/types.ts#L8)
[src/ts/types.ts:8](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/types.ts#L8)

___

Expand Down Expand Up @@ -252,7 +252,7 @@ ___

#### Defined in

[src/ts/types.ts:170](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/types.ts#L170)
[src/ts/types.ts:170](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/types.ts#L170)

___

Expand All @@ -262,7 +262,7 @@ ___

#### Defined in

[src/ts/types.ts:9](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/types.ts#L9)
[src/ts/types.ts:9](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/types.ts#L9)

___

Expand Down Expand Up @@ -293,7 +293,7 @@ ___

#### Defined in

[src/ts/types.ts:168](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/types.ts#L168)
[src/ts/types.ts:168](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/types.ts#L168)

## Variables

Expand All @@ -303,7 +303,7 @@ ___

#### Defined in

[src/ts/constants.ts:3](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/constants.ts#L3)
[src/ts/constants.ts:3](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/constants.ts#L3)

___

Expand All @@ -313,7 +313,7 @@ ___

#### Defined in

[src/ts/constants.ts:1](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/constants.ts#L1)
[src/ts/constants.ts:1](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/constants.ts#L1)

___

Expand All @@ -323,7 +323,7 @@ ___

#### Defined in

[src/ts/constants.ts:2](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/constants.ts#L2)
[src/ts/constants.ts:2](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/constants.ts#L2)

___

Expand All @@ -333,7 +333,7 @@ ___

#### Defined in

[src/ts/dlt/defaultDltConfig.ts:4](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/defaultDltConfig.ts#L4)
[src/ts/dlt/defaultDltConfig.ts:4](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/defaultDltConfig.ts#L4)

## Functions

Expand All @@ -356,7 +356,7 @@ ___

#### Defined in

[src/ts/utils/timestamps.ts:3](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/utils/timestamps.ts#L3)
[src/ts/utils/timestamps.ts:3](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/utils/timestamps.ts#L3)

___

Expand Down Expand Up @@ -387,7 +387,7 @@ a proof as a compact JWS formatted JWT string

#### Defined in

[src/ts/proofs/createProof.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/proofs/createProof.ts#L14)
[src/ts/proofs/createProof.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/proofs/createProof.ts#L14)

___

Expand All @@ -413,7 +413,7 @@ the exchange id in hexadecimal

#### Defined in

[src/ts/exchange/exchangeId.ts:13](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/exchange/exchangeId.ts#L13)
[src/ts/exchange/exchangeId.ts:13](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/exchange/exchangeId.ts#L13)

___

Expand All @@ -437,7 +437,7 @@ Generates a pair of JWK signing/verification keys

#### Defined in

[src/ts/crypto/generateKeys.ts:17](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/generateKeys.ts#L17)
[src/ts/crypto/generateKeys.ts:17](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/generateKeys.ts#L17)

___

Expand All @@ -458,7 +458,7 @@ ___

#### Defined in

[src/ts/crypto/importJwk.ts:5](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/importJwk.ts#L5)
[src/ts/crypto/importJwk.ts:5](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/importJwk.ts#L5)

___

Expand All @@ -478,7 +478,7 @@ ___

#### Defined in

[src/ts/utils/jsonSort.ts:5](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/utils/jsonSort.ts#L5)
[src/ts/utils/jsonSort.ts:5](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/utils/jsonSort.ts#L5)

___

Expand All @@ -504,7 +504,7 @@ the plaintext

#### Defined in

[src/ts/crypto/jwe.ts:37](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/jwe.ts#L37)
[src/ts/crypto/jwe.ts:37](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/jwe.ts#L37)

___

Expand All @@ -530,7 +530,7 @@ a Compact JWE

#### Defined in

[src/ts/crypto/jwe.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/jwe.ts#L14)
[src/ts/crypto/jwe.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/jwe.ts#L14)

___

Expand Down Expand Up @@ -559,7 +559,7 @@ Decodes and optionally verifies a JWS, and returns the decoded header, payload.

#### Defined in

[src/ts/crypto/jwsDecode.ts:12](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/jwsDecode.ts#L12)
[src/ts/crypto/jwsDecode.ts:12](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/jwsDecode.ts#L12)

___

Expand All @@ -585,7 +585,7 @@ a promise that resolves to the secret in JWK and raw hex string

#### Defined in

[src/ts/crypto/oneTimeSecret.ts:18](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/oneTimeSecret.ts#L18)
[src/ts/crypto/oneTimeSecret.ts:18](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/oneTimeSecret.ts#L18)

___

Expand All @@ -605,7 +605,7 @@ ___

#### Defined in

[src/ts/exchange/checkAgreement.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/exchange/checkAgreement.ts#L14)
[src/ts/exchange/checkAgreement.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/exchange/checkAgreement.ts#L14)

___

Expand All @@ -627,7 +627,7 @@ ___

#### Defined in

[src/ts/utils/parseHex.ts:3](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/utils/parseHex.ts#L3)
[src/ts/utils/parseHex.ts:3](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/utils/parseHex.ts#L3)

___

Expand All @@ -648,7 +648,7 @@ ___

#### Defined in

[src/ts/utils/parseJwk.ts:6](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/utils/parseJwk.ts#L6)
[src/ts/utils/parseJwk.ts:6](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/utils/parseJwk.ts#L6)

**parseJwk**(`jwk`, `stringify`): `Promise`<[`JWK`](interfaces/JWK.md)\>

Expand All @@ -665,7 +665,7 @@ ___

#### Defined in

[src/ts/utils/parseJwk.ts:7](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/utils/parseJwk.ts#L7)
[src/ts/utils/parseJwk.ts:7](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/utils/parseJwk.ts#L7)

___

Expand All @@ -686,7 +686,7 @@ ___

#### Defined in

[src/ts/utils/sha.ts:4](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/utils/sha.ts#L4)
[src/ts/utils/sha.ts:4](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/utils/sha.ts#L4)

___

Expand All @@ -707,7 +707,7 @@ ___

#### Defined in

[src/ts/crypto/verifyKeyPair.ts:7](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/crypto/verifyKeyPair.ts#L7)
[src/ts/crypto/verifyKeyPair.ts:7](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/crypto/verifyKeyPair.ts#L7)

___

Expand Down Expand Up @@ -739,4 +739,4 @@ The JWT protected header and payload if the proof is validated

#### Defined in

[src/ts/proofs/verifyProof.ts:29](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/proofs/verifyProof.ts#L29)
[src/ts/proofs/verifyProof.ts:29](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/proofs/verifyProof.ts#L29)
10 changes: 5 additions & 5 deletions docs/classes/ConflictResolution.ConflictResolver.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ The Conflict Resolver is an external entity that can:

#### Defined in

[src/ts/conflict-resolution/ConflictResolver.ts:26](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/conflict-resolution/ConflictResolver.ts#L26)
[src/ts/conflict-resolution/ConflictResolver.ts:26](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/conflict-resolution/ConflictResolver.ts#L26)

## Properties

Expand All @@ -48,7 +48,7 @@ The Conflict Resolver is an external entity that can:

#### Defined in

[src/ts/conflict-resolution/ConflictResolver.ts:18](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/conflict-resolution/ConflictResolver.ts#L18)
[src/ts/conflict-resolution/ConflictResolver.ts:18](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/conflict-resolution/ConflictResolver.ts#L18)

___

Expand All @@ -58,7 +58,7 @@ ___

#### Defined in

[src/ts/conflict-resolution/ConflictResolver.ts:17](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/conflict-resolution/ConflictResolver.ts#L17)
[src/ts/conflict-resolution/ConflictResolver.ts:17](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/conflict-resolution/ConflictResolver.ts#L17)

## Methods

Expand All @@ -82,7 +82,7 @@ a signed resolution

#### Defined in

[src/ts/conflict-resolution/ConflictResolver.ts:52](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/conflict-resolution/ConflictResolver.ts#L52)
[src/ts/conflict-resolution/ConflictResolver.ts:52](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/conflict-resolution/ConflictResolver.ts#L52)

___

Expand Down Expand Up @@ -111,4 +111,4 @@ a signed resolution

#### Defined in

[src/ts/conflict-resolution/ConflictResolver.ts:98](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/conflict-resolution/ConflictResolver.ts#L98)
[src/ts/conflict-resolution/ConflictResolver.ts:98](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/conflict-resolution/ConflictResolver.ts#L98)
12 changes: 6 additions & 6 deletions docs/classes/EthersIoAgentDest.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ EthersIoAgent.constructor

#### Defined in

[src/ts/dlt/agents/EthersIoAgent.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/agents/EthersIoAgent.ts#L14)
[src/ts/dlt/agents/EthersIoAgent.ts:14](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/agents/EthersIoAgent.ts#L14)

## Properties

Expand All @@ -61,7 +61,7 @@ EthersIoAgent.contract

#### Defined in

[src/ts/dlt/agents/EthersIoAgent.ts:11](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/agents/EthersIoAgent.ts#L11)
[src/ts/dlt/agents/EthersIoAgent.ts:11](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/agents/EthersIoAgent.ts#L11)

___

Expand All @@ -75,7 +75,7 @@ EthersIoAgent.dltConfig

#### Defined in

[src/ts/dlt/agents/EthersIoAgent.ts:10](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/agents/EthersIoAgent.ts#L10)
[src/ts/dlt/agents/EthersIoAgent.ts:10](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/agents/EthersIoAgent.ts#L10)

___

Expand All @@ -89,7 +89,7 @@ EthersIoAgent.provider

#### Defined in

[src/ts/dlt/agents/EthersIoAgent.ts:12](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/agents/EthersIoAgent.ts#L12)
[src/ts/dlt/agents/EthersIoAgent.ts:12](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/agents/EthersIoAgent.ts#L12)

## Methods

Expand All @@ -113,7 +113,7 @@ EthersIoAgent.getContractAddress

#### Defined in

[src/ts/dlt/agents/EthersIoAgent.ts:26](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/agents/EthersIoAgent.ts#L26)
[src/ts/dlt/agents/EthersIoAgent.ts:26](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/agents/EthersIoAgent.ts#L26)

___

Expand Down Expand Up @@ -144,4 +144,4 @@ NrpDltAgentDest.getSecretFromLedger

#### Defined in

[src/ts/dlt/agents/dest/EthersIoAgentDest.ts:13](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/2d55682/src/ts/dlt/agents/dest/EthersIoAgentDest.ts#L13)
[src/ts/dlt/agents/dest/EthersIoAgentDest.ts:9](https://gitlab.com/i3-market/code/wp3/t3.2/conflict-resolution/non-repudiation-library/-/blob/ba1d70c/src/ts/dlt/agents/dest/EthersIoAgentDest.ts#L9)
Loading

0 comments on commit 24ef617

Please sign in to comment.