mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
crypto: Export public inputs functions for mint and burn proofs.
This commit is contained in:
@@ -32,7 +32,7 @@ pub struct MintRevealedValues {
|
||||
}
|
||||
|
||||
impl MintRevealedValues {
|
||||
fn compute(
|
||||
pub fn compute(
|
||||
value: u64,
|
||||
token_id: DrkTokenId,
|
||||
value_blind: DrkValueBlind,
|
||||
@@ -53,7 +53,7 @@ impl MintRevealedValues {
|
||||
MintRevealedValues { value_commit, token_commit, coin: Coin(coin) }
|
||||
}
|
||||
|
||||
fn make_outputs(&self) -> [pallas::Base; 5] {
|
||||
pub fn make_outputs(&self) -> [pallas::Base; 5] {
|
||||
let value_coords = self.value_commit.to_affine().coordinates().unwrap();
|
||||
let token_coords = self.token_commit.to_affine().coordinates().unwrap();
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ pub struct SpendRevealedValues {
|
||||
|
||||
impl SpendRevealedValues {
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
fn compute(
|
||||
pub fn compute(
|
||||
value: u64,
|
||||
token_id: DrkTokenId,
|
||||
value_blind: DrkValueBlind,
|
||||
@@ -89,7 +89,7 @@ impl SpendRevealedValues {
|
||||
}
|
||||
}
|
||||
|
||||
fn make_outputs(&self) -> [DrkCircuitField; 8] {
|
||||
pub fn make_outputs(&self) -> [DrkCircuitField; 8] {
|
||||
let value_coords = self.value_commit.to_affine().coordinates().unwrap();
|
||||
let token_coords = self.token_commit.to_affine().coordinates().unwrap();
|
||||
let merkle_root = self.merkle_root.0;
|
||||
|
||||
Reference in New Issue
Block a user