VizTower / viz_dart_ecc

A cryptography library for simply data encoding and decoding using VIZ blockchain's ECC cryptography algorithms.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elliptic curve cryptography (ECC) in Dart Pub

Build Status

[DOC | issue tracker]

viz_dart_ecc is cryptography library for simply data encoding and decoding using VIZ blockchain's ECC cryptography algorithms.

Code for viz_dart_ecc was forked from eosdart_ecc but most of it was rewritten for VIZ blockchain.

Usage

A simple usage example:

import 'package:viz_dart_ecc/viz_dart_ecc.dart';

void main() {
  VIZPrivateKey privateKey = VIZPrivateKey.fromString(
      '5J2XSYiA62K5s9vLsXXpj9CdoGmWUnohEWnVmg8aJb8D2TYvpbW');

  VIZPublicKey publicKey = privateKey.toPublicKey();
  VIZSignature signature = privateKey.signString('data');

  print('Pub key: ' + publicKey.toString());
  print('Signatured data: ' + signature.toString());
}

Features and bugs

Please file feature requests and bugs at the issue tracker

About

A cryptography library for simply data encoding and decoding using VIZ blockchain's ECC cryptography algorithms.

License:MIT License


Languages

Language:Dart 100.0%