Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@lukso/eip191-signer.js
Advanced tools
Helper library to sign any EIP191 data.
For more information see Documentation.
The @lukso/eip191-signer.js
package is used to sign messages according to the EIP191 standard.
If you want to sign with the version 0x45, then use the function signEthereumSignedMessage.
If you want to sign with the version 0x00, then use the function signDataWithIntendedValidator.
npm install @lukso/eip191-signer.js
import { EIP191Signer } from '@lukso/eip191-signer.js';
const eip191Signer = new EIP191Signer();
eip191Signer.hashEthereumSignedMessage(message);
Hashes the given message with the version 0x45.
The message will be enveloped as follows: '\x19' + '\x45' + 'thereum Signed Message:\n' + messageBytes.length + message
and hashed using keccak256.
eip191Signer.hashDataWithIntendedValidator(validatorAddress, message);
Hashes the given message with the version 0x00.
The message will be enveloped as follows: '\x19' + '\x00' + validatorAddress + message
and hashed using keccak256.
eip191Signer.signEthereumSignedMessage(message, signingKey);
This method is for signing a message with the version 0x45.
The message passed as parameter will be wrapped as follows: '\x19' + '\x45' + 'thereum Signed Message:\n' + messageBytes.length + message
.
eip191Signer.signDataWithIntendedValidator(
validatorAddress,
message,
signingKey,
);
This method is for signing a message with the version 0x00.
The message passed as parameter will be wrapped as follows: '\x19' + '\x00' + validatorAddress + message
.
eip191Signer.recover(messageHash, signature);
Recovers the address which was used to sign the given message.
Please check CONTRIBUTING.md
.
eip191-signer.js is Apache 2.0 licensed.
Magali Morin 💻 ⚠️ | Fabian Vogelsteller 🤔 | Callum Grindle 👀 🧑🏫 | Hugo Masclet 👀 🧑🏫 |
FAQs
Helper Library to allows to sign any EIP191 data
The npm package @lukso/eip191-signer.js receives a total of 63 weekly downloads. As such, @lukso/eip191-signer.js popularity was classified as not popular.
We found that @lukso/eip191-signer.js 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 News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.