renamed the package

This commit is contained in:
Balazs Komuves 2026-01-22 21:18:41 +01:00
parent 9abeac984f
commit 2d8f9163cd
No known key found for this signature in database
GPG Key ID: F63B7AEF18435562
4 changed files with 15 additions and 13 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "rust-poseidon1"
version = "0.0.0"
name = "rust-poseidon-bn254-pure"
version = "0.0.1"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["Balazs Komuves"]

View File

@ -1,10 +1,11 @@
rust-poseidon-bn254-rv32im
--------------------------
rust-poseidon-bn254-pure
------------------------
Self-contained, pure Rust implementation of Poseidon and Poseidon2 hash functions
over the BN254 curve's scalar field, using 32 bit limbs internally.
Self-contained (no external dependencies), pure Rust implementation of Poseidon
and Poseidon2 hash functions over the BN254 curve's scalar field, using 32 bit
limbs internally.
It's intended to be used on 32-bit platforms eg. 32-bit RISC-V
It's intended to be used on 32-bit platforms, eg. 32-bit RISC-V (rv32im)
(though porting to 64 bits shouldn't be a big effort).
The algebra implementation is based on [`zikkurat-algebra`](https://github.com/faulhornlabs/zikkurat-algebra/)

View File

@ -1,4 +1,6 @@
-- some basic "sanity check"-type testing
{-# LANGUAGE PackageImports #-}
import Data.List

View File

@ -1,11 +1,10 @@
use rust_poseidon1::bn254::bigint::*;
use rust_poseidon1::bn254::constant::*;
use rust_poseidon1::bn254::montgomery::*;
use rust_poseidon1::bn254::field::*;
use rust_poseidon_bn254_pure::bn254::bigint::*;
use rust_poseidon_bn254_pure::bn254::constant::*;
use rust_poseidon_bn254_pure::bn254::montgomery::*;
use rust_poseidon_bn254_pure::bn254::field::*;
//use rust_poseidon1::poseidon2::constants::*;
use rust_poseidon1::poseidon2::permutation::*;
use rust_poseidon_bn254_pure::poseidon2::permutation::*;
//------------------------------------------------------------------------------