Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/primes-network/eosdart_ecc
Elliptic curve cryptography functions in Dart. Private Key, Public Key, Signature, AES, Encryption, Decryption
https://github.com/primes-network/eosdart_ecc
cryptography dart encryption eos eosio private-key public-key signature
Last synced: about 13 hours ago
JSON representation
Elliptic curve cryptography functions in Dart. Private Key, Public Key, Signature, AES, Encryption, Decryption
- Host: GitHub
- URL: https://github.com/primes-network/eosdart_ecc
- Owner: primes-network
- License: mit
- Created: 2019-03-04T04:37:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-15T17:32:06.000Z (over 3 years ago)
- Last Synced: 2024-06-20T00:29:30.525Z (5 months ago)
- Topics: cryptography, dart, encryption, eos, eosio, private-key, public-key, signature
- Language: Dart
- Size: 46.9 KB
- Stars: 27
- Watchers: 4
- Forks: 24
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Elliptic curve cryptography (ECC) in Dart
Elliptic curve cryptography lib for EOS based blockchain in Dart lang.
[![Build Status](https://travis-ci.com/primes-network/eosdart_ecc.svg?branch=master)](https://travis-ci.com/primes-network/eosdart_ecc)
## Usage
A simple usage example:
```dart
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);
}
```## Features and bugs
Please file feature requests and bugs at the [issue tracker][tracker].
## References
eosjs-ecc: https://github.com/EOSIO/eosjs-ecc
[tracker]: https://github.com/primes-network/eosdart_ecc/issues