1
0
mirror of https://github.com/fluencelabs/js-libp2p synced 2025-03-31 06:41:08 +00:00

1 Commits

Author SHA1 Message Date
Spencer T Brody
d8ceb0bc66
feat: add fetch protocol ()
Adds three methods to implement the `/libp2p/fetch/0.0.1` protocol:

* `libp2p.fetch(peerId, key) => Promise<Uint8Array>`
* `libp2p.fetchService.registerLookupFunction(prefix, lookupFunction)`
* `libp2p.fetchService.unRegisterLookupFunction(prefix, [lookupFunction])`

Co-authored-by: achingbrain <alex@achingbrain.net>
2022-01-24 17:07:11 +00:00