Skip to content

Commit

Permalink
Revert "Attaching commitment to decrypted memo"
Browse files Browse the repository at this point in the history
This reverts commit 33c22d8.
  • Loading branch information
EvgenKor committed May 27, 2024
1 parent 33c22d8 commit 2100579
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions libzkbob-rs-wasm/src/client/tx_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ pub struct StateUpdate {
#[derive(Serialize, Deserialize, Clone, Default, Debug)]
pub struct DecMemo {
pub index: u64,
pub commitment: Option<Hash<Fr>>,
pub acc: Option<NativeAccount<Fr>>,
#[serde(rename = "inNotes")]
pub in_notes: Vec<IndexedNote>,
Expand Down Expand Up @@ -302,7 +301,6 @@ pub fn parse_tx(
ParseResult {
decrypted_memos: vec![DecMemo {
index,
commitment: Some(Num::from_uint_reduced(NumRepr(Uint::from_big_endian(&commitment)))),
in_notes: in_notes_indexed,
tx_hash: match tx_hash {
Some(bytes) => Some(format!("0x{}", hex::encode(bytes))),
Expand Down Expand Up @@ -356,7 +354,6 @@ pub fn parse_tx(
Ok(ParseResult {
decrypted_memos: vec![DecMemo {
index,
commitment: Some(Num::from_uint_reduced(NumRepr(Uint::from_big_endian(&commitment)))),
acc: Some(account),
in_notes: in_notes
.iter()
Expand Down Expand Up @@ -402,7 +399,6 @@ pub fn parse_tx(
Ok(ParseResult {
decrypted_memos: vec![DecMemo {
index,
commitment: Some(Num::from_uint_reduced(NumRepr(Uint::from_big_endian(&commitment)))),
in_notes: in_notes
.iter()
.map(|(index, note)| IndexedNote {
Expand Down

0 comments on commit 2100579

Please sign in to comment.