secp256k1_ecdsa 0.4.1 secp256k1_ecdsa: ^0.4.1 copied to clipboard
secp256k1_ecdsa helps to generate secp256k1 key pairs, sign/verify messages, compress/expand keys and recover public keys.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add secp256k1_ecdsa
With Flutter:
$ flutter pub add secp256k1_ecdsa
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
secp256k1_ecdsa: ^0.4.1
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:secp256k1_ecdsa/secp256k1.dart';
import 'package:secp256k1_ecdsa/utils/constants.dart';
import 'package:secp256k1_ecdsa/utils/hasher.dart';
import 'package:secp256k1_ecdsa/utils/typedefs.dart';
import 'package:secp256k1_ecdsa/utils/utilities.dart';