Skip to content

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

License

Notifications You must be signed in to change notification settings

anpigon/steemdart_ecc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Elliptic curve cryptography (ECC) in Dart

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

Build Status

Usage

A simple usage example:

import 'package:steemdart_ecc/steemdart_ecc.dart';

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

  // Get the related Steem public key
  SteemPublicKey publicKey = privateKey.toSteemPublicKey();
  // Print the Steem public key
  print(publicKey.toString());

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

  // Sign
  SteemSignature signature = privateKey.signString(data);
  // Print the Steem 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%