Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
caip-wallet
Advanced tools
Readme
CAIP-compatible Multi-Blockchain Wallet
import CaipWallet from "caip-wallet";
// Initiate Wallet with target chains
const wallet = await CaipWallet.init({
chains: ["eip155:1"],
mnemonic:
"basic guard spider horse civil trumpet into chalk basket month cabbage walk",
});
// Subscribe to pending user approval event
wallet.on("pending_approval", ({ chainId, request }) => {
// Display Request with ChainID for user approval
if (userApproved) {
wallet.approve(request, chainId);
} else {
wallet.reject(request, chainId);
}
});
// Resolve incoming JSON-RPC requests
const request = {
id: 1,
jsonrpc: "2.0",
method: "personal_sign",
params: [
toHex("Test Message")
"0xa89Df33a6f26c29ea23A9Ff582E865C03132b140"
]
}
const response = await wallet.resolve(request, chainId)
// (resolved automatically unless required user approval for authentication)
export abstract class ICaipWallet extends IEvents {
public abstract chains: ChainAuthenticatorsMap;
public abstract jsonrpc: ChainJsonRpcMap;
public abstract mnemonic: string;
constructor(config: CaipWalletConfig) {
super();
}
public abstract getChains(): Promise<string[]>;
public abstract getAccounts(chainId: string): Promise<string[]>;
public abstract approve(
request: JsonRpcRequest,
chainId: string
): Promise<JsonRpcResponse>;
public abstract reject(
request: JsonRpcRequest,
chainId: string
): Promise<JsonRpcResponse>;
public abstract resolve(
request: JsonRpcRequest,
chainId: string
): Promise<JsonRpcResponse>;
}
FAQs
CAIP-compatible Multi-Blockchain Wallet
The npm package caip-wallet receives a total of 19 weekly downloads. As such, caip-wallet popularity was classified as not popular.
We found that caip-wallet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.