Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
primea-hypervisor
Advanced tools
A JavaScript Implementation of Primea HyperVisor
clone and run npm install
const Hypervisor = require('primea-hypervisor')
const {Message, FunctionRef} = require('primea-objects')
const WasmContainer = require('primea-wasm-container')
// setup presistant state
const level = require('level-browserify')
const RadixTree = require('dfinity-radix-tree')
const db = level(`${__dirname}/db`)
const tree = new RadixTree({db})
const hypervisor = new Hypervisor({tree, containers: [WasmContainer]})
const wasm // a webassembly binary with an exported function named "main"
// create an actor with a webassembly container
const {module} = hypervisor.createActor(WasmContainer.typeId, wasm)
// create message to send to the actor that was just created
const message = new Message({
funcRef: module.getFuncRef('main'),
funcArguments: [new FunctionRef({
actorId: egress.id,
params: ['data']
})]
}).on('execution:error', e => console.error(e))
hypervisor.send(message)
// write everything to the db can create a merkle tree with a single state root
const sr = await hypervisor.createStateRoot()
console.log('state root:', sr.toString('hex'))
Primea is an actor based system with capabilities. Its high level goals are
FAQs
this is a JS implemention of the primea hypervisor
We found that primea-hypervisor 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.