secp256k1_ecdsa 0.6.1 copy "secp256k1_ecdsa: ^0.6.1" to clipboard
secp256k1_ecdsa: ^0.6.1 copied to clipboard

secp256k1_ecdsa helps to generate secp256k1 key pairs, sign/verify messages, compress/expand keys and recover public keys.

Ecdsa/Secp256k1 #

import 'package:secp256k1_ecdsa/secp256k1_ecdsa.dart';

final message = Utilities.hexToBytes('some message here to sign it');

final privateKey = PrivateKey.fromHex('your private key hex');

final signature = privateKey.sign(message);

final publicKey = privateKey.getPublicKey();
final verified = publicKey.verify(signature, message);

copied to clipboard
1
likes
130
points
2.01k
downloads

Publisher

verified publisherpolkadart.dev

Weekly Downloads

2024.09.17 - 2025.04.01

secp256k1_ecdsa helps to generate secp256k1 key pairs, sign/verify messages, compress/expand keys and recover public keys.

Homepage
Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

pointycastle

More

Packages that depend on secp256k1_ecdsa