cove icon indicating copy to clipboard operation
cove copied to clipboard

Implement `cove-keyteleport` crate in Rust

Open praveenperera opened this issue 7 months ago • 1 comments

Parent issue: #618

Summary

Create an internal workspace crate named cove-keyteleport under rust/crates/cove-keyteleport and use it to implement the shared Rust core support needed for Cove to participate in non-multisig Key Teleport flows.

This should be an internal Cove crate for now, not a separate repository in the bitcoinppl organization.

Crate boundary

cove-keyteleport should own the protocol-focused Rust logic:

  • packet and session types for sender and receiver flows
  • parsing / validation of supported Key Teleport payload containers
  • receiver packet generation
  • numeric verification code handling
  • sender packet generation from recipient packet + code
  • payload decoding using the teleport password
  • interoperability-focused tests for parsing, encoding, and crypto flow

Keep these outside the crate for now:

  • UniFFI surface area
  • app flow state machines
  • wallet import/export UX
  • persistence decisions
  • platform-specific transport entry points

Scope

  • implement the non-multisig cryptographic flow from the protocol for supported payloads only
  • support generating receiver packets and their numeric verification code
  • support generating outgoing sender packets from a recipient packet + code
  • support decoding incoming sender packets using the teleport password
  • support only these payloads in v1:
    • mnemonic
    • xprv
  • avoid logging, persisting, or indexing raw secret material unless an explicit higher-level import/export step requests it
  • add interoperability-focused tests around parsing, encoding, and crypto flow

Out of scope

  • multisig PSBT teleport
  • secure notes
  • vault exports
  • backup files
  • UI work
  • splitting this into a standalone external crate or separate repository

Notes

This issue should produce reusable Rust primitives that the send and receive flows can build on top of, while keeping the API narrow enough to evolve with Cove's product decisions.

praveenperera avatar Apr 16 '26 16:04 praveenperera

Hey @praveenperera, I've already submitted the cove-keyteleport Rust crate for #653 (draft PR #676). I'd like to continue building on top of it and work on the Key Teleport receive flow (#654), send flow (#655), and app entry points & transport surfaces (#656). Could you assign me to those?

pradhyum6144 avatar Apr 17 '26 20:04 pradhyum6144