Skip to content

Commit

Permalink
refactor: do not return internal Signature object
Browse files Browse the repository at this point in the history
  • Loading branch information
feri42 committed Feb 28, 2024
1 parent 7fb32bf commit be1cc80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/keychain/module/crypto/secp256k1.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const create = ({ getPrivateHDKey }) => {
signBuffer: async ({ seedId, keyId, data, ecOptions, rawSignature }) => {
const { privateKey } = getPrivateHDKey({ seedId, keyId })
const signature = curve.sign(data, privateKey, ecOptions)
return rawSignature ? signature : Buffer.from(signature.toDER())
return rawSignature ? { ...signature } : Buffer.from(signature.toDER())
},
})

Expand Down

0 comments on commit be1cc80

Please sign in to comment.