Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/Crypto.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import randomBytes from "randombytes"
import randomBytes from "./Randombytes"
const Bitcoin = require("@bitcoin-dot-com/bitcoincashjs2-lib")

export class Crypto {
Expand Down
2 changes: 1 addition & 1 deletion lib/Mnemonic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as BIP39 from "bip39"
import * as bcl from "bitcoincashjs-lib"
// import * as Bitcoin from "bitcoincashjs-lib"
import { Buffer } from "buffer"
import randomBytes from "randombytes"
import randomBytes from "./Randombytes"
import * as wif from "wif"
import { Address } from "./Address"
// TODO: convert "bitcoincashjs-lib" require to import
Expand Down
2 changes: 2 additions & 0 deletions lib/Randombytes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
var randomBytes = require('randombytes');
export default randomBytes;