Coder Social home page Coder Social logo

onft's Introduction

Crates.io Docs

Bespoke toolkit for Non-fungible token (NFT) technology ๐Ÿš€

What is Onft?

Instead of forcing a consensus algorithm or peer networking on you, Onft provides you with the tools to create a reliable and fast NFT system ๐Ÿ‘

This allows you to focus on implementing the important stuff, as well as getting benefits such as automatic improvements and updates over this project's lifecycle, whilst still being fully standardized.

Example

use onft::Chain;

// create
let mut chain = Chain::default();
println!("Chain: {:?}", chain);

// add block
chain.push_data("Hello, world!").unwrap();
println!("Chain: {:?}", chain);

// verify
if let Ok(true) = chain.verify() {
    println!("Verified")
} else {
    eprintln!("Not verified")
}

Check the useful examples/ directory or the item-level documentation for more examples! ๐Ÿ˜Š

Usage

Simply add the following to your Cargo.toml file:

[dependencies]
onft = "0.1.0-beta.2"

Licensing

This project is dual-licensed under both the MIT and Apache licenses, so feel free to use either at your discretion.

onft's People

Contributors

owez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

onft's Issues

Document serde support

Should be documented in the README.md as well as library-level documentation. A note should also be mentioned on blocks or chains about how the PROTO_VERSION byte will be attached

Move from RSA to ED25519

Due to the power of OpenSSL, hashes can be swapped out quite easily and should be done in the case of RSA vs ED25519 for message signatures primarily due to the length of a message signature.

To be future-proof levels of secure, RSA4096 should be used but this would create very large message signatures comparatively. The fix is simply to move to ED25519 signatures which have comparative security for less data cost due to the smaller size.

This will be done before the first 0.1.0 release and even before the 0.1.0-beta.1 one.

Don't hash data directly

The hash should be calculated from a hash of the data, so the full data does not need to be sent to verify a block, only:

  • Previous hash
  • Signature
  • Data hash (used to be data)

First logo

A logo for the 0.1.0 release should be added to docs.rs and the readme to show some branding, the logo has already been made:

onft
onft-backup

Include byte conversion via serde

After the initial 0.1.0-beta.1 release but before the full 0.1.0 there should be a serde feature implemented allowing serialisation. This will also include a new serialized-only byte indicating the version, probably as 4 bits major, 4 bits minor which correspond to the crate version.

Switch SHA256 to BLAKE3 hash

Switching means greater speeds at the cost of having another library other then OpenSSL. At the time of issue opening, it was thought that switching OpenSSL to another library was needed, which is not the case.

More testing

Testing is a bit lax currently and could do with an overhaul

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.