eth_sig_util 0.0.8 copy "eth_sig_util: ^0.0.8" to clipboard
eth_sig_util: ^0.0.8 copied to clipboard

Ethereum signature utility porting from JS

eth_sig_util #

Ethereum signature utility porting from JS

This lib came from the demand of our project Avacus

Inspired by Dart ethereum_util but no longer active and not yet supported for V1 and V4

Features #

  • Sign typed message (Typed Data follow EIP712 standard)
  • Sign message
  • Sign personal message
  • Recover public address from signature (personal_ecRecover)

Usage #

import 'package:eth_sig_util/eth_sig_util.dart';

String signature = EthSigUtil.signTypedData(privateKey: '4af...bb0', jsonData: '{...}', version: TypedDataVersion.V4);

String signature = EthSigUtil.signMessage(privateKey: '4af...bb0', message: []);

String signature = EthSigUtil.signPersonalMessage(privateKey: '4af...bb0', message: []);

String address = EthSigUtil.ecRecover(signature: '0x84ea3...', message: []);
19
likes
110
points
3.27k
downloads

Publisher

unverified uploader

Weekly Downloads

Ethereum signature utility porting from JS

Homepage
Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

buffer, collection, convert, equatable, pointycastle

More

Packages that depend on eth_sig_util