
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@canvas-js/chain-solana
Advanced tools
The Solana session signer takes an injected `SolanaWindowSigner`, provided by Solana wallets like Phantom, and uses it to authenticate a new session.
The Solana session signer takes an injected SolanaWindowSigner
, provided by Solana wallets like Phantom,
and uses it to authenticate a new session.
It also handles verification of messages matching this authentication method.
npm i @canvas-js/chain-solana
import solw3 from "@solana/web3.js"
import type { Signature, SessionSigner, Action, Message, Session } from "@canvas-js/interfaces"
import { SolanaSessionData } from "./types.js"
interface SolanaWindowSigner {
publicKey?: solw3.PublicKey
signMessage(message: Uint8Array): Promise<{
signature: Uint8Array
}>
}
export interface SolanaSignerInit {
chainId?: string
signer?: SolanaWindowSigner
sessionDuration?: number
}
export declare class SolanaSigner implements SessionSigner {
constructor({ signer, sessionDuration, chainId }?: SolanaSignerInit)
readonly match: (chain: string) => boolean
verifySession(topic: string, session: Session): void
getSession(
topic: string,
options?: {
timestamp?: number
fromCache?: boolean
},
): Promise<Session<SolanaSessionData>>
sign(message: Message<Action | Session>): Signature
clear(topic: string): Promise<void>
}
FAQs
The Solana session signer takes an injected `SolanaWindowSigner`, provided by Solana wallets like Phantom, and uses it to authenticate a new session.
The npm package @canvas-js/chain-solana receives a total of 590 weekly downloads. As such, @canvas-js/chain-solana popularity was classified as not popular.
We found that @canvas-js/chain-solana 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.