sec 1.1.0 copy "sec: ^1.1.0" to clipboard
sec: ^1.1.0 copied to clipboard

Implementation of Standards for Efficient Cryptography (SEC) including SECP256K1 and SECP256R1.

example/sec_example.dart

import 'package:convert/convert.dart';
import 'package:sec/sec.dart';

void main() {
  final privateKey = BigInt.parse(
    'c57304b3a53051600d7035fc593083810a8fa250e6a7a2803cf6a0f3c2750503',
    radix: 16,
  );

  final publicKey = EC.secp256k1.createPublicKey(privateKey, true);
  final pkHex = hex.encode(publicKey);
  print('Public Key: $pkHex');

  // 03566b04ce8459c8e2f95691ff17625a0b84773ecd2b65f597c05bd90fa8609ed6
}
3
likes
140
pub points
70%
popularity

Publisher

unverified uploader

Implementation of Standards for Efficient Cryptography (SEC) including SECP256K1 and SECP256R1.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

pointycastle

More

Packages that depend on sec