228 Repositories
Rust biscuit-cryptography-example Libraries
The example anchor implementation for solana-swap
anchor-liquidity-pool This is the example anchor implementation for solana-swap. The curve is always ConstantProduct in this implementation. The fee r
Infer a JSON schema from example data, produce nonsense synthetic data (drivel) according to the schema
drivel drivel is a command-line tool written in Rust for inferring a schema from an example JSON (or JSON lines) file, and generating synthetic data (
Example of CVE-2024-24576 use case.
CVE-2024-24576 PoC The Command::arg and Command::args APIs state in their documentation that the arguments will be passed to the spawned process as-is
example codes for CIS198 https://cis198-2016s.github.io/
CIS198: RUST 编程语言 学习背景 rust 和 c/c++/Java/Python/golang 不太一样 rust 学习曲线比较陡峭 rust 有很多颠覆认知的特性: 所有权,生命周期,借用检测 cargo 工具 函数式+命令式支持 视频讲解见 B站 课程大纲 Timeline Lec
Example of reading the BME280 sensor on an ESP32-C3 using Rust
Rust ESP32-C3 BME280 Example of reading the BME280 sensor on an ESP32-C3 using Rust Hardware: ESP32-C3 microcontroller BME280 sensor Breadboard Jump w
A collection of example project using Njord.
Example Projects A collection of example project using Njord. Contributors The following contributors have either helped to start this project, have c
Mine Bitcoin Addresses ⛏️🅰️🅱️🅾️
Bitcoin Address Miner Mine Bitcoin Addresses ⛏️ 🅰️ 🅱️ 🅾️ Overview The Bitcoin Address Miner is a utility written in Rust that generates random BIP-
A boringssl-based rustls crypto provider
boring-rustls-provider This is supposed to be the start to a boringssl-based rustls crypto provider. Status This is just a dump of me figuring out how
Flexible secp256k1 curve math library.
secp A flexible and secure secp256k1 elliptic curve math library, with constant-time support, and superb ergonomics. secp takes full advantage of Rust
An asset for HardHat C2 written in Rust as an example/demo
Rivet An asset for HardHat C2 written in Rust as an example/demo Installation and Use Download cargo for the operating system the team server will be
Lockbox is a command-line tool for generating and managing passwords
Lockbox is a command-line tool for generating and managing passwords. It uses strong encryption algorithms to securely store your passwords, so you can be sure that your data is safe.
A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face.
candle-simplified-example A simplified example in Rust of training a neural network and then using it based on the Candle Framework by Hugging Face. H
A working, tested example for how to use Rust with warp and JWT
rust-jwt-example Example of JWT authentication and authorization in Rust using Warp Login curl http://localhost:8000/login -d '{"email": "user@userlan
A networked (p2p), cross-platform physics simulation example using rollback netcode
bevy_gaff (work in progress) bevy_gaff is an attempt at making a networked (p2p), cross-platform physics simulation using rollback netcode. It synchro
TinyTodo is a Cedar Agent example, with a server in Rust and client in python
TinyTodo - OPAL and Cedar Agent Demo TinyTodo is a simple application for managing task lists. It uses OPAL and Cedar Agent to control who has access
Example implementation of a 3d hexagon tile-based map editor using bevy
bevy-hex-sandbox Example implementation of a 3d hexagon tile-based map editor using bevy v0.10. smol.mov This is not a maintained project. Instead, th
Example app & project structure for Golem Cloud
Synopsis This project serves as an example/template for building an application using WebAssembly Component Model (and in this case, an app for Ziverg
Harness the power of signify(1) to sign arbitrary git objects
git-signify A tool to sign arbitrary objects in a git repository. Generating keys Signing keys can be generated with signify, from the OpenBSD project
CYFS:Next Generation Protocol Family to Build Web3
CYFS is the next-generation technology to build real Web3 by upgrading the basic protocol of Web (TCP/IP+DNS+HTTP). It has a subversive architectural design that everyone brings their own OOD (Owner Online Device) to form a truly decentralized network.
Wordle, but with ZK proofs!
Zordle: ZK Wordle Zordle is Wordle, but with zero-knowledge proofs. Zordle uses ZK proofs to prove that a player knows words that map to their shared
An example CosmWasm contract for connecting contracts over IBC.
CosmWasm IBC Example This is a simple IBC enabled CosmWasm smart contract. It expects to be deployed on two chains and, when prompted, will send messa
`dfx new --type=rust` + burn-rs MNIST web inference example
ic-mnist The frontend provides a canvas where users can draw a digit. The drawn digit is then sent to the backend canister running burn-rs for inferen
This is an example Nostr rust project to enable '402 Payment Required' responses for requests to paid content.
Nostr Paywall Example This is an example Nostr rust project to enable 402 Payment Required responses for requests to paid content. To prove payment, a
CosmWasm-Examples is a collection of example contracts and applications built using the CosmWasm framework
CosmWasm-Examples is a collection of example contracts and applications built using the CosmWasm framework. CosmWasm is a secure and efficient smart contract platform designed specifically for the Cosmos ecosystem.
gRPC client/server for zero-knowledge proof authentication Chaum Pederson Zero-Knowledge Proof in Rust
gRPC client/server for zero-knowledge proof authentication Chaum Pederson Zero-Knowledge Proof in Rust. Chaum Pederson is a zero-knowledge proof proto
Ethereum key tool - Lightweight CLI tool to deal with ETH keys written in rust
ekt - Etherum Key Tool ekt is a lightweight tool to generate ethereum keys and addresses. Installation Either clone it and run it with cargo or instal
DKG using BLS12-381
DKG This library is an implementation of the distributed key generator required for blind DKG. Overview dkg-core: supports both std and no-std. When b
A simple self-contained CLI tool that makes it easy to efficiently encrypt/decrypt your files.
cryptic A simple self-contained CLI tool that makes it easy to efficiently encrypt/decrypt your files. Contents Features Building Usage License Featur
Arkworks circuits for verifiable time-lock encryption
zk-timelock This repo contains arithmetic circuits for verifiable time-lock encryption made using arkworks-rs toolkit. For more details on such an enc
The Zenotta Network Protocol (ZNP), the network that supports the Zenotta blockchain
Zenotta Network Protocol A repo for the development of the Zenotta Network Protocol (ZNP). We will regularly be updating links and easter eggs inside
Rust encryption library for practical time-lock encryption.
tlock_age: Hybrid Timelock Encryption/Decryption in Rust tlock_age is a library to encrypt and decrypt age filekey using tlock scheme. It provides an
Little example projects for learning Rust and building awesome cli tools! ⭐️
rust-cli-examples Examples of clean and well-tested command line utilities, written in Rust. 🦀 👍 What is this repo? This repo is a collection of man
Rosenpass is a formally verified, post-quantum secure VPN that uses WireGuard to transport the actual data.
Rosenpass README This repository contains A description of the Rosenpass protocol The reference implementation of the protocol – the rosenpass tool A
Elliptic curve cryptography on Soroban.
Elliptic Curve Cryptography on Soroban Contract examples and reusable primitives. Groth 16 verifier. This crate provides a SorobanGroth16Verifier obje
Zero Knowledge Light Client Implementation by Zpoken team.
zkp for chain state Prerecusites This project requires using the nightly Rust toolchain, which can be used by default in this way: rustup default nigh
Example (with solution) for the Rust Fundamentals Workshop
Workshop Repo: Rust Fundamentals NOTE: This is Work-In-Progress! Please check for updates a day before the workshop. This Github repository contains a
A simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit frontend.
Rust-auth-example This repository aims to represent a simple authentication flow using Rust and Actix-web, with a PostgreSQL database and a sveltekit
Rust library for practical time-lock encryption using `drand` threshold network
tlock-rs: Practical Timelock Encryption/Decryption in Rust This repo contains pure Rust implementation of drand/tlock scheme. It provides time-based e
DNS Server written in Rust for fun, see https://dev.to/xfbs/writing-a-dns-server-in-rust-1gpn
DNS Fun Ever wondered how you can write a DNS server in Rust? No? Well, too bad, I'm telling you anyways. But don't worry, this is going to be a fun o
CosmWasm + zkVM RISC-V EFI template
cosmwasm-risc0-example CosmWasm + RISC-V zkVM gm example Overview CosmWasm RISC Zero This example exists to explore the patterns of use of CosmWasm an
Simple to use CLI tool that makes encryption easy! Written in Rust.
🔒 eme: Encryption Made Easy an extremely simple AES-256 encryption tool written in Rust Usage: # To encrypt: eme --encrypt secret.png # To decrypt: e
Example NFT marketplace project using ink! smart contract.
NFT Marketplace project This contract is an example for the NFT marketplace implementation. License Apache 2.0 🏗️ How to use - Contracts 💫 Build Use
Example of an dark-mode toggle button based on progressive enhancement
Leptos Starter Template This is a template for use with the Leptos web framework and the cargo-leptos tool. Creating your template repo If you don't h
An example of a common Wi-Fi set up scenario on ESP32 using Rust
UTC IoT fetcher This repo is an example of how to configure a Wi-Fi client on an ESP32-based IoT device using an external device connection to the int
iOS app example - AI Selfies Generator like Lensa: Stable Diffusion In Action
Magic Avatars In this repository, we look at several approaches to creating avatars, changing backgrounds, and deep image processing for more detailed
A simple example showcasing how to use Bevy to display a square with acceleration (controllable with your keyboard) that wraps around the screen!
Bevy Wrapping Square example A simple example showcasing how to use Bevy to display a square with acceleration (controllable with your keyboard) that
A down-to-the-metal ongoing cryptography challenge designed by Radical Semiconductor.
woodpecker 🪶 [NOTE: scoreboard will now be updated weekends, starting the weekend of 12/10/2022--sorry for delays! I'll also be merging in pull reque
A Domain Driven Design example application in Rust.
Rust Domain Driven Design Example rust-ddd Rust Domain-Driven-Design (DDD) Summery This repository is used to present how I find implementing DDD in R
Small example using Slint on the MXCHIP IoT DevKit (AZ3166)
Small example using Slint on the MXCHIP IoT DevKit (AZ3166) To Build and run: You need: The hardware: an MXCHIP IoT DevKit https://en.mxchip.com/az316
An example re-entrancy attack on a flashloan vault.
CosmWasm re-entrancy Exploit Example The exploit example is located in contracts/liquidity_hub/vault-network/exploit_contract. A vault in contracts/li
Tauri and Leptos example.
tauri-leptos-example Tauri Leptos Requires Rust Nightly. See Leptos nightly Note. # Install Tauri CLI cargo install tauri-cli # Build and develop for
Simple example of axum, sqlx with sqlite and utoipa (swagger) - without auth
axum_crud_api Simple example to learn creating CRUD rest apis in Rust with axum, sqlx with sqlite and utoipa (swagger) - without auth Also shows how t
Example Blog using Rust, Actix Web, HTMX, Mustache
Actix Blog An example blog built with Actix. It uses htmx and handlebar templates. Running To run the blog, you need to have a recent version of Rust
A general solution for commonly used crypt in rust, collection of cryptography-related traits and algorithms.
Crypto-rs A general solution for commonly used crypt in rust, collection of cryptography-related traits and algorithms. This is a Rust implementation
Lockstitch is an incremental, stateful cryptographic primitive for symmetric-key cryptographic operations in complex protocols.
Lockstitch is an incremental, stateful cryptographic primitive for symmetric-key cryptographic operations (e.g. hashing, encryption, message authentication codes, and authenticated encryption) in complex protocols.
An example app in Rust for CircleCI's Dynamic Config demo
circleci-dynamic-config-example An example app in Rust for CircleCI's dynamic config demo. Dynamic config allows you to dynamically generate CircleCI'
A barebones example of how to integrate OpenXR with wgpu (Vulkan-only)
wgpu-openxr-example a barebones example of how to integrate OpenXR with wgpu (Vulkan-only) It has four modes: cargo run --no-default-features: desktop
An example of how to use Workers KV with workers-rs
rusty-kv-example An example project of how to use Workers KV with workers-rs. Usage With wrangler, you can build, test, and deploy your Worker with th
MD5/SHA256 HASH ATTACK IN RUST
hashraccoon Installation Install cargo curl https://sh.rustup.rs -sSf | sh Install the hashraccoon crate cargo install hashraccoon Download the rockyo
A simple example demonstrating cross-contract calls in CosmWasm smart contracts
Cross-contract calls This tutorial demonstrates cross-contract calls with CosmWasm v1. Overview An end user calls the reservation contract to register
A complete imgui-rs example using dependencies only from crates.io.
Dear imgui-rs, hello. This is a fairly basic, but complete and standalone example application for the Rust version of dear imgui (https://github.com/o
Example showing how to use tokio and egui together.
Example using tokio with egui This example uses reqwest to send an HTTP request to httpbin. The parsed response contains an increment value (as provid
An ECDSA threshold signature algorithm implemented in Rust.
Open TSS This project is a Rust implementation of multi-party {t,n}-threshold signature scheme(TSS). The current version of this library supports ECDS
Vite + Webassembly starter project
Vite + Typescript+ Webassembly A starter project for you to create a blazingly fast web application Before getting started You need to get these prere
Example to run Rust code on the MCH2022 badge.
Rust on the MCH2022 badge This repo contains instructions and code to run Rust on the MCH2022 badge. There are two approaches regarding environment: I
Authenticate a tarball through a signed tag in a git repository (with reproducible builds)
auth-tarball-from-git Authenticate a tarball through a signed tag in a git repository (with reproducible builds). The signed git tag contains a hash o
Steggy CLI Tool - hides data within the least significant bit of an image
Written in Rust, features a simple cli and a client-side webapp. This tool hides data within the least significant bit of an image. Obfuscation techniques are utilized to make the
Usable, easy and safe pure-Rust crypto
orion About Orion is a cryptography library written in pure Rust. It aims to provide easy and usable crypto while trying to minimize the use of unsafe
A modern TLS library in Rust
Rustls is a modern TLS library written in Rust. It uses ring for cryptography and libwebpki for certificate verification. Status Rustls is ready for u
RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture.
RISC Zero WARNING: This software is still experimental, we do not recommend it for production use (see Security section). RISC Zero is a zero-knowledg
User-friendly secure computation engine based on secure multi-party computation
CipherCore If you have any questions, or, more generally, would like to discuss CipherCore, please join the Slack community. See a vastly extended ver
🦀 Small Tauri SolidJS Example feat. Vite
Tauri Solid Example (2022) Simple Solid(vite) starter running with Tauri. Should hopefully save some time trying to setup Tauri and Solid. Currently c
Generates a unique hash/identifier for a system given a set of parameters.
uniqueid 🔍 Generates a unique hash/identifier for a system given a set of parameters. Example usage use uniqueid; pub fn main() { let data = vec
2d collision test for game-development in rust (with optional integration and example for bevy)
impacted 2d collision test for game-development in rust (with optional integration and example for bevy) This provides a low-level "narrow-phase" coll
🎮 A Realtime Multiplayer Server/Client Game example built entirely with Rust 🦀
Example of a 🎮 Realtime Multiplayer Web Game Server/Client built entirely using Rust 🦀
A blazingly fast, ShareX uploader coded in Rust (using actix web) which utilizes AES-256-GCM-SIV to securely store uploaded content.
Magnesium Oxide ❔ What is this? Magnesium-Oxide (MGO) is a secure file uploader with support for ShareX. 🌠 Features 🔥 Blazingly fast uploads and enc
An example bdk + yew single page web wallet
bdk-yew-example This project builds a simple bdk-wasm based testnet wallet as a single page web app. The page can be hosted locally or automatically d
A simple, modern fuzzy finder tool to run examples in a Cargo project.
cargo-rx cargo-rx is a simple, modern Runner for Examples in a Cargo project. This crate provides a single executable: rx. Basically anywhere you woul
Example for Rust Android Native Development
Android console application example project based on rust & cargo-xdk
ARM TrustZone-M example application in Rust, both secure world side and non-secure world side
ARM TrustZone-M example application in Rust, both secure world side and non-secure world side; projects are modified from generated result of cortex-m-quickstart.
Rust and TypeScript example code for finding all members from a collection id.
get-collection-rs Use the Crawler cargo build --release ./target/release/get-collection rpc_node collection_id Example: ./target/release/get-col
An example Kibana plugin written in Rust and Typescript
An example Kibana plugin written in Rust and Typescript
Example of a SC coded in RUST that can safely perform any swaps of tokens (NFT, SFT, ESDT, MetaESDT)
Elrond-NFT-Trading Example of a Smart Contract (SC) coded in RUST, that can perform any swaps of tokens (NFT, SFT, ESDT, MetaESDT) The idea P2P swaps
How to be a full stack Rust Developer
How to be a full stack Rust Developer Read Rust API guideline. Test code here and refer to the Rust blog posts at Steadylearner. If you need or know s
Lumiere is a proof-of-concept/example video player built with the Slint UI framework and libmpv
Lumiere is a proof-of-concept/example video player built with the Slint UI framework and libmpv. This was built quickly to try out Slint and it's new OpenGL underlay feature.
A shared document application akin to Google Docs. Example usage of wasm-peers library.
Live Document Proof of concept application showcasing the usability of wasm-peers crate for easy and costless peer-2-peer WebRTC communication. It's a
WasmEdge Host Function Example Interface
A Rust library that provides Rust to WebAssembly developers with syntax for running self-defined host functions when their Wasm is being executed on WasmEdge (formerly SSVM).
Example of using nom parsers from a proc macro
Example of using nom parsers from a proc macro This project is organised as 3 crates: nom_macro is the main project, exposing the proc macro and the g
A toy example showing how to run Rust code in Python for speed and progress.
PoC: Integrating Rust in Python A toy example showing how to run Rust code in Python for speed and progress. Requirements Python 3.6+ Rust 1.44+ Cargo
Very experimental Python bindings for the Rust biscuit-auth library
Overview This is a very experimental take on Python bindings for the biscuit_auth Rust library. It is very much a work in progress (limited testing, m
Example of a block root with a Verkle state root
Example of a block root with a Verkle state root Block content This is a standard RLP block containing 3 transactions, and an added VerkleProof field
A example bevy application using bevy-kajiya for its renderer
☀️ bevy-kajiya playground A example bevy application using bevy-kajiya for its renderer NOTE: only tested on Windows. For more context, check out the
Featured Dioxus projects on how to build clean user interfaces in Rust
Example projects with Dioxus This repository holds the code for a variety of example projects built with Dioxus. Each project has information on how t
The point of this anchor project is to serve as a starter kit or example to compose with mango-v3 using anchor.
The point of this anchor project is to serve as a starter kit or example to compose with mango-v3 using anchor. It currently provides 2 examples and various inline todos on how to extend this.
Quick demo of a REST frontend with a Redis session store.
axum-rest-starter-example Important Tasks Ensure session UUID is unique Protect /api/ with JWT Add CSRF CORS? Dev Setup (1) Run docker compose up to f
Example worker for ethereum-based applications
Ethsig-rs Example worker for ethereum-based applications. Features: Verify arbitrary messages and their signature from an Ethereum Address Verify EIP-
Extreme Bevy is what you end up with by following my tutorial series on how to make a low-latency p2p web game.
Extreme Bevy Extreme Bevy is what you end up with by following my tutorial series on how to make a low-latency p2p web game. There game can be played
Rustcoin - A LightWeight SDK For Bitcoin, Ethernum
Rustcoin - A LightWeight SDK For Bitcoin, Ethernum
Web Server made with Rust - for learning purposes
Web Server made with Rust - for learning purposes
Rust NACL Wrapper API
Rust NACL Wrapper API NaCl (pronounced "salt") is a new easy-to-use high-speed software library for network communication, encryption, decryption, sig