Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@midnightntwrk/wallet-sdk-unshielded-wallet

Latest version: v4.0.2-canary.20261127113306-b3d11ac

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: ntwrk-bot
16 Stars
18 Forks
101 Versions
131.4K Downloads
TypeScript Repo language

Scan summary

@midnightntwrk/wallet-sdk-unshielded-wallet was last scanned on 27 Nov 2026 at version 4.0.2-canary.20261127113306-b3d11ac. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 101 versions; the latest 5 were published within 5 days (23–27 Nov 2026).
  • Findings: No rules fired in version 4.0.2-canary.20261127113306-b3d11ac.
  • Downloads: 131,437 downloads.

Versions

101 versions published
Versions and the rules that fired in each
VersionPublishedStatus
4.0.2-canary.20261127113306-b3d11ac LATEST 27 Nov 2026 No rules fired
4.0.2-canary.20261127111139-bc6e09f 27 Nov 2026 No rules fired
4.0.2-canary.20261126133044-3280119 26 Nov 2026 No rules fired
4.0.2-canary.20261125175238-c372f94 25 Nov 2026 Not shown
4.0.2-canary.20261123155202-d0c2133 23 Nov 2026 Not shown

No rules fired in 4.0.2-canary.20261127113306-b3d11ac

Findings

Findings for v4.0.2-canary.20261127113306-b3d11ac. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 4.0.2-canary.20261127113306-b3d11ac; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@midnightntwrk/wallet-sdk-unshielded-wallet

Manages unshielded tokens on the Midnight network.

Installation

npm install @midnightntwrk/wallet-sdk-unshielded-wallet

Overview

The Unshielded Wallet handles transparent token operations where transactions are publicly visible on the blockchain. Unlike shielded transactions, unshielded operations do not use zero-knowledge proofs. This package provides:

  • Public token balance tracking
  • Transparent transfer transactions
  • Transaction balancing for unshielded tokens
  • Swap initialization and participation
  • Transaction signing

Usage

Starting the Wallet
import { UnshieldedWallet, createKeystore, PublicKey } from '@midnightntwrk/wallet-sdk-unshielded-wallet';
import { InMemoryTransactionHistoryStorage, NetworkId, ProtocolVersion } from '@midnightntwrk/wallet-sdk-abstractions';
import { randomBytes } from 'node:crypto';

// Configuration for the wallet
const configuration = {
  networkId: NetworkId.Undeployed, // or NetworkId.Testnet, NetworkId.Mainnet
  indexerClientConnection: {
    indexerWsUrl: 'ws://localhost:8088/api/v4/graphql/ws',
    indexerHttpUrl: 'http://localhost:8088/api/v4/graphql',
  },
  txHistoryStorage: new InMemoryTransactionHistoryStorage(),
  // Where this chain hands over to ledger-v9: the schedule of a chain born on ledger-v9, as a 2.x node runs. The
  // final mainnet fork constant is not yet fixed, so a chain that hands over elsewhere states `{ v9: ... }` here.
  forks: ProtocolVersion.V9NativeForkSchedule,
};

// Create a keystore from a random unshielded seed
const seed = randomBytes(32);
const keystore = createKeystore({ kind: 'schnorr', secret: seed }, configuration.networkId);

// Create and start the wallet
const unshieldedWallet = UnshieldedWallet(configuration).startWithPublicKey(PublicKey.fromKeyStore(keystore));

// Start syncing with the network
await unshieldedWallet.start();
Restoring from Serialized State
// Restore a wallet from previously serialized state
const unshieldedWallet = UnshieldedWallet(configuration).restore(serializedState);
await unshieldedWallet.start();
Observing State
unshieldedWallet.state.subscribe((state) => {
  console.log('Progress:', state.progress);
  console.log('Balances:', state.balances);
});

// Or wait for sync
const syncedState = await unshieldedWallet.waitForSyncedState();
Creating Transfer Transactions
const tx = await unshieldedWallet.transferTransaction(
  [{ type: 'TOKEN_A', receiverAddress: '...', amount: 1000n }],
  ttl,
);
Balancing Transactions
// Balance a finalized transaction
const balancingTx = await unshieldedWallet.balanceFinalizedTransaction(finalizedTx);

// Balance an unbound transaction (in-place)
const balancedTx = await unshieldedWallet.balanceUnboundTransaction(unboundTx);

// Balance an unproven transaction (in-place)
const balancedUnprovenTx = await unshieldedWallet.balanceUnprovenTransaction(unprovenTx);
Signing Transactions
// Sign an unproven transaction
const signedTx = await unshieldedWallet.signUnprovenTransaction(tx, signSegment);

// Sign an unbound transaction
const signedUnboundTx = await unshieldedWallet.signUnboundTransaction(tx, signSegment);
Creating Swap Offers
const swapTx = await unshieldedWallet.initSwap(
  { TOKEN_A: 500n }, // inputs
  [{ type: 'TOKEN_B', receiverAddress, amount: 100n }], // outputs
  ttl,
);

Exports

  • UnshieldedWallet - Main wallet class
  • UnshieldedWalletState - Wallet state type
  • KeyStore - Key storage utilities (ledger-v9)
  • Storage utilities for persistence

Variant internals are published under two subpaths, one per ledger version:

  • V2 (ledger-v9) variant internals via @midnightntwrk/wallet-sdk-unshielded-wallet/v2
  • V1 (ledger-v8) variant internals via @midnightntwrk/wallet-sdk-unshielded-wallet/v1

The production wallet registers both variants and hands over at forks.v9; ./v1 is the ledger-v8 half on its own, for code that needs the ledger that produced ledger-v8 history. The two are not interchangeable — ./v1 has no ECDSA support (ledger-v8 has a single signature scheme) and carries its own ledger-v8 createKeystore, whose secret is a plain Uint8Array rather than the root export's {kind, secret}.

import { V2Builder, RunningV2Variant } from '@midnightntwrk/wallet-sdk-unshielded-wallet/v2';

License

Apache-2.0

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @midnightntwrk/wallet-sdk-unshielded-wallet

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229