-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mc crypto ring signature no alloc improvements (#2297)
* move generator cache back to transaction core this is just code movement, no functional change * Create mc-account-keys-types, break dep alloc in mc-crypto-ring-signature This adds a trait for a subset of the functionality of `PublicAddress` to a trait called `RingCtAddress`. This is then used in `mc-crypto-ring-signature` which allows us to break the dependency of that crate on `mc-account-keys`. This is helpful because `mc-account-keys` depends on `alloc`, but we want `mc-crypto-ring-signature` not to depend on `alloc`. * cargo fmt * Update account-keys/types/src/traits.rs Co-authored-by: sugargoat <sugargoat@mobilecoin.com> Co-authored-by: sugargoat <sugargoat@mobilecoin.com>
- Loading branch information
Showing
19 changed files
with
104 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "mc-account-keys-types" | ||
version = "1.3.0-pre0" | ||
authors = ["MobileCoin"] | ||
edition = "2021" | ||
readme = "README.md" | ||
|
||
[dependencies] | ||
# MobileCoin dependencies | ||
mc-crypto-keys = { path = "../../crypto/keys", default-features = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Copyright (c) 2018-2022 The MobileCoin Foundation | ||
|
||
//! Traits and wrapper types connected to MobileCoin account keys. | ||
//! This crate is intended to have a small footprint and be maximally portable. | ||
|
||
#![no_std] | ||
#![deny(missing_docs)] | ||
#![deny(unsafe_code)] | ||
|
||
mod traits; | ||
|
||
pub use traits::RingCtAddress; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use mc_crypto_keys::RistrettoPublic; | ||
|
||
/// An object which represents a subaddress, and has RingCT-style | ||
/// view and spend public keys. | ||
pub trait RingCtAddress { | ||
/// Get the subaddress' view public key | ||
fn view_public_key(&self) -> &RistrettoPublic; | ||
/// Get the subaddress' spend public key | ||
fn spend_public_key(&self) -> &RistrettoPublic; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters