Expand description
Bitswap client and server.
Structs§
- Bitswap
Handle - Handle for submitting Bitswap requests.
Enums§
- Bitswap
Error - Bitswap request errors.
Constants§
- BLAK
E2B_ 256_ MULTIHASH_ CODE - Multihash code for BLAKE2b-256, per the multicodec table.
- KECCAK_
256_ MULTIHASH_ CODE - Multihash code for Keccak-256, per the multicodec table.
- MAX_
WANTED_ BLOCKS - Maximum entries per Bitswap message.
- RAW_
CODEC - IPFS raw multicodec used for indexed transaction payload bytes.
- SHA2_
256_ MULTIHASH_ CODE - Multihash code for SHA2-256, per the multicodec table.
Functions§
- is_
cid_ supported - Returns whether Bitswap supports a CID.
- start
- Build the Bitswap service, returning the service future and the user-facing handle.