Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Custom Ethereum web3 provider to facilitate separation of business layer and wallet layer

Notifications You must be signed in to change notification settings

ihaveCred/OfflineSignProvider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

offlineSignProvider

This is a customized Ethereum web3-provider to facilitate separation of business layer and wallet layer. With AWS KMS support.

encrypt\decrpty command line usage

npm encrypt {accessKeyId} {region} {secretAccessKey} {keyId} {privateKey}
npm decrypt {accessKeyId} {region} {secretAccessKey} {encodedPrivateKey}

provider usage

let Web3 = require('web3');
const Provider = require("offlinesignprovider");
var baseProvider = new Web3.providers.HttpProvider("https://kovan.infura.io/xxxxxxx");
var web3 = new Web3(new Provider(baseProvider, [{ address: "0x000000000", encodedKey: "aaaabbbccceedd" }], {
    accessKeyId,     //AWS KMS accessKeyId
    region,          //AWS KMS region
    secretAccessKey  //AWS KMS secretAccessKey
}));

web3.eth.sendTransaction(tx);// send tx

About

Custom Ethereum web3 provider to facilitate separation of business layer and wallet layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •