crypto: Export public inputs functions for mint and burn proofs.

This commit is contained in:
parazyd
2022-01-25 18:50:35 +01:00
parent df89e31bcd
commit 7bf9f43986
2 changed files with 4 additions and 4 deletions

View File

@@ -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();

View File

@@ -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;