
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
abcwallet-embed
Advanced tools
## 简介 ABCWallet Embed 是一个简单、安全的秘钥管理方案。用户可以以熟悉的方式来进入区块链世界,降低了用户理解区块链的门槛。 开发者可以非常简单地把 ABCWallet Embed 集成到 Dapps 里面,从而降低用户的获取成本,提高 Dapp 收益。
ABCWallet Embed 是一个简单、安全的秘钥管理方案。用户可以以熟悉的方式来进入区块链世界,降低了用户理解区块链的门槛。 开发者可以非常简单地把 ABCWallet Embed 集成到 Dapps 里面,从而降低用户的获取成本,提高 Dapp 收益。
ABCWallet Embed 提供了一个 web3 provider,它可以用于实例化 Web3。这个 provider 和 Metamask 的 provider 完全兼容,因此你可以用和 Web3 一致的 API 来使用 ABCWallet Embed。
安装
npm install abcwallet-embed --save
初始化
import ABCWalletEmbed from 'abcwallet-embed'
import Web3 from 'web3'
;(async function() {
const sdk = new ABCWalletEmbed()
await sdk.init()
await sdk.login()
const web3 = new Web3(sdk.provider)
window.Web3 = sdk.Web3
window.web3 = web3
web3.eth.getAccounts((err, accounts) => {
console.log(accounts)
web3.eth.getBalance(accounts[0], (err, res) => {
console.log(res)
})
})
})()
区块链生态中最重要的组成部分有两个:数字资产和 Dapp。 然而对于普通用户来说,最大的难题在于理解区块链的知识:公钥、私钥、Keystore、签名、备份等等等等。 在用户好不容易理解完这些知识后,还需要做大量的准备工作:下载钱包、生成公私钥、备份私钥(还不能复制,需要手抄)…… 等用户克服重重阻碍完成这些任务之后,早已丧失了对于区块链的兴趣:什么东西,这么复杂,都是骗子。
而这些,正是 ABCWallet Embed 想要解决的问题。
ABCWallet Embed 会在 Dapp 中加载一个 iframe,用户的私钥及相关信息会通过该 iframe 存储在用户本地。无论是 Dapp 开发者还是 ABCWallet 都无法获取到用户的私钥。 Embed 会响应 Dapp 的请求,包括签名、交易、查询等等,并将需要的请求进行转发到 iframe 中。在 iframe 处理完之后会将结果响应给 Embed,最终完成对于 Dapp 的请求的响应。 在这个过程中,对于必要的请求,iframe 会触发一个弹窗,让用户进行确认、身份校验等操作。
FAQs
## 简介 ABCWallet Embed 是一个简单、安全的秘钥管理方案。用户可以以熟悉的方式来进入区块链世界,降低了用户理解区块链的门槛。 开发者可以非常简单地把 ABCWallet Embed 集成到 Dapps 里面,从而降低用户的获取成本,提高 Dapp 收益。
The npm package abcwallet-embed receives a total of 0 weekly downloads. As such, abcwallet-embed popularity was classified as not popular.
We found that abcwallet-embed 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.