impierce / openid4vc

Rust implementation of the OpenID4VC standards. The library will offer implementations for SIOPv2, OpenID4VP and OpenID4VCI.
https://www.impierce.com
Apache License 2.0
28 stars 3 forks source link

Make trait methods in `oid4vc-core` async #73

Closed nanderstabel closed 6 months ago

nanderstabel commented 6 months ago

Description

See title

Motivation

By not being async functions, some of the trait methods force downstream implementations to use futures::executor::block_on in order to add asynchronous code into their method specific implementations, which can cause deadlocks in certain setups.

Making these methods async prevents that.

Resources

n/a

To-do List