-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(De)serialization of Transaction, PartialTransaction and Note (#183)
* add note serialization * add VPVerifyingInfo serialization * add ActionVerifyingInfo serialization * add tx and ptx serialization * add a tx (de)serialization test
- Loading branch information
1 parent
ffc416d
commit cce706e
Showing
12 changed files
with
358 additions
and
42 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
use crate::{ | ||
error::TransactionError, note::NoteCommitment, nullifier::Nullifier, | ||
value_commitment::ValueCommitment, | ||
}; | ||
use crate::{error::TransactionError, nullifier::Nullifier, value_commitment::ValueCommitment}; | ||
use pasta_curves::pallas; | ||
|
||
// Executable is an unified interface for partial transaction, which is the atomic executable uinit. | ||
pub trait Executable { | ||
fn execute(&self) -> Result<(), TransactionError>; | ||
fn get_nullifiers(&self) -> Vec<Nullifier>; | ||
fn get_output_cms(&self) -> Vec<NoteCommitment>; | ||
fn get_output_cms(&self) -> Vec<pallas::Base>; | ||
fn get_value_commitments(&self) -> Vec<ValueCommitment>; | ||
fn get_anchors(&self) -> Vec<pallas::Base>; | ||
} |
Oops, something went wrong.