Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@arcblock/app-agent-storage
Advanced tools
Storage interface for delegated did-auth between application and wallet
Interface for define a storage class that can be used by [@arcblock/did-auth].
Possible fields to exist in a did-agent storage record
authorizeId
: Primary keyownerDid
: Owner DIDagentDid
: Agent DIDappDid
: Application DIDappPk
: Application public keyappName
: Application nameappDescription
: Application descriptionappLogo
: Application logocertificate
: Application authorize certificateBasic APIs that a did-agent storage should support:
create(authorizeId, payload)
: 创建记录update(authorizeId, updates)
: 更新记录read(authorizeId)
:按 authorizeId 查询delete(authorizeId)
:删除记录listByApp(appDid)
: 按应用查询listByOwner(ownerDid)
: 按所有者查询npm install @arcblock/app-agent-storage
// or
yarn add @arcblock/app-agent-storage
const StorageInterface = require('@arcblock/app-agent-storage');
module.exports = class KeystoneStorage extends StorageInterface {
constructor() {
this.model = keystone.list('LoginToken').model;
}
create(token, status = 'created') {
const LoginToken = this.model;
const item = new LoginToken({ token, status });
return item.save();
}
read(token) {
return this.model.findOne({ token });
}
update(token, updates) {
return this.model.findOneAndUpdate({ token }, updates);
}
delete(token) {
return this.model.remove({ token });
}
exist(token, did) {
return this.model.findOne({ token, did });
}
};
Name | Website |
---|---|
wangshijun | https://ocap.arcblock.io |
FAQs
Storage interface for delegated did-auth between application and wallet
The npm package @arcblock/app-agent-storage receives a total of 1 weekly downloads. As such, @arcblock/app-agent-storage popularity was classified as not popular.
We found that @arcblock/app-agent-storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.