curve25519_vrf

Creator: coderz1093

Last updated:

0 purchases

curve25519_vrf Image
curve25519_vrf Images

Languages

Categories

Add to Cart

Description:

curve25519 vrf

Curve25519 Dart #
A native Dart Library for Curve25519 suite, including x25519 key pairs, shared secrets, x25519 signatures and the XVEdDSA VRF signature algorithm.
Installing #
import 'curve25519_vrf/curve25519_vrf.dart';
copied to clipboard
The package requires the following dependencies:
dependencies:
curve25519_vrf: ^1.0.0
pointycastle:
collection:
copied to clipboard
Usage #
Below is the syntax for using the Curve25519 Package.
Messages
All messages must be given in the form of Uint8List.
var message = "message".codeUnits;
copied to clipboard
Key Pairs
All KeyPairs are stored in the KeyPair object.
var keyPair = Curve25519().newKeyPair();

var publicKey = keyPair.publicKey;
var privateKey = keyPair.privateKey;

var publicKeyBytes = publicKey.bytes;
var privateKeyBytes = privateKey.bytes;
copied to clipboard
Signing
var signatureStandard = Curve25519().sign(keyPair, message, SignatureType.STANDARD);
var signatureVRF = Curve25519().sign(keyPair, message, SignatureType.VRF);
copied to clipboard
Verifying
Standard verification returns Boolean.
VRF verification returns false if failure or VRF output byte array if valid.
var isValid = signature.isValid(message);
copied to clipboard
License #
Licensed under the FreeBSD License: https://opensource.org/licenses/bsd-license.php

License

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

Files In This Product:

Customer Reviews

There are no reviews.