Skip to content

Commit

Permalink
no more crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
micahkendall committed Jan 7, 2024
1 parent da5467e commit fca2c7a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
declare module 'tiny-sha256';
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@
"@sinclair/typebox": "^0.31.28",
"fast-check": "^3.14.0",
"prettier": "^3.1.1",
"sha256": "^0.2.0",
"tiny-sha256": "^1.0.2",
"uplc-node": "^0.0.3",
"uplc-web": "^0.0.3"
},
"browser": {
"@dcspark/cardano-multiplatform-lib-nodejs": "@dcspark/cardano-multiplatform-lib-browser",
"@emurgo/cardano-message-signing-nodejs": "@emurgo/cardano-message-signing-browser",
"sha256": "tiny-sha256",
"uplc-node": "uplc-web"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/misc/bip39.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// This is a partial reimplementation of BIP39 in Deno: https://github.com/bitcoinjs/bip39
// We only use the default Wordlist (english)
import { toHex } from "../utils/mod.ts";
import sha256 from "sha256";
import sha256 from "tiny-sha256";

const INVALID_MNEMONIC = "Invalid mnemonic";
const INVALID_ENTROPY = "Invalid entropy";
Expand Down

0 comments on commit fca2c7a

Please sign in to comment.