Conversation
|
One minor inconsistency (which probably warrants its own issue) is that this method exposes It might be nice to use the same type everywhere and maybe this PR could benefit from changing the type of Otherwise +1 for me. Regarding the misuse-resistance, I understand the idea behind, but opaque types unfortunately directly clash with interoperability (with other programming languages for example). |
e5251f5 to
3d8157f
Compare
That's fair -- added a commit to make the API more consistent. |
3d8157f to
6ffbbb4
Compare
cpu
left a comment
There was a problem hiding this comment.
I think it's a reasonable addition and the sensitivity is obvious enough from the name. 👍
Fixes #197. @cpu what do you think, is this misuse-resistant enough? I like how long we've been able to get buy with just
AccountCredentialsserialization, but I guess it is a bit of "security" by obscurity. Given that this is clearly labeled asprivate_key()(unless you've got better name suggestions) and yields thePrivateKeyDertype (and only a reference at that), seems like this might be okay?