This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Description
- Version:0.34.4
- Platform:OSX
- Subsystem:*
Type:Enhancement
Severity:Other
Description:Provide an API to encode data without publishing a block
This is related to ipld/ipld#64, more specifically I wish to encode content with arbitrary IPLD format supported, but then encrypt that buffer before publishing it. However API available right now doesn't provide a way to accomplish that because put first encodes data to buffer and then publishes it. It is also impossible to retrieve buffer for that CID as it automatically decoded with a corresponding format.
If public API was further extended with encode(data, option):Buffer that would allow one to do multiple encoding passes before block is published. Doing reverse operation would also be required to provide get that has to unwrap multiple layers.