Actyx / Actyx

Local-First Cooperation based on Event Sourcing

Home Page:https://developer.actyx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

specific file path-dependency is not obvious in TryFrom impl of AxPrivateKey

Kelerchian opened this issue · comments

I'd rather use a custom function for this instead of TryFrom, since the implementation detail involves a side effect with a particular path default_user_identity_path.

Originally posted by @Kelerchian in #615 (comment)


impl TryFrom<&Option<KeyPathWrapper>> for AxPrivateKey implies a specific default path as a fallback mechanism. This semantic is unobvious and may lead to a bug or a misuse