MCPcopy Index your code
hub / github.com/Neptune-Crypto/twenty-first

github.com/Neptune-Crypto/twenty-first @v2.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.0.2 ↗ · + Follow
1,162 symbols 2,418 edges 54 files 159 documented · 14%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

twenty-first

GitHub CI crates.io Coverage Status

A collection of cryptography primitives written in Rust.

Content of this library

This library contains primarily the following cryptographic primitives:

Wasm support

The twenty-first library can be built for WebAssembly. See the dedicated readme for further information.

Extension points exported contracts — how you extend this code

BFieldCodec (Interface)
This trait provides functions for encoding to and decoding from a Vec of [BFieldElement]s. This encoding does not record [9 …
twenty-first/src/math/bfield_codec.rs
Inverse (Interface)
TODO: Assert if we're risking inverting 0 at any point. [2 implementers]
twenty-first/src/math/traits.rs
Mmr (Interface)
A “Merkle Mountain Range” (MMR) is a data structure for storing lists of hashes. Similar to [Merkle trees](crate::prelud [2 …
twenty-first/src/util_types/mmr/mmr_trait.rs
Sponge (Interface)
A [cryptographic sponge][sponge]. Should only be based on a cryptographic permutation, e.g., [`Tip5`][tip5]. [sponge]: [1 …
twenty-first/src/util_types/sponge.rs
CyclicGroupGenerator (Interface)
(no doc) [2 implementers]
twenty-first/src/math/traits.rs

Core symbols most depended-on inside this repo

random_elements
called by 82
twenty-first/src/math/other.rs
degree
called by 51
twenty-first/src/math/polynomial.rs
prove_membership
called by 51
twenty-first/src/util_types/mmr/archival_mmr.rs
peaks
called by 42
twenty-first/src/util_types/mmr/archival_mmr.rs
hash_pair
called by 33
twenty-first/benches/tip5.rs
zerofier
called by 33
twenty-first/benches/zerofier.rs
is_empty
called by 27
twenty-first/src/util_types/mmr/archival_mmr.rs
into_owned
called by 26
twenty-first/src/math/polynomial.rs

Shape

Function 600
Method 445
Class 83
Enum 25
Interface 9

Languages

Rust100%

Modules by API surface

twenty-first/src/math/polynomial.rs258 symbols
twenty-first/src/math/b_field_element.rs119 symbols
twenty-first/src/math/bfield_codec.rs86 symbols
twenty-first/src/util_types/merkle_tree.rs79 symbols
bfieldcodec_derive/src/lib.rs67 symbols
twenty-first/src/math/x_field_element.rs64 symbols
twenty-first/src/tip5/mod.rs60 symbols
twenty-first/src/tip5/digest.rs45 symbols
twenty-first/src/math/lattice.rs45 symbols
twenty-first/src/util_types/mmr/mmr_membership_proof.rs34 symbols
twenty-first/src/util_types/mmr/mmr_accumulator.rs34 symbols
twenty-first/src/util_types/mmr/archival_mmr.rs34 symbols

For agents

$ claude mcp add twenty-first \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page