Skip to content

chore: migrate motoko/threshold-schnorr to icp-cli#1367

Draft
marc0olo wants to merge 11 commits into
masterfrom
chore/migrate-threshold-schnorr-to-icp-cli
Draft

chore: migrate motoko/threshold-schnorr to icp-cli#1367
marc0olo wants to merge 11 commits into
masterfrom
chore/migrate-threshold-schnorr-to-icp-cli

Conversation

@marc0olo

@marc0olo marc0olo commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Migrates motoko/threshold-schnorr from dfx to icp-cli.

  • Replace dfx.json with icp.yaml (@dfinity/motoko@v5.0.0)
  • Move src/schnorr_example_motoko/backend/; add missing Blob, Principal, Text, Option imports
  • Replace inline IC actor type with import { ic } "mo:ic"; apply mops check --fix
  • Update mops.toml: moc 1.9.0, core 2.5.0, ic 4.0.0
  • Add Makefile with 5 tests (format checks for both key types + cryptographic verification via test.sh)
  • Add test.sh verifying ed25519 (@noble/ed25519), BIP340 and BIP341 (tiny-secp256k1, bitcoinjs-lib)
  • Add package.json; use 32-byte message for BIP340; remove dfx_test_key references
  • CI workflow (icp-dev-env-motoko:0.3.2)
  • README: drop ## Overview / GitHub link; fix dapp→app; document 32-byte BIP340 requirement

Test plan

  • motoko-threshold-schnorr CI passes

🤖 Generated with Claude Code

marc0olo and others added 11 commits June 10, 2026 17:16
Replace dfx.json with icp.yaml, move source to backend/, update
mops.toml to moc 1.9.0 + core 2.5.0 + ic 4.0.0, replace inline
actor type with import { ic } "mo:ic", add icp-cli Makefile test
target and CI workflow.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…eck --fix

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…t.sh

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…chnorr

- @noble/ed25519 v2.x: sync verify(), no sha512Sync setup needed
- BIP340/BIP341: tiny-secp256k1.verifySchnorr requires exactly 32 bytes;
  use 'hello world of BIP340 secp256k1' (32 ASCII chars)
- Switch inline node scripts from dynamic import() to require()

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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