Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/modules/pubky_swaps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ payloads over this carrier.
- The wallet's identity towards providers derives from the seed. Each swap's claim key and preimage
derive from the seed and a random 32-byte index, with HMAC-SHA512 under their own domain strings,
so a restored wallet or a second device on the same seed never repeats a preimage an earlier
claim published. The keys never collide with the Boltz module's keys, and the identity is not the
claim published. The keys never collide with the seed's other keys, and the identity is not the
user's Pubky identity.
- The index is not secret: the swap request carries it as `owner_ref`, which the provider keeps and
lists back (`swap-list-v1`).
Expand Down
2 changes: 1 addition & 1 deletion src/modules/pubky_swaps/keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//!
//! The provider sees only public keys and the payment hash. Each key is
//! HMAC-SHA512(seed, domain || index), truncated to 32 bytes, under its own domain string, so
//! nothing here can collide with the Boltz module's BIP85 keys or with each other.
//! nothing here can collide with the seed's other keys, BIP85 ones included, or with each other.
//!
//! The index is 32 random bytes, so a restored wallet or a second device on the same seed never
//! repeats a preimage an earlier claim published. It is not secret: the wallet sends it to the
Expand Down
Loading