Skip to content

Commit

Permalink
removes signer serialization, logs
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandrosGounis committed Jan 11, 2024
1 parent 45bfc45 commit f2073dc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/utils/encrypt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import nacl from 'tweetnacl'
export function signData(payload: any, env: Env) {
const privateKey = Buffer.from(env.PRIVATE_KEY, 'hex')

const signature = nacl.sign.detached(Buffer.from(JSON.stringify(payload)), privateKey)
const signature = nacl.sign.detached(Buffer.from(payload), privateKey)

return {
signature: Buffer.from(signature).toString('hex')
Expand Down
1 change: 0 additions & 1 deletion src/utils/versioning.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export function makeResponsePayload(payload: any, version: VERSIONS, env: Env, r

if (shouldEncode) {
encodedData = stringToBase64(encodedData)
console.log('after encoding::', encodedData)
displayData = encodedData
}

Expand Down

0 comments on commit f2073dc

Please sign in to comment.