snaxdart_ecc 1.0.0 copy "snaxdart_ecc: ^1.0.0" to clipboard
snaxdart_ecc: ^1.0.0 copied to clipboard

Elliptic curve cryptography functions in Dart. Private Key, Public Key, Signature, AES, Encryption, Decryption

Elliptic curve cryptography (ECC) in Dart #

Elliptic curve cryptography lib for EOS based blockchain in Dart lang.

Build Status

Usage #

A simple usage example:

import 'package:snaxdart_ecc/snaxdart_ecc.dart';

main() {
  // Construct the SNAX private key from string
  SNAXPrivateKey privateKey = SNAXPrivateKey.fromString(
      '5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3');

  // Get the related SNAX public key
  SNAXPublicKey publicKey = privateKey.toSNAXPublicKey();
  // Print the SNAX public key
  print(publicKey.toString());

  // Going to sign the data
  String data = 'data';

  // Sign
  SNAXSignature signature = privateKey.signString(data);
  // Print the SNAX signature
  print(signature.toString());

  // Verify the data using the signature
  signature.verify(data, publicKey);
}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

References #

eosjs-ecc: https://github.com/EOSIO/eosjs-ecc

0
likes
30
points
7
downloads

Publisher

unverified uploader

Weekly Downloads

Elliptic curve cryptography functions in Dart. Private Key, Public Key, Signature, AES, Encryption, Decryption

Homepage

License

MIT (license)

Dependencies

bs58check, pointycastle

More

Packages that depend on snaxdart_ecc