Skip to main content

gen_meta_code_v0

Function gen_meta_code_v0 

Source
pub fn gen_meta_code_v0(
    name: &str,
    description: Option<&str>,
    meta: Option<&str>,
    bits: u32,
) -> IsccResult<MetaCodeResult>
Expand description

Generate a Meta-Code from name and optional metadata.

Produces an ISCC Meta-Code by hashing the provided name, description, and metadata fields using the SimHash algorithm. When meta is provided, it is treated as either a Data-URL (if starting with "data:") or a JSON string, and the decoded/serialized bytes are used for similarity hashing and metahash computation.