pallet_messages::pallet::dispatchables

Function add_ipfs_message

Source
pub fn add_ipfs_message<T: Config>(
    schema_id: SchemaId,
    cid: Vec<u8>,
    payload_length: u32,
)
Expand description

Adds a message for a resource hosted on IPFS. The input consists of both a Base32-encoded CID as well as a 32-bit content length. The stored payload will contain the CID encoded as binary, as well as the 32-bit message content length. The actual message content will be on IPFS.

§Events

§Errors

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::add_ipfs_message.