eosdart_ecc 0.3.0 copy "eosdart_ecc: ^0.3.0" to clipboard
eosdart_ecc: ^0.3.0 copied to clipboard

outdated

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:eosdart_ecc/eosdart_ecc.dart';

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

  // Get the related EOS public key
  EOSPublicKey publicKey = privateKey.toEOSPublicKey();
  // Print the EOS public key
  print(publicKey.toString());

  // Going to sign the data
  String data = 'data';
  
  // Sign
  EOSSignature signature = privateKey.sign(data);
  // Print the EOS 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

8
likes
0
pub points
66%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

bs58check, pointycastle

More

Packages that depend on eosdart_ecc