Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd committed Oct 17, 2023
1 parent 1331765 commit 53d8511
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@
"import": "./dist/lib/tx.js",
"types": "./dist/lib/tx.d.ts"
},
"./validate": {
"import": "./dist/validate/index.js",
"types": "./dist/validate/index.d.ts"
},
"./witness": {
"import": "./dist/lib/witness.js",
"types": "./dist/lib/witness.d.ts"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/recovery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { tweak_pubkey } from '@cmdcode/crypto-tools/keys'
import { parse_script } from '@scrow/tapscript/script'
import { parse_proof } from '@scrow/tapscript/tapkey'
import { Signer } from '../signer.js'
import { hash } from '../schema/index.js'
import { base } from '../schema/index.js'
import { sign_tx } from './tx.js'

import {
Expand Down Expand Up @@ -127,7 +127,7 @@ export function parse_recovery_key (words : ScriptWord[]) {
const pubkey = words.at(3)
if (pubkey === undefined) return null
try {
return hash.parse(pubkey)
return base.hash.parse(pubkey)
} catch {
return null
}
Expand Down

0 comments on commit 53d8511

Please sign in to comment.