v1.1.1
sec
高效加密标准(SEC)的实现,包括 SECP256K1 和 SECP256R1。
4喜欢 4.6万近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
xclud/dart_sec open-source repository details.
以下为英文项目原文快照,最新内容请访问 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.
依赖清单 4 项
^4.0.0^5.0.0^1.25.0^3.1.1先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗