@@ -71,150 +71,168 @@
diff --git a/src/libs/endorserServer.ts b/src/libs/endorserServer.ts
index 474740831..f230bdc99 100644
--- a/src/libs/endorserServer.ts
+++ b/src/libs/endorserServer.ts
@@ -8,7 +8,11 @@ import { DEFAULT_IMAGE_API_SERVER } from "@/constants/app";
import { Contact } from "@/db/tables/contacts";
import { accessToken, deriveAddress, nextDerivationPath } from "@/libs/crypto";
import { NonsensitiveDexie } from "@/db/index";
-import { getAccount, getPasskeyExpirationSeconds } from "@/libs/util";
+import {
+ getAccount,
+ getPasskeyExpirationSeconds,
+ GiverReceiverInputInfo,
+} from "@/libs/util";
import { createEndorserJwtForKey, KeyMeta } from "@/libs/crypto/vc";
import { Account } from "@/db/tables/accounts";
@@ -32,11 +36,6 @@ export interface AgreeVerifiableCredential {
object: Record;
}
-export interface GiverReceiverInputInfo {
- did?: string;
- name?: string;
-}
-
export interface GiverOutputInfo {
action: string;
giver?: GiverReceiverInputInfo;
diff --git a/src/libs/util.ts b/src/libs/util.ts
index 9830ee78b..ada548e78 100644
--- a/src/libs/util.ts
+++ b/src/libs/util.ts
@@ -25,6 +25,11 @@ import { KeyMeta } from "@/libs/crypto/vc";
import { createPeerDid } from "@/libs/crypto/vc/didPeer";
import { registerCredential } from "@/libs/crypto/vc/passkeyDidPeer";
+export interface GiverReceiverInputInfo {
+ did?: string;
+ name?: string;
+}
+
export const PRIVACY_MESSAGE =
"The data you send will be visible to the world -- except: your IDs and the IDs of anyone you tag will stay private, only visible to them and others you explicitly allow.";
export const SHARED_PHOTO_BASE64_KEY = "shared-photo-base64";
diff --git a/src/views/ClaimView.vue b/src/views/ClaimView.vue
index 85bbb572f..9d317fb5f 100644
--- a/src/views/ClaimView.vue
+++ b/src/views/ClaimView.vue
@@ -463,7 +463,6 @@ import QuickNav from "@/components/QuickNav.vue";
import { Account } from "@/db/tables/accounts";
import {
GenericCredWrapper,
- GiverReceiverInputInfo,
OfferVerifiableCredential,
} from "@/libs/endorserServer";
@@ -811,7 +810,7 @@ export default class ClaimView extends Vue {
}
openFulfillGiftDialog() {
- const giver: GiverReceiverInputInfo = {
+ const giver: libsUtil.GiverReceiverInputInfo = {
did: libsUtil.offerGiverDid(
this.veriClaim as GenericCredWrapper,
),
diff --git a/src/views/ContactGiftingView.vue b/src/views/ContactGiftingView.vue
index f96d97ec7..1c2abfe15 100644
--- a/src/views/ContactGiftingView.vue
+++ b/src/views/ContactGiftingView.vue
@@ -11,8 +11,7 @@
class="text-lg text-center px-2 py-1 absolute -left-2 -top-1"
>
-
- Give to Contacts
+ Given by...