+
+ Signature
+
+
{signature}
+
+ User Session Address
+
+
+ {client.granteeAddress}
+
+
+ Meta Account Address
+
+
+ {account.bech32Address}
+
+
+
+ {
+ const result = await verifySignatureWithApi(
+ client,
+ account.bech32Address,
+ message,
+ signature,
+ );
+
+ // eslint-disable-next-line no-alert --- No need for more complex user notification scheme
+ alert(`You message is ${result ? "valid" : "invalid"}!!!!`);
+ }}
+ text="Verify Signature"
+ />
+
+
+
+
+ );
+}
diff --git a/apps/demo-app/tsconfig.json b/apps/demo-app/tsconfig.json
index 10ba1595..e4d07053 100644
--- a/apps/demo-app/tsconfig.json
+++ b/apps/demo-app/tsconfig.json
@@ -1,9 +1,21 @@
{
"extends": "@burnt-labs/tsconfig/nextjs.json",
"compilerOptions": {
- "plugins": [{ "name": "next" }],
- "moduleResolution": "Bundler"
+ "plugins": [
+ {
+ "name": "next"
+ }
+ ],
+ "moduleResolution": "Bundler",
+ "strictNullChecks": true
},
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
- "exclude": ["node_modules"]
+ "include": [
+ "next-env.d.ts",
+ "**/*.ts",
+ "**/*.tsx",
+ ".next/types/**/*.ts"
+ ],
+ "exclude": [
+ "node_modules"
+ ]
}
diff --git a/packages/abstraxion-core/src/SignArbSecp256k1HdWallet.ts b/packages/abstraxion-core/src/SignArbSecp256k1HdWallet.ts
index 88ec91c6..ae2c3b5c 100644
--- a/packages/abstraxion-core/src/SignArbSecp256k1HdWallet.ts
+++ b/packages/abstraxion-core/src/SignArbSecp256k1HdWallet.ts
@@ -1,5 +1,5 @@
import { Buffer } from "buffer";
-import { makeSignBytes, type AccountData } from "@cosmjs/proto-signing";
+import { type AccountData, makeSignBytes } from "@cosmjs/proto-signing";
import type { KdfConfiguration } from "@cosmjs/amino";
import {
encodeSecp256k1Signature,
@@ -10,17 +10,17 @@ import { assert, isNonNullObject } from "@cosmjs/utils";
import { Hash, PrivKeySecp256k1 } from "@keplr-wallet/crypto";
import type { HdPath, Secp256k1Keypair } from "@cosmjs/crypto";
import {
- Secp256k1,
- Slip10,
- Slip10Curve,
- stringToPath,
- EnglishMnemonic,
- Bip39,
- Random,
Argon2id,
+ Bip39,
+ EnglishMnemonic,
isArgon2idOptions,
pathToString,
+ Random,
+ Secp256k1,
sha256,
+ Slip10,
+ Slip10Curve,
+ stringToPath,
} from "@cosmjs/crypto";
import {
fromBase64,
@@ -315,7 +315,7 @@ export class SignArbSecp256k1HdWallet {
return JSON.stringify(out);
}
- async getAccounts() {
+ async getAccounts(): Promise