Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@gobob/bob-snap
Advanced tools
Snaps is a system that allows developers to safely build and expand the capabilities of MetaMask. It is a program that is run in an isolated environment with a limited set of capabilities, that can customize and modify MetaMask's wallet experience for end users. For example, a snap can add new APIs to MetaMask thus adding support for different blockchains or modify existing functionalities using internal APIs.
Additional information can be found here.
bob-snap
in your dappconst result: boolean = await ethereum.request({
method: 'wallet_requestSnaps',
params: {
'npm:@gobob/bob-snap': {},
},
});
const response = await ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: 'npm:@gobob/bob-snap',
request: {
method: 'btc_getPublicExtendedKey',
params: {
network: 'test',
scriptType: 'P2WPKH',
},
},
},
});
const result: {txId: string; txHex: string} = await ethereum.request({
method: 'wallet_invokeSnap',
params: {
snapId: 'npm:@gobob/bob-snap',
request: {
method: 'btc_signPsbt',
params: {
psbt: base64Psbt, // base64 string for the pbst,
network: 'Main', // for testnet use "Test",
scriptType: 'P2PKH', // "P2SH-P2WPKH" or "P2WPKH"
},
},
},
});
Build the snap and test it locally with the following command:
yarn rebuild
Use the following command to run tests:
yarn test
FAQs
BOB: Metamask snap to manage your BTC, ordinals, and more
The npm package @gobob/bob-snap receives a total of 45 weekly downloads. As such, @gobob/bob-snap popularity was classified as not popular.
We found that @gobob/bob-snap 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.