v1.1.1
sec
Implementierung der Standards für effiziente Kryptografie (SEC), einschließlich SECP256K1 und SECP256R1.
4Likes 39.00030-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
xclud/dart_sec open-source repository details.
^4.0.0^5.0.0^1.25.0^3.1.1Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Implementation of Standards for Efficient Cryptography (SEC) including SECP256K1 and SECP256R1.
dependencies:
sec: any
import 'package:sec/sec.dart';
import 'package:convert/convert.dart';
final privateKey = BigInt.parse(
'c57304b3a53051600d7035fc593083810a8fa250e6a7a2803cf6a0f3c2750503',
radix: 16,
);
final publicKey = Secp256k1.createPublicKey(privateKey, true);
final pkHex = hex.encode(publicKey);
print('Public Key: $pkHex');
// 03566b04ce8459c8e2f95691ff17625a0b84773ecd2b65f597c05bd90fa8609ed6
This package uses pointycastle.