aboutsummaryrefslogtreecommitdiff
path: root/packages/anastasis-core/src/crypto.ts
blob: 54f27b646187643ba6af64b59e51d029e915f4f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { argon2id } from "hash-wasm";

async function userIdentifierDerive(
  idData: any,
  serverSalt: string,
): Promise<string> {
  throw Error("not implemented");
}

// interface Keypair {
//   pub: string;
//   priv: string;
// }

// async function accountKeypairDerive(): Promise<Keypair> {}

// async function secureAnswerHash(
//   answer: string,
//   truthUuid: string,
//   questionSalt: string,
// ): Promise<string> {}