Skip to content

Commit

Permalink
fix: verify station arbitrary signature
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronCQL committed Mar 26, 2024
1 parent 0d59ea8 commit 5b763f6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## `v0.0.65`

### Fixes

- Fixed `verifyArbitrary` to verify arbitrary signatures done via Station's new Keplr interface

## `v0.0.64`

### Features
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cosmes",
"version": "0.0.64",
"version": "0.0.65",
"private": false,
"packageManager": "[email protected]",
"sideEffects": false,
Expand Down
10 changes: 1 addition & 9 deletions src/wallet/utils/verify.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
import {
base64,
utf8,
verifyADR36,
verifyECDSA,
verifyEIP191,
} from "cosmes/codec";
import { base64, utf8, verifyADR36, verifyEIP191 } from "cosmes/codec";

import { WalletName } from "../constants/WalletName";

Expand Down Expand Up @@ -51,8 +45,6 @@ export function verifyArbitrary({
};
try {
switch (wallet) {
case WalletName.STATION:
return verifyECDSA(params);
case WalletName.METAMASK_INJECTIVE:
return verifyEIP191(params);
default:
Expand Down

0 comments on commit 5b763f6

Please sign in to comment.