Skip to content

Commit

Permalink
import functions from "@cashu/crypto"; remove secrets module and test;
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalist42 committed May 20, 2024
1 parent 39ded46 commit 00c2b08
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 146 deletions.
6 changes: 5 additions & 1 deletion src/CashuWallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import {
getDefaultAmountPreference,
splitAmount
} from './utils.js';
import { deriveBlindingFactor, deriveSecret, deriveSeedFromMnemonic } from './secrets.js';
import { validateMnemonic } from '@scure/bip39';
import { wordlist } from '@scure/bip39/wordlists/english';
import { hashToCurve, pointFromHex } from '@cashu/crypto/modules/common';
Expand All @@ -38,6 +37,11 @@ import {
constructProofFromPromise,
serializeProof
} from '@cashu/crypto/modules/client';
import {
deriveBlindingFactor,
deriveSecret,
deriveSeedFromMnemonic
} from '@cashu/crypto/modules/client/NUT09';
import { createP2PKsecret, getSignedProofs } from '@cashu/crypto/modules/client/NUT11';
import { type Proof as NUT11Proof } from '@cashu/crypto/modules/common/index';

Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CashuMint } from './CashuMint.js';
import { CashuWallet } from './CashuWallet.js';
import { setGlobalRequestOptions } from './request.js';
import { generateNewMnemonic, deriveSeedFromMnemonic } from './secrets.js';
import { generateNewMnemonic, deriveSeedFromMnemonic } from '@cashu/crypto/modules/client/NUT09';
import { getEncodedToken, getDecodedToken, deriveKeysetId } from './utils.js';

export * from './model/types/index.js';
Expand Down
62 changes: 0 additions & 62 deletions src/secrets.ts

This file was deleted.

82 changes: 0 additions & 82 deletions test/secrets.test.ts

This file was deleted.

0 comments on commit 00c2b08

Please sign in to comment.