aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ark.ts
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2025-11-26 10:56:00 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:33:08 -0800
commit5f1c31b6618f0b895fb98c8f2a841989625eaf16 (patch)
tree668a3cddaacbb03a1f3b5fdcf8700e49674dada0 /src/lib/ark.ts
parent21023052918c0b787916ef78937e0be41f46142a (diff)
downloadcoinos-ui-5f1c31b6618f0b895fb98c8f2a841989625eaf16.tar.gz
coinos-ui-5f1c31b6618f0b895fb98c8f2a841989625eaf16.zip
ark
Diffstat (limited to 'src/lib/ark.ts')
-rw-r--r--src/lib/ark.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/ark.ts b/src/lib/ark.ts
index 0986983a..2dec57d9 100644
--- a/src/lib/ark.ts
+++ b/src/lib/ark.ts
@@ -1,5 +1,20 @@
import { persistLocal } from "$lib/store";
+import { SingleKey, Wallet } from "@arkade-os/sdk";
const prefix = "ark";
export const mnemonic = persistLocal(`${prefix}mnemonic`, "");
export const password = persistLocal(`${prefix}password`, "");
+export const arkkey = persistLocal(`${prefix}key`, "");
+
+export const getWallet = async () => {
+ // const identity = SingleKey.fromHex(get(arkkey));
+
+ const identity = SingleKey.fromHex(
+ "ce66c68f8875c0c98a502c666303dc183a21600130013c06f9d1edf60207abf2",
+ );
+
+ return Wallet.create({
+ identity,
+ arkServerUrl: "https://arkade.computer",
+ });
+};