Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eip-712

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eip-712 - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

package.json
{
"name": "eip-712",
"version": "0.1.0",
"version": "0.1.1",
"description": "Utility functions that can help with signing and verifying EIP-712 based messages",

@@ -23,3 +23,3 @@ "author": "Maarten Zuidhoorn <maarten@zuidhoorn.com>",

"engines": {
"node": "10"
"node": ">=10"
},

@@ -26,0 +26,0 @@ "files": [

# `eip-712`
![Version](https://img.shields.io/npm/v/Mrtenz/eip-712) ![License](https://img.shields.io/github/license/Mrtenz/eip-712) [![Travis CI](https://travis-ci.com/Mrtenz/eip-712.svg?branch=master)](https://travis-ci.com/Mrtenz/eip-712) [![codecov](https://codecov.io/gh/Mrtenz/eip-712/branch/master/graph/badge.svg)](https://codecov.io/gh/Mrtenz/eip-712)
![Version](https://img.shields.io/npm/v/eip-712) ![License](https://img.shields.io/github/license/Mrtenz/eip-712) [![Travis CI](https://travis-ci.com/Mrtenz/eip-712.svg?branch=master)](https://travis-ci.com/Mrtenz/eip-712) [![codecov](https://codecov.io/gh/Mrtenz/eip-712/branch/master/graph/badge.svg)](https://codecov.io/gh/Mrtenz/eip-712)

@@ -109,3 +109,3 @@ This is a library for Node.js and web browsers with some utility functions that can help with signing and verifying [EIP-712](https://eips.ethereum.org/EIPS/eip-712) based messages. It is fully written in TypeScript.

const getTypeHash = { /*...*/ };
const typedData = { /*...*/ };
console.log(getTypeHash(typedData, 'EIP712Domain').toString('hex')); // 8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f

@@ -121,3 +121,3 @@ ```

const getTypeHash = { /*...*/ };
const typedData = { /*...*/ };
console.log(encodeType(typedData, 'EIP712Domain')); // EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)

@@ -133,5 +133,5 @@ ```

const getTypeHash = { /*...*/ };
const typedData = { /*...*/ };
console.log(getDependencies(typedData, 'EIP712Domain')); // ['EIP712Domain']
console.log(getDependencies(typedData, 'Mail')); // ['Mail', 'Person']
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc