
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@bulla-network/contacts
Advanced tools
Save Web3 contacts and reuse across multiple dApps. Stored and encrypted with Ceramic, SelfId and 3ID Connect.
npm install @bulla-network/contacts
yarn add @bulla-network/contacts
This is a React library. There are two main components:
<SelfIdProvider />
and <ContactsProvider />
.
SelfIdProvider maintains the connection information to SelfId and Ceramic. It provides the current state of the connection and a function to enable it if disabled.
ContactsProvider uses the SelfId connection to get, set and manipulate the contacts. The rest of the app can operate without knowledge of how contacts are persisted.
Example:
const App = () => {
const {userAddress} = useWeb3(); // not included, SelfIdProvider needs wallet and network.
return (
<SelfIdProvider userAddress={userAddress} notSupported={false} env="mainnet">
<ContactsProvider userAddress={userAddress}>
<YourAppHere />
</ContactsProvider>
</SelfIdProvider>
);
}
useContacts
Your main entry point to interact with Contacts.
const contactsContext = useContacts();
where ContactsContext can be of type ContactsRepo | SelfIdNotConnectedState | 'fetching';
This allows for improve type safety and easier UX.
Helper functions are available to help with this inconvenience.
function isContactsReady(context: ContactsContext): context is ContactsRepo;
function requireContactsReady(): never;
FAQs
Web3 contacts
We found that @bulla-network/contacts demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.