Skip to content

Commit

Permalink
feedback fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fboucquez committed Nov 15, 2024
1 parent 287dba4 commit 3176f69
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion features/keychain/api/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ export interface KeychainApi {
secp256k1: {
signBuffer(params: { data: Buffer } & KeySource): Promise<Buffer>
signBuffer(params: { data: Buffer; enc: 'der' } & KeySource): Promise<Buffer>
signSchnorr(params: { data: Buffer; extraEntropy?: Buffer } & KeySource): Promise<Buffer>
signSchnorr(
params: { data: Buffer; extraEntropy?: Buffer; tweak?: Buffer } & KeySource
): Promise<Buffer>
}
}

Expand Down
2 changes: 1 addition & 1 deletion features/keychain/module/crypto/secp256k1.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const create = ({ getPrivateHDKey }) => {
)
const hdkey = getPrivateHDKey({ seedId, keyId })
const privateKey = tweak ? tweakPrivateKey({ hdkey, tweak }) : hdkey.privateKey
return Buffer.from(await secp256k1.schnorrSign({ data, privateKey, extraEntropy }))
return secp256k1.schnorrSign({ data, privateKey, extraEntropy, format: 'buffer' })
},
})

Expand Down

0 comments on commit 3176f69

Please sign in to comment.