Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@cometh/connect-hosted-sdk
Advanced tools
npm install @cometh/hosted-connect-sdk
import { HostedConnect } from '@cometh/hosted-connect-sdk'
const connect = new HostedConnect(apiKey)
This method is used to authenticate the user and get the OAuth token through an OAUTH flow with ComethOIDC. An IFrame will be generated to handle the authentication process.
const oauthToken = await connect.auth.authenticate()
It is required to call this function before any others.
This function initialize the communication with the Cometh Connect wallet and verify that the wallet exist. In order to create a wallet, the user must register on Cometh OIDC.
await connect.wallet.connect()
connect.wallet.getAddress()
This function returns the address of the wallet.
const txParams = { to: DESTINATION, value: VALUE, data: DATA }
const tx = await connect.wallet.sendTransaction(txParams)
This function relays the transaction data to the target address. The transaction fees can be sponsored. The function returns the safeTxHash of the transaction which can be used to wait for the Transaction receipt.
const txPending = await provider.getTransaction(tx.safeTxHash);
const txReceipt = await txPending.wait();
This function relays the transaction data to the target address. The transaction fees can be sponsored.
const signature = await connect.wallet.signMessage('hello')
Sign the given message using the EOA, owner of the smart wallet.
FAQs
SDK Cometh Hosted-Connect
We found that @cometh/connect-hosted-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.