Skip to content

Commit

Permalink
Merge pull request #324 from reseau-constellation/communication-directe
Browse files Browse the repository at this point in the history
Communication directe pour messages entre pairs
  • Loading branch information
julienmalard authored Mar 3, 2025
2 parents 47b9063 + 779da2b commit 9b19fe0
Show file tree
Hide file tree
Showing 13 changed files with 1,005 additions and 1,125 deletions.
8 changes: 4 additions & 4 deletions docu/src/ipa/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ const idDispositif = await client.obtIdDispositif();

```

### `client.obtIdSFIP()`
Obtenir l'identifiant du nœud de Système de fichiers interplanétaire ([SFIP](https://ipfs.io/)) connecté au compte Constellation.
### `client.obtIdLibp2p()`
Obtenir l'identifiant libp2p du dispositif présent.

#### Retour
| Type | Description |
| ---- | ----------- |
| `Promise<ipfs.IDResult>` | L'identifiant SFIP du compte. |
| `Promise<string>` | L'identifiant libp2p du dispositif. |

#### Exemple
```ts
import { créerConstellation } from "@constl/ipa";
const client = créerConstellation();

const idSFIP = await client.obtIdSFIP();
const idLibp2p = await client.obtIdLibp2p();

```

Expand Down
2 changes: 1 addition & 1 deletion docu/src/ipa/réseau.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@ interface statutMembre {
}

type infoDispositif = {
idSFIP: string;
idLibp2p: string;
idDispositif: string;
idCompte: string;
clefPublique: string;
Expand Down
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.17",
"version": "1.5.18",
"license": "AGPL-3.0-or-later",
"name": "@constl/ipa",
"author": "Julien Jean Malard-Adam",
Expand Down Expand Up @@ -75,6 +75,7 @@
"express": "^4.21.2",
"globals": "^15.15.0",
"image-type": "^5.2.0",
"it-stream-types": "^2.0.2",
"keyv": "^5.2.3",
"mocha": "^11.1.0",
"os-browserify": "^0.3.0",
Expand Down Expand Up @@ -107,24 +108,23 @@
"@ipld/dag-cbor": "^9.2.2",
"@lassi-js/kili": "^0.4.1",
"@libp2p/autonat": "^2.0.24",
"@libp2p/bootstrap": "^11.0.27",
"@libp2p/circuit-relay-v2": "^3.2.3",
"@libp2p/bootstrap": "^11.0.28",
"@libp2p/circuit-relay-v2": "^3.2.4",
"@libp2p/dcutr": "^2.0.23",
"@libp2p/identify": "^3.0.23",
"@libp2p/interface-transport": "^4.0.3",
"@libp2p/kad-dht": "^14.2.10",
"@libp2p/mdns": "^11.0.27",
"@libp2p/kad-dht": "^14.2.11",
"@libp2p/mdns": "^11.0.28",
"@libp2p/peer-id": "^5.0.14",
"@libp2p/ping": "^2.0.23",
"@libp2p/pubsub-peer-discovery": "^11.0.1",
"@libp2p/tcp": "^10.1.3",
"@libp2p/upnp-nat": "^3.1.7",
"@libp2p/webrtc": "^5.2.4",
"@libp2p/webrtc": "^5.2.5",
"@libp2p/websockets": "^9.2.3",
"@libp2p/webtransport": "^5.0.32",
"@localfirst/auth": "^6.0.0",
"@localfirst/crypto": "^6.0.0",
"@libp2p/webtransport": "^5.0.33",
"@multiformats/multiaddr-matcher": "^1.6.0",
"@noble/hashes": "^1.7.1",
"@orbitdb/core": "^2.5.0",
"@orbitdb/feed-db": "^1.1.2",
"@orbitdb/ordered-keyvalue-db": "^1.1.2",
Expand All @@ -136,6 +136,7 @@
"blockstore-fs": "^2.0.2",
"blockstore-idb": "^2.0.1",
"browser-fs-access": "^0.35.0",
"bs58": "^6.0.0",
"chokidar": "^4.0.3",
"crypto-js": "^4.2.0",
"datastore-fs": "^10.0.2",
Expand All @@ -153,9 +154,11 @@
"indexed-db-stream": "^1.0.0",
"iso-constants": "github:inverted-capital/iso-constants#patch-1",
"it-drain": "^3.0.7",
"it-pipe": "^3.0.1",
"it-pushable": "^3.2.3",
"it-to-buffer": "^4.0.7",
"jszip": "^3.10.1",
"libp2p": "^2.7.3",
"libp2p": "^2.7.4",
"lodash-es": "^4.17.21",
"merge-options": "^3.0.4",
"multiformats": "^13.3.2",
Expand Down
Loading

0 comments on commit 9b19fe0

Please sign in to comment.