xpx_crypto 0.0.2+2

Dart native js
Flutter Android iOS web

Official ProximaX Sirius Blockchain implementation ed26619 encryption modules for Dart.

example/xpx_crypto_example.dart

import 'dart:convert';
import 'dart:typed_data';
import 'package:xpx_crypto/xpx_crypto.dart';
import 'package:convert/convert.dart';

void main() {
  /// New KeyPair from PrivateKey Hex String
  const String skHex =
      '68f50e10e5b8be2b7e9ddb687a667d6e94dd55fe02b4aed8195f51f9a242558b';
  final KeyPair kp = new KeyPair.fromHexString(skHex);

  print('privateKey: \"${kp.privateKey}\"\n');
  print('publicKey: \"${kp.publicKey}\"\n');

  final Uint8List payload = utf8.encode('ProximaX Limited');

  final sing = kp.sign(payload);
  print('Signature: \"${hex.encode(sing).toUpperCase()}\"\n');

  final bool result = kp.verify(payload, sing);
  print('Verify: \"$result\"');
}
0
likes
80
pub points
47%
popularity

Official ProximaX Sirius Blockchain implementation ed26619 encryption modules for Dart.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploaders

eleazartovar123@gmail.com
proximax.devops@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

convert, fixnum, pointycastle

More

Packages that depend on xpx_crypto