Skip to content

[WalletConnect] Allow signed message to be hex or plain #333

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Apr 27, 2025

Conversation

Ganbin
Copy link
Contributor

@Ganbin Ganbin commented Feb 16, 2025

Always show the message in plain and add a switch to show in hex if it was send in hex. We do not convert to hex if the message was sent plain.

There is one thing I didn't make is to accept hex message starting with 0x. Let me know if you want me to look at it.

…d add a switch to show hex if it was send in hex. (we do not convert to hex if the messge was plain)
* main:
  Add auto combine RPCs
  Fix partial signing
  prettier
  - enforce positive entries for default expiry - introduce a hook to share storage and validation logic
  "Coin" fix
  update hook dependency
  add settings, localstorage and react to settings on make offer page
  check that a pasted value can be converted to a number before allowing the paste. this prevents masked values from accepting ambiguous input - i.e. 0,0001 is masked to 1
  prettier
  updated from BubbleTrouble
  prettier
  replace react-imask with NumericFormat
  use TokenAmountInput for fee and XCH amount entry
  remove log statements
  add onBlur handler to compensate for no onChange after a paste
Ganbin added 2 commits April 13, 2025 11:35
* main: (305 commits)
  Make coin selection UI mobile friendly
  fix broken table selection via checkboxes
  use EnhancedCoinStateRow::from
  Add get_coins_by_ids endpoint and related database query
  get p2 coin states in a single query
  get coin states with a single query
  combine getSpendableXchCoinCount and getSpendableCatCoinCount to getSpendableCoinCount
  rename get_are_all_coins_spendable to get_are_coins_spendable
  use backend query to determine if the wallet has coins to autocombine
  multi-page selection of coins
  let sqlite do the byte conversion
  prettier
  push checking for canSplit and canCombine into the backend by add a spendability check
  multi page selection
  Revert "clear selection on sort, filter or page"
  clear selection on sort, filter or page
  fix coin selection for a single page of coins
  reduce tooltip flicker
  add random element to peer removal
  xch-dev#27
  ...

# Conflicts:
#	src/contexts/WalletConnectContext.tsx
… prefix. It will recognize if the message is hex or not:

Message is hex if:
- Start with 0x and only hex characters
OR
- Only hex characters
Else:
- it is a decoded message
@Rigidity Rigidity merged commit ac2df2c into xch-dev:main Apr 27, 2025
5 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants