eth-crypto
Version:
Cryptographic functions for ethereum and how to use them with web3 and solidity
35 lines • 1.49 kB
JavaScript
import { createIdentity } from './create-identity';
import * as publicKey from './public-key';
import { decryptWithPrivateKey } from './decrypt-with-private-key';
import { encryptWithPublicKey } from './encrypt-with-public-key';
import * as cipher from './cipher';
import { publicKeyByPrivateKey } from './public-key-by-private-key';
import { recover } from './recover';
import { recoverPublicKey } from './recover-public-key';
import { sign } from './sign';
import { signTransaction } from './sign-transaction';
import { txDataByCompiled } from './tx-data-by-compiled';
import { calculateContractAddress } from './calculate-contract-address';
import * as hash from './hash';
import * as hex from './hex';
import * as vrs from './vrs';
import * as util from './util';
export { createIdentity, publicKey, decryptWithPrivateKey, encryptWithPublicKey, cipher, publicKeyByPrivateKey, recover, recoverPublicKey, sign, signTransaction, txDataByCompiled, calculateContractAddress, hash, hex, vrs, util };
export default {
createIdentity: createIdentity,
publicKey: publicKey,
decryptWithPrivateKey: decryptWithPrivateKey,
encryptWithPublicKey: encryptWithPublicKey,
cipher: cipher,
publicKeyByPrivateKey: publicKeyByPrivateKey,
recover: recover,
recoverPublicKey: recoverPublicKey,
sign: sign,
signTransaction: signTransaction,
txDataByCompiled: txDataByCompiled,
calculateContractAddress: calculateContractAddress,
hash: hash,
hex: hex,
vrs: vrs,
util: util
};