3 releases
0.1.1-alpha.2 | Jun 18, 2021 |
---|---|
0.1.1-alpha.1 | Jun 3, 2021 |
0.1.1-alpha.0 | Jun 2, 2021 |
#4 in #nem
55KB
496 lines
Symbol & Nis1 Crypto Rust library.
symbol-crypto-core
Fast and efficient Rust implementation of Symbol & Nis1 Blockchain crypto.
Installation
To install, add the following to your project's Cargo.toml
:
default sym support
[dependencies.symbol-crypto-core]
version = "0.1.1-alpha.2"
for nis1 support
[dependencies.symbol-crypto-core]
version = "0.1.1-alpha.2"
features = ['nis1']
for mnemonic support
[dependencies.symbol-crypto-core]
version = "0.1.1-alpha.2"
features = ['with_mnemonic']
License
Licensed under the Apache License 2.0
lib.rs
:
Complete Symbol & Nis1 blockchain crypto library implementation.
Quickstart: prelude
A prelude is provided which imports all the important data types and traits for you. Use this when you want to quickly bootstrap a new project.
use symbol_crypto_core::prelude::*;
Examples on how you can use the types imported by the prelude can be found in
the examples
directory of the repository
and in the tests/
directories of each crate.
Quick explanation of each module in ascending order of abstraction
core
Contains all the [necessary data structures] what Symbol & Nis1 have in common.
crypto-sym
Symbol Bockchain crypto library, along with cryptographic utilities for signing and verifying Edwards Digital Signature Algorithm (EdDSA) over Curve25519.
crypto-nis1
Nis1 Bockchain crypto library, along with cryptographic utilities for signing and verifying Edwards Digital Signature Algorithm (EdDSA) over Curve25519.
Dependencies
~6.5–8.5MB
~141K SLoC