Skip to content

std::encoding::hex

Status: experimental

Lowercase hex encode/decode.

API details and source

The implementation source contains the complete declarations and implementation notes. The table below lists canonical Gossamer call signatures; every item name links directly to its implementation file.

Item Canonical signature or declaration Description
decode fn decode(text: String) -> Result<Vec<u8>, errors::Error> Decodes a hex string.
encode fn encode(data: Vec<u8>) -> String Encodes bytes to hex.