blob: 2dec57d902001f90c73e65f82225bf0e653954f8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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",
});
};
|