
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@zkp2p/indexer-schema
Advanced tools
Exports the GraphQL schema used by the ZKP2P indexer.
Install
pnpm add @zkp2p/indexer-schema
Usage
// Load the SDL string (GraphQL schema) in Node
import { schemaSDL } from '@zkp2p/indexer-schema';
// or CommonJS: const { schemaSDL } = require('@zkp2p/indexer-schema');
// Path reference for codegen configs
schema: node_modules/@zkp2p/indexer-schema/dist/schema.graphql
Notes
This is a minimal example to generate TypeScript types from the exported domain schema.
pnpm add -D @graphql-codegen/cli @graphql-codegen/typescript @graphql-codegen/typescript-operations
schema: node_modules/@zkp2p/indexer-schema/dist/schema.graphql
# Alternatively, if using a workspace dependency:
# schema: ../zkp2p-indexer/dist/schema.graphql
generates:
src/__generated__/types.ts:
plugins:
- typescript
- typescript-operations
config:
avoidOptionals: true
"scripts": {
"codegen": "graphql-codegen --config codegen.yml"
}
Deposit
, Intent
, etc. operation and type definitions from src/__generated__/types.ts
.domain.graphql
and provide resolvers that read from the indexer’s DB.Notes
FAQs
ZKP2P Indexer GraphQL schema
We found that @zkp2p/indexer-schema demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.