myc

Self-custodial remote signer for Radroots apps
git clone https://radroots.dev/git/myc.git
Log | Files | Refs | README | LICENSE

commit 12af26b3e588bb56bab541bd13835345bf02d3c1
parent eeef858007a5450327364db83431f102c153d627
Author: triesap <tyson@radroots.org>
Date:   Wed,  1 Jul 2026 23:07:25 +0000

myc: use current managed account import

Diffstat:
Msrc/custody.rs | 7++++---
Msrc/transport/nip46.rs | 2+-
2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/custody.rs b/src/custody.rs @@ -996,8 +996,9 @@ impl MycIdentityProvider { ) -> Result<MycManagedAccountMutationOutput, MycError> { let account_id = { let manager = self.managed_accounts_manager()?; + let identity = RadrootsIdentity::load_from_path_auto(path).map_err(MycError::from)?; manager - .migrate_legacy_identity_file(path, label, make_selected) + .upsert_identity(&identity, label, make_selected) .map_err(|source| MycError::CustodyManager { role: self.role.clone(), source, @@ -2083,10 +2084,10 @@ mod tests { ) .expect("identity"); let temp = tempfile::tempdir().expect("tempdir"); - let path = temp.path().join("legacy.json"); + let path = temp.path().join("managed-account.json"); identity.save_json(&path).expect("save"); let record = provider - .import_managed_account_file(&path, Some("legacy".to_owned()), true) + .import_managed_account_file(&path, Some("managed".to_owned()), true) .expect("import"); let selected_account_id = record .state diff --git a/src/transport/nip46.rs b/src/transport/nip46.rs @@ -206,7 +206,7 @@ impl MycNip46Handler { MycNip46HandledOutcome { handled_request: RadrootsNostrSignerHandledRequest::Respond { response, .. }, .. - } => Ok(response), + } => Ok(*response), MycNip46HandledOutcome { handled_request: RadrootsNostrSignerHandledRequest::Ignore, ..