MDEX_TREE_HASH(3)
π MDEX_TREE_HASH π
okay bestie, gather round, we're doing a Librecast Programmer's Manual moment β this is mdex_tree_hash(3), and it's giving "let me get a hash of your merkle tree root real quick" energy. π
β¨ NAME β¨
mdex_tree_hash β create hash of merkle tree root π³
π LIBRARY π
Librecast library (liblibrecast, -llibrecast)
π¦ SYNOPSIS π¦
#include <librecast/mdex.h>
int mdex_tree_hash(unsigned char *hash, size_t hashlen, mtree_t *mtree, size_t n);
Compile and link with -llibrecast.
πΈ DESCRIPTION πΈ
so like, the mdex_tree_hash function literally creates a hash of length hashlen from the root node of mtree with key n. π
and bestie, what's it for? two things, no cap:
- it's used to index an
mtreein several parts π₯ - and it distinguishes the root node from the first data node when
nodes = 1π
that's it. that's the vibe. simple, iconic, does exactly what it says. β¨
π«Ά RETURN VALUE π«Ά
- success β
mdex_tree_hash()returns zero. slay. π - error β
-1is returned. π
π SEE ALSO π
hash_generic_key(3)mdex_init(3)mdex_free(3)mdex_get(3)mdex_put(3)mdex_del(3)lc_share(3)
k that's the whole page, bestie π this was LIBRECAST, dated 2023-07-23, and it's the MDEX_TREE_HASH(3) era β go forth and hash those merkle roots, ily, mwah π§π
π¦ where this page comes from
- debian trixie: liblibrecast-dev 0.9.1-1 Β· GPL-2.0-only OR GPL-3.0-only
- nixos 26.05: librecast 0.11.2
- nixpkgs unstable: librecast 0.11.2
- ubuntu noble: liblibrecast-dev 0.8.0-1.1build1 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu questing: liblibrecast-dev 0.9.1-1
- ubuntu resolute: liblibrecast-dev 0.11.2-2 Β· GPL-2.0-only OR GPL-3.0-only
- ubuntu stonking: liblibrecast-dev 0.11.2-2build1 Β· GPL-2.0-only OR GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms