This repository has been archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
92 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/Hyperledger.Aries/AskarStore/Abstractions/IStorageService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using aries_askar_dotnet.Models; | ||
using Hyperledger.Aries.AskarStore.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Hyperledger.Aries.AskarStore.Abstractions | ||
{ | ||
public interface IStorageService | ||
{ | ||
Task<bool> RemoveStoreAsync(Store store); | ||
Task<Store> OpenStoreAsync(Store store, bool provision = false); | ||
Task<string> GenerateRawKeyAsync(string Seed = null); | ||
Task<string> CreateProfileAsync(Store store, string profile = null); | ||
Task<string> GetProfileNameAsync(Store store); | ||
Task<string> GetDefaultProfileAsync(Store store); | ||
Task<bool> SetDefaultProfileAsync(Store store, string profile); | ||
Task<bool> RemoveProfileAsync(Store store, string profile); | ||
Task<IEnumerable<AskarProfile>> GetListProfilesAsync(Store store); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
using aries_askar_dotnet.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace Hyperledger.Aries.AskarStore.Models | ||
{ | ||
public class AskarProfile | ||
{ | ||
public string Name { get; set; } | ||
public bool Opened { get; set; } | ||
} | ||
} |