diff options
Diffstat (limited to 'src/lib/ark.ts')
| -rw-r--r-- | src/lib/ark.ts | 15 |
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", + }); +}; |
