Skip to content

Add makefile and agents file#162

Merged
moCello merged 4 commits intomasterfrom
mocello/ai-friendliness
Mar 18, 2026
Merged

Add makefile and agents file#162
moCello merged 4 commits intomasterfrom
mocello/ai-friendliness

Conversation

@moCello
Copy link
Copy Markdown
Member

@moCello moCello commented Mar 18, 2026

Also:

  • document that scalar Ord shouldn't be used in a mathematical setting
  • fix CtOption::into_option deprecation

Add Makefile with standard targets (test, clippy, fmt, check, doc,
clean, test-no-std, no-std). Add rustfmt.toml with nightly options
(group_imports and imports_granularity disabled to avoid reformatting
upstream zkcrypto code). Replace shared CI test workflows with inline
make targets on core runners.
@moCello moCello force-pushed the mocello/ai-friendliness branch 4 times, most recently from e4ccebe to 52037e8 Compare March 18, 2026 15:07
Copy link
Copy Markdown
Member

@xevisalle xevisalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Comment thread AGENTS.md Outdated

BLS12-381 pairing-friendly elliptic curve implementation. **Fork of
zkcrypto/bls12_381** with Dusk-specific enhancements (multiscalar
multiplication, serde, rkyv, hash-to-scalar, bitwise ops). ~16.5k LOC.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isnt' LOC something that we will have to remember to update each time we increase it?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well nvm, I guess it'll be done automatically since the whole file will need to be updated if things change.

Copy link
Copy Markdown
Member Author

@moCello moCello Mar 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you are right, it's redundant and agents can figure out the line count easily by themselves. I'll remove 👍

moCello added 3 commits March 18, 2026 18:03
The ordering is a consistent total order suitable for data structures
like BTreeSet, but has no relationship to the mathematical value of
the scalar since Montgomery representation permutes the field.
The subtle crate removed the into_option method from CtOption.
Use Option::from() which is the supported conversion path.
@moCello moCello force-pushed the mocello/ai-friendliness branch from 52037e8 to 6182368 Compare March 18, 2026 17:03
@moCello moCello merged commit 1ba6d04 into master Mar 18, 2026
3 checks passed
@moCello moCello deleted the mocello/ai-friendliness branch March 18, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants