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.
eip712domains
Advanced tools
Utilities for retrieval of EIP-712 domain via ERC-5267 with fallback logic.
Readme
A helper for retrieval of the EIP-712 domain of a contract. Uses ERC-5267 with fallback to known domains or guided guessing.
npm install eip712domains
// (1) Create an EIP-712 Domain Client
// (1a) Viem
import { createERC5267Client } from 'eip712domains/viem';
const { getEIP712Domain } = createERC5267Client(publicClient);
// (1b) Ethers
import { createERC5267Client } from 'eip712domains/ethers';
const { getEIP712Domain } = createERC5267Client(provider);
// (1c) HTTP
import { createERC5267Client } from 'eip712domains/http';
const { getEIP712Domain } = createERC5267Client('https://infura.io/...');
// (2) Get the domain for a contract address
const domain = await getEIP712Domain(contractAddress);
if (domain === undefined) {
// Handle unavailable domain
}
// (3) Request a signature
// (3a) Viem
const signature = await walletClient.signTypedData({ domain, ... });
// (3b) Ethers
const signature = await signer.signTypedData(domain, ...);
FAQs
Utilities for retrieval of EIP-712 domain via ERC-5267 with fallback logic.
The npm package eip712domains receives a total of 0 weekly downloads. As such, eip712domains popularity was classified as not popular.
We found that eip712domains demonstrated a healthy version release cadence and project activity because the last version was released less than 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.