
Security Fundamentals
Obfuscation 101: Unmasking the Tricks Behind Malicious Code
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
A universal JavaScript package for elliptic curve cryptography on the EOSIO blockchain.
A universal JavaScript package for elliptic curve cryptography, operations for the EOSIO blockchain.
Features
Built from isomorphic-secp256k1 which has developed strategies to mitigate various side channel attacks.
We support all browsers that can handle WebAssembly.
^12.20.1 || >= 13.2
defaults, no IE 11
NB For testing purposes you will need webcrypto a Node.js v15 feature.
Generate an EOS encoded signature.
Parameter | Type | Description |
---|---|---|
arg | object | Argument. |
arg.hex | string | Uint8Array | Data to sign. |
arg.wif_private_key | string | An EOS wallet import format private key. |
Returns: string — EOS encoded signature.
Ways to import
.
import { generate_eos_signature } from 'eos-ecc'
Ways to require
.
const { generate_eos_signature } = require('eos-ecc')
Usage of generate_eos_signature
.
import crypto from 'crypto' generate_eos_signature({ data: hello, wif_private_key: '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3' }).then(console.log)
The logged output will be SIG_K1_JxMN(…)NJ.
Generate a new cryptographically random EOS key pair.
Parameter | Type | Description |
---|---|---|
seed | Uint8Array? | A 32 byte array to seed a private key (seed < curve order n). |
Returns: KeyPair — Key pair.
Ways to import
.
import { new_eos_keys } from 'eos-ecc'
import new_eos_keys from 'eos-ecc/public/new_eos_keys.js'
Ways to require
.
const { new_eos_keys } = require('eos-ecc')
const new_eos_keys = require('eos-ecc/public/new_eos_keys.js')
Usage new_eos_keys
.
new_eos_keys().then(console.log)
The logged output will be an object containing EOS wif public & private keys.
Convert an EOS WIF private key to a WIF public key.
Parameter | Type | Description |
---|---|---|
wif_private_key | string | EOS wallet import format key. |
Returns: string — EOS wallet import format public key.
Ways to import
.
import { public_key_from_private } from 'eos-ecc'
import public_key_from_private from 'eos-ecc/public/public_key_from_private.js'
Ways to require
.
const { public_key_from_private } = require('eos-ecc')
const public_key_from_private = require('eos-ecc/public/public_key_from_private.js')
Usage public_key_from_private
.
public_key_from_private( '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3' ).then(console.log)
The logged output will be EOS6MRyAjQq8ud7hVNYcfnVPJqcVpscN5So8BhtHuGYqET5GDW5CV.
An EOS wallet import formatted (WIF) public & private key pair.
Property | Type | Description |
---|---|---|
public_key | string | EOS WIF public key. |
private_key | string | EOS WIF private key. |
FAQs
An universal JavaScript (Node.js and browsers) EOSIO and Antelope based digital signature package with public & private key utilities.
The npm package eos-ecc receives a total of 27 weekly downloads. As such, eos-ecc popularity was classified as not popular.
We found that eos-ecc 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.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.
Security News
Join Socket for exclusive networking events, rooftop gatherings, and one-on-one meetings during BSidesSF and RSA 2025 in San Francisco.
Security News
Biome's v2.0 beta introduces custom plugins, domain-specific linting, and type-aware rules while laying groundwork for HTML support and embedded language features in 2025.