sec 1.1.1 copy "sec: ^1.1.1" to clipboard
sec: ^1.1.1 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
}
4
likes
160
points
27k
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

pointycastle

More

Packages that depend on sec