
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Object API implementation for AssemblyScript with additional features.
npm install as-object
npm install visitor-as
Add the transform to your asc
command
--transform json-as/transform
Alternatively, add it to your asconfig.json
(e.g. in package.json)
{
"options": {
"transform": ["json-as/transform"]
}
}
import { Object } from "as-object/assembly";
// Must import as-variant or it will not work
import { Variant } from "as-variant/assembly";
@object
class Vec3 {
x!: f32;
y!: f32;
z!: f32;
}
const vec: Vec3 = {
x: 3.4,
y: 1.2,
z: 8.3
}
console.log("[" + Object.keys(vec).map<string>(v => `"${v}"`).join(", ") + "]");
// ["x", "y", "z"]
console.log(Object.types(vec).join(", "));
// f32, f32, f32
console.log(Object.name(vec));
// Vec3
console.log("[" + Object.values(vec).map<f32>(v => v.get<f32>()).join(",") + "]");
// [3.4000000953674318,1.2000000476837159,8.300000190734864]
FAQs
Object API implementation for AssemblyScript
We found that as-object 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.