SkillAgentSearch skills...

OfflineSignProvider

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

Install / Use

/learn @ihaveCred/OfflineSignProvider
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated1y ago
Forks3

Languages

JavaScript

Security Score

55/100

Audited on Jul 9, 2024

No findings