mirror of
https://github.com/bitwarden/server
synced 2025-12-15 07:43:54 +00:00
[PM-22263] Integate Rust SDK to Seeder (#6150)
Adds a Rust SDK for performing seed related cryptograhic operations. It depends on internal portions of our Rust SDK. Primarily parts of the bitwarden-crypto crate.
This commit is contained in:
21
util/RustSdk/RustSdkServiceFactory.cs
Normal file
21
util/RustSdk/RustSdkServiceFactory.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace Bit.RustSDK;
|
||||
|
||||
/// <summary>
|
||||
/// Factory for creating Rust SDK service instances
|
||||
/// </summary>
|
||||
public static class RustSdkServiceFactory
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a singleton instance of the Rust SDK service (thread-safe)
|
||||
/// </summary>
|
||||
/// <returns>A singleton IRustSdkService instance</returns>
|
||||
public static RustSdkService CreateSingleton()
|
||||
{
|
||||
return SingletonHolder.Instance;
|
||||
}
|
||||
|
||||
private static class SingletonHolder
|
||||
{
|
||||
internal static readonly RustSdkService Instance = new();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user