Skip to content
Back to skills

Cairo Hashes

ASecurity

Explain Cairo hashing with Poseidon and Pedersen, Hash/HashState traits, and hashing structs/arrays; use when a request involves computing hashes or deriving Hash in Cairo.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentation

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cairo-hashes --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cairo Hashes?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cairo Hashes
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cairo-hashes/badge)](https://www.skillsdirectory.com/skills/david-li0406-cairo-hashes)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cairo-hashes
description: Explain Cairo hashing with Poseidon and Pedersen, Hash/HashState traits, and hashing structs/arrays; use when a request involves computing hashes or deriving Hash in Cairo.
---

# Cairo Hashes

## Overview
Guide hashing in Cairo with Poseidon and Pedersen and the core hash traits.

## Quick Use
- Read `references/hashes.md` before answering.
- Pick Poseidon for most Cairo use cases; mention Pedersen for legacy compatibility.
- Use `HashStateTrait` + `update`/`finalize` in examples.

## Response Checklist
- Use `PoseidonTrait::new()` or `PedersenTrait::new(base)` to initialize state.
- Derive `Hash` only if all fields are hashable.
- For arrays, hash a span with `poseidon_hash_span`.

## Example Requests
- "How do I hash a struct in Cairo?"
- "Should I use Pedersen or Poseidon?"
- "Why can't I derive Hash for this struct?"

Files in this skill

  • SKILL.md870 B
  • references/hashes.md669 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…