{"id":70124,"library":"clvm-traits","title":"CLVM Traits","description":"Traits for encoding and decoding CLVM objects used in Chia blockchain.","status":"active","version":"0.44.0","language":"rust","source_language":null,"source_url":"https://github.com/Chia-Network/chia_rs","tags":["chia","clvm","traits","serialization","blockchain"],"install":[{"cmd":"# Cargo.toml\n[dependencies]\nclvm-traits = \"0.44.0\"","lang":"toml","label":"Cargo.toml"},{"cmd":"cargo add clvm-traits","lang":"bash","label":"cargo add"}],"dependencies":[],"imports":[{"symbol":"FromClvm","correct":"use clvm_traits::FromClvm;"}],"quickstart":{"code":"use clvm_traits::{FromClvm, ToClvm};\nuse clvmr::Allocator;\n\n#[derive(FromClvm, ToClvm)]\nstruct MyStruct {\n    value: u64,\n}\n\nfn main() {\n    let allocator = Allocator::new();\n    let ptr = MyStruct { value: 42 }.to_clvm(&allocator).unwrap();\n    let decoded = MyStruct::from_clvm(&allocator, ptr).unwrap();\n    println!(\"{:?}\", decoded);\n}","lang":"rust","description":"Encodes and decodes a struct to/from CLVM format."},"warnings":[],"env_vars":null,"search_vec":"'blockchain':13,18 'chia':12,14 'clvm':1,8,15 'decod':7 'encod':5 'object':9 'serial':17 'trait':2,3,16 'use':10","created_at":"2026-06-17T18:10:03.090943+00:00","updated_at":"2026-06-17T18:10:03.090943+00:00","problems":[],"ecosystem":"crates","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/Chia-Network/chia_rs","github":"https://github.com/Chia-Network/chia_rs","docs":"https://docs.rs/clvm-traits/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["serialization"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}