return stream GetIdentity for MultiPass::get_identity
remove async signature
impl future for GetIdentity to return a single Identity
Which issue(s) this PR fixes 🔨
resolves #546
Special notes for reviewers 🗒️
wasm js export of MultiPass::get_identity will continue to mimic the previous design for the time being but may add an additional function to work along side so the stream could be used in js instead (eg when asynchronously loading the list).
Additional comments 🎤
GetIdentity is used instead of BoxStream since we are also implementing Future for the struct to return a single Identity if the Identifier isnt a list of public keys, though this may change so so only a single key can be used when awaiting the future so it is guaranteed to provide the single Identity if it that specific key is available and discoverable.
What this PR does 📖
GetIdentity
forMultiPass::get_identity
GetIdentity
to return a singleIdentity
Which issue(s) this PR fixes 🔨
Special notes for reviewers 🗒️
MultiPass::get_identity
will continue to mimic the previous design for the time being but may add an additional function to work along side so the stream could be used in js instead (eg when asynchronously loading the list).Additional comments 🎤
GetIdentity
is used instead ofBoxStream
since we are also implementingFuture
for the struct to return a singleIdentity
if theIdentifier
isnt a list of public keys, though this may change so so only a single key can be used when awaiting the future so it is guaranteed to provide the singleIdentity
if it that specific key is available and discoverable.