Skip to content

Commit

Permalink
wip: add encrypt in sign message function
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Aug 8, 2024
1 parent ded929d commit b2a73ed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/neuron-wallet/src/services/sign-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { AddressNotFound } from '../exceptions'
import HardwareWalletService from './hardware'
import AddressParser from '../models/address-parser'
import { bytes } from '@ckb-lumos/lumos/codec'
import LogEncryption from './log-encryption'
import logger from '../utils/logger'

export default class SignMessage {
static GENERATE_COUNT = 100
Expand All @@ -31,6 +33,10 @@ export default class SignMessage {
throw new AddressNotFound()
}

const encryption = LogEncryption.getInstance()
logger.error('------------')
logger.error(encryption.encrypt(message))

if (wallet.isHardware()) {
let device = HardwareWalletService.getInstance().getCurrent()
if (!device) {
Expand Down

2 comments on commit b2a73ed

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 10299674746

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 10321887141

Please sign in to comment.