multi-wallet-sig
multisig for Ethereum using detached signatures
About
Ethereum multisig contract Using 0x19 thus makes it possible to extend the scheme by defining a version 0x45 (E) to handle these kinds of signatures. This package provides a pre-signed transaction message for the contract function
Demo code
Example
public returns
From EIP 191
Get Started
npm install multi-wallet-sig --save
Test
npm test
Functions
createSig(s)(privateKey, ...args)
Signs a sha3 message hash with the private key
Inputs
privateKey(s)
: The ETH private key(s) to signargs
: Contract method arguments
Return value
Signed hash as signature object with v, r and s values.
Usage
const multiWalletSig = require; const privateKeys = [ 'B4D3CD82B474F9F050C1EC91606086FB8A4B41E82CC3D34566523A290FB653CE', 'D3DE84FF6B6C020D0CF43251298FD40F54A2E4D6C043C8B3FF02AB1FF7F99B37'];const multi = '0x51b929f4cf7c7c95bffd3f9a1b0f8a512bf40c98';const nonce = 0;const destination = '0x5d6b33755202d5f3fda82dabb826fbc596a45cd9';const value = 1000000000000000000;const data = '0x'; //A single private key signaturemultiWalletSig.createSig;return: //Multiple private key signaturesmultiWalletSig.createSigs;return: