Rename monero-sign to monero-serai

This commit is contained in:
Luke Parker 2022-04-27 22:48:58 -04:00
parent c9537a08a1
commit a37a21f891
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
4 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
[package]
name = "monero-sign"
name = "monero-serai"
version = "0.1.0"
description = "Implementation of Monero transaction signing in Rust"
license = "MIT"

View file

@ -2,7 +2,7 @@ use rand::{RngCore, rngs::OsRng};
use curve25519_dalek::{constants::ED25519_BASEPOINT_TABLE, scalar::Scalar};
use monero_sign::{SignError, random_scalar, commitment, key_image, clsag};
use monero_serai::{SignError, random_scalar, commitment, key_image, clsag};
#[cfg(feature = "multisig")]
use ::frost::sign;
@ -31,7 +31,7 @@ fn test_single() -> Result<(), SignError> {
let dest = random_scalar(&mut OsRng);
let a = random_scalar(&mut OsRng);
let amount;
if i == RING_INDEX.into() {
if i == u64::from(RING_INDEX) {
secrets = [dest, a];
amount = AMOUNT;
} else {
@ -87,7 +87,7 @@ fn test_multisig() -> Result<(), SignError> {
let dest;
let a;
let amount;
if i != RING_INDEX.into() {
if i != u64::from(RING_INDEX) {
dest = random_scalar(&mut OsRng);
a = random_scalar(&mut OsRng);
amount = OsRng.next_u64();

View file

@ -13,7 +13,7 @@ use frost::{
sign::lagrange
};
use monero_sign::frost::Ed25519;
use monero_serai::frost::Ed25519;
pub fn generate_keys(t: usize, n: usize) -> (Vec<Rc<MultisigKeys<Ed25519>>>, Scalar) {
let mut params = vec![];

View file

@ -2,7 +2,7 @@
use rand::rngs::OsRng;
use monero_sign::{SignError, key_image};
use monero_serai::{SignError, key_image};
mod frost;
use crate::frost::generate_keys;