Skip to content

feat: Cairo spending conditions#1

Open
YofiY wants to merge 19 commits intomainfrom
cairo-spending-conditions
Open

feat: Cairo spending conditions#1
YofiY wants to merge 19 commits intomainfrom
cairo-spending-conditions

Conversation

@YofiY
Copy link

@YofiY YofiY commented Sep 8, 2025

Description

This PR implements Cairo Speding condition as specified in NUTXX for cashu tokens, enabling privacy-preserving arbitrary spending conditions through zero-knowledge proofs.

Features:

  • Sending Cairo-locked token:

    • Creation of the Cairo secret type
    • Executable program hashing with blake2S
    • Minimal Implementation of the Felt252
    • Integration of the sending workflow in the CashuWallet
  • Receiving Cairo-locked tokens:

    • Integration of the WASM64 compiled stwo-cairo prover from the stwo-cairo-ts library
    • Integration of receiving workflow in the CashuWallet
  • Integration tests that run for the the NUTXX-supporting rust mint

  • Unit tests for the helper functions

Note to the reader

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.

1 participant