You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
I've been working on updating this implementation to align it with libp2p/js-libp2p-interfaces#100 and I am noticing that export function on private keys introduces unnecessary dependencies as in export functionality is is not key specific. So I would suggest factoring that functionality out into separate interface e.g.
We did a similar change in js-multiformats for base encoding and hashing where instead of passing identifiers you pass references and it simplified things greatly.
The text was updated successfully, but these errors were encountered:
Also if we really want to we could still keep export method on PrivateKey but we could just swap format identifier with KeyExporter as described above so that same example could be rewritten as follows:
I've been working on updating this implementation to align it with libp2p/js-libp2p-interfaces#100 and I am noticing that
export
function on private keys introduces unnecessary dependencies as in export functionality is is not key specific. So I would suggest factoring that functionality out into separate interface e.g.This would make remove indirection and instead of doing e.g.
One would be a able to do following instead:
We did a similar change in js-multiformats for base encoding and hashing where instead of passing identifiers you pass references and it simplified things greatly.
The text was updated successfully, but these errors were encountered: