Add processvoucher routine

This commit is contained in:
lash
2024-11-02 16:08:05 +00:00
parent a414327dc5
commit d3d42ec6a2
8 changed files with 50 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ type Identity struct {
SessionId string
}
func IdentityFromAddress(ctx context.Context, store common.UserDataStore, address string) (Identity, error) {
func IdentityFromAddress(ctx context.Context, store *common.UserDataStore, address string) (Identity, error) {
var err error
var ident Identity
@@ -28,7 +28,7 @@ func IdentityFromAddress(ctx context.Context, store common.UserDataStore, addres
return ident, nil
}
func getSessionIdByAddress(ctx context.Context, store common.UserDataStore, address string) (string, error) {
func getSessionIdByAddress(ctx context.Context, store *common.UserDataStore, address string) (string, error) {
r, err := store.ReadEntry(ctx, address, common.DATA_PUBLIC_KEY_REVERSE)
if err != nil {