From 5f1c31b6618f0b895fb98c8f2a841989625eaf16 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 26 Nov 2025 10:56:00 -0800 Subject: ark --- src/lib/ark.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/lib/ark.ts') 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", + }); +}; -- cgit v1.2.3