Socket
Socket
Sign inDemoInstall

@rumblefishdev/eth-signer-kms

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rumblefishdev/eth-signer-kms - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

4

dist/signer.js

@@ -70,2 +70,6 @@ "use strict";

};
if (baseTx.type === 0) {
delete baseTx.maxFeePerGas;
delete baseTx.maxPriorityFeePerGas;
}
const unsignedTx = ethers_1.utils.serializeTransaction(baseTx);

@@ -72,0 +76,0 @@ const hash = keccak256_1.keccak256(ethers_1.utils.arrayify(unsignedTx));

2

package.json
{
"name": "@rumblefishdev/eth-signer-kms",
"version": "2.1.0",
"version": "2.2.0",
"description": "Sign ethereum transaction/messages using KMS service from AWS",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -88,2 +88,7 @@ import AWS from 'aws-sdk'

if (baseTx.type === 0) {
delete baseTx.maxFeePerGas
delete baseTx.maxPriorityFeePerGas
}
const unsignedTx = utils.serializeTransaction(baseTx)

@@ -90,0 +95,0 @@ const hash = keccak256(utils.arrayify(unsignedTx))

@@ -70,2 +70,13 @@ import AWS from 'aws-sdk'

it('should support legacy tx', async () => {
const someWallet = Wallet.createRandom()
const tx = kmsSigner.sendTransaction({
to: someWallet.address,
value: utils.parseEther('1'),
type: 0
})
await expect(tx).resolves.not.toThrow()
})
it('should sign message using KMS', async () => {

@@ -72,0 +83,0 @@ const message = 'hi'

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