Skip to content

Instantly share code, notes, and snippets.

View Unique-Divine's full-sized avatar
:electron:
実践している

Unique Divine Unique-Divine

:electron:
実践している
View GitHub Profile
@Unique-Divine
Unique-Divine / jwks.json
Created July 19, 2026 14:03
Sai e2e Web3Auth JWKS (sai-e2e-key-1)
{
"keys": [
{
"e": "AQAB",
"kty": "RSA",
"n": "tXXLyjlqnM09eiY_skQlKjwNAr0ahHcjWUguXdAlu6uVEpaJh8kmvtPX0Db8yyQzq0numgaZ490302RJic1bXWXmOMuZAb3HdzhoYUOMfD0vT2-mTDLRFe4e7VrBPDqeKa40W19ExxrYmzqINHb8pI3seeD12x_ufE5QG5yEjQDu0depqjxWGOMs2ETM1fM2aUkGGCHWGEswweu2M0s2KyYepg2aAakxnEp1SnO3-Om1QE45Oy6ZsnSf-7ikRFxLLxx-X8HExiu2mu3VmaW3pFccemx0WjRgBT_dJE6c3kxzQbdQliyVL8Kde3HLtZ6rdI1QrJWjzyHQecn7Zpl4hw",
"kid": "sai-e2e-key-1",
"use": "sig",
"alg": "RS256"
}
@Unique-Divine
Unique-Divine / gist:dd0a3a7176e68c6d7cc0e38b68f439f4
Last active July 15, 2026 16:03
Web3Auth signed `originData` for programmatic domain whitelisting (`AuthAdapter` arg from Web3Auth v9)

Took some tinkering, but I got this to work in 2026 using the pattern originally described in the above answer from @chaitanyapotti.

Signed originData for ephemeral Web3Auth preview domains

Problem

Our application deploys a unique preview hostname for each pull request, for example:

Keybase proof

I hereby claim:

  • I am Unique-Divine on github.
  • I am realu (https://keybase.io/realu) on keybase.
  • I have a public key whose fingerprint is 8106 7612 5C06 EE88 4FA1 6399 B82D 6C99 804A E551

To claim this, I am signing this object:

@Unique-Divine
Unique-Divine / 01_new-wallet-and-faucet.ts
Last active March 4, 2024 10:30
NibiJS entrypoint examples
import { useFaucet } from "@nibiruchain/nibijs" // v0.7.2
import { newRandomWallet, WalletHD } from "@nibiruchain/nibijs/dist/tx"
async function runExample() {
const wallet: WalletHD = await newRandomWallet()
const [{ address }] = await wallet.getAccounts()
// Save the mnemonic somewhere to re-use the account
console.log("mnemonic: ", wallet.mnemonic)
console.log("address: ", address)