Skip to content

Commit

Permalink
fix(sdk): renaming import to AddressUtils (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevzzsk authored Nov 8, 2023
1 parent 089683e commit 7d9407b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/sdk/src/wallet/Ordit.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as ecc from "@bitcoinerlab/secp256k1"
import BIP32Factory, { BIP32Interface } from "bip32"
import { mnemonicToSeedSync } from "bip39"
import { Address as BIP22Address, Signer } from "bip322-js"
import { Address as AddressUtils, Signer } from "bip322-js"
import * as bitcoin from "bitcoinjs-lib"
import { isTaprootInput } from "bitcoinjs-lib/src/psbt/bip371"
import { sign } from "bitcoinjs-message"
Expand Down Expand Up @@ -234,7 +234,7 @@ export class Ordit {
signMessage(message: string, type?: AddressFormats) {
const addressType = type || this.selectedAddressType
const node = this.allAddresses.find((wallet) => wallet.format === addressType) as Account
const signature = BIP22Address.isP2PKH(node.address!)
const signature = AddressUtils.isP2PKH(node.address!)
? sign(message, node.child.privateKey!)
: Signer.sign(node.child.toWIF(), node.address!, message, getNetwork(this.#network))

Expand Down

0 comments on commit 7d9407b

Please sign in to comment.