Module Eris_lwt.Read_capability

A read capability contains the necessary information to decode some encoded content from blocks. A read capability can be encoded as a binary string or as an URN.

type t

Type of a read capability

val block_size : t -> int

block_size read_capability returns the block size in bytes.

Binary Encoding

val to_binary : t -> string
val of_binary : string -> t

URN Encoding

val to_urn : t -> string
val of_urn : string -> t