Skip to content

feat: add Casper Network support (kobe-casper) - #47

Merged
gitctrlx merged 2 commits into
mainfrom
feat/kobe-casper
Aug 8, 2026
Merged

feat: add Casper Network support (kobe-casper)#47
gitctrlx merged 2 commits into
mainfrom
feat/kobe-casper

Conversation

@gitctrlx

@gitctrlx gitctrlx commented Aug 8, 2026

Copy link
Copy Markdown
Member

Summary

  • New kobe-casper crate: offline HD derivation for CSPR (coin type 506)
    • Default secp256k1 path m/44'/506'/0'/0/{i} (Ledger interop)
    • Optional Ed25519 path m/44'/506'/0'/0'/{i}' via KeyAlgo / --algo
    • Primary address: Casper AccountHash (account-hash- + 64 hex)
    • Preimage matches casper-types: algorithm_name || 0x00 || raw_pubkey (not tag-prefixed)
    • CasperAccount also exposes tagged public-key hex (01… / 02…)
  • Umbrella feature casper (in all-chains); CLI kobe casper / cspr
  • Cross-chain smoke golden for abandon@0 secp; unit KATs for encoding + HD
  • Docs (README, crates/README, CHANGELOG, skill), CI no_std + publish package list, Justfile/Makefile

Test plan

  • cargo test -p kobe-casper --lib
  • cargo test -p kobe --features all-chains --test cross_chain_smoke
  • cargo clippy -p kobe-casper -p kobe-cli --all-features -- -D warnings
  • cargo check -p kobe-casper --no-default-features --features alloc
  • CLI: kobe casper import -m "abandon … about" → golden AccountHash
  • CI green on PR (lint / test / deny / no_std)

Add dual-curve Casper support (default secp256k1 Ledger path, optional
Ed25519 SLIP-10) with AccountHash addresses matching casper-types, CLI
new/import --algo, umbrella feature, smoke KATs, docs, and CI/no_std wiring.
Copilot AI lite review requested due to automatic review settings August 8, 2026 07:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

CI runs clippy with --all-targets; test-only panic! arms tripped -D warnings.
@gitctrlx
gitctrlx merged commit b881d9b into main Aug 8, 2026
4 checks passed
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