eosdart_ecc

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

eosdart ecc

Elliptic curve cryptography (ECC) in Dart #
Elliptic curve cryptography lib for EOS based blockchain in Dart lang.

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.signString(data);
// Print the EOS signature
print(signature.toString());

// Verify the data using the signature
signature.verify(data, publicKey);
}
copied to clipboard
Features and bugs #
Please file feature requests and bugs at the issue tracker.
References #
eosjs-ecc: https://github.com/EOSIO/eosjs-ecc

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.