dig-session
The DIG session / keystore layer: a small, custody-safe facade that turns stored, encrypted key material into a live signer and injects a bare signing primitive into downstream consumers.
It composes two lower-level crates and adds no cryptography of its own:
dig-keystore— encrypted, per-scheme secret-key storage (Keystore::<K>::load -> unlock -> SignerHandle).dig-identity— the canonical DIG BLS identity derivation (m/12381'/8444'/9'/0').
Install
[]
= "0.1"
Use
use Arc;
use ;
#
Design notes
- No seal / decap. Recipient message encryption belongs to
dig-message, not here. - Identity keys are stored with
L1WalletBls, notBlsSigning. The identity key is already derived by dig-identity; storage must round-trip it viafrom_bytes.BlsSigningwould re-derive viafrom_seedand yield a different key (the dig_ecosystem #64/#57 pitfall). - Custody-safe.
UnlockedIdentityzeroizes its secret on drop, neverDebug-prints key material, and must never cross an IPC boundary.
See SPEC.md for the normative contract.
License
GPL-2.0-only.