Skip to content

Commit

Permalink
refurbish spend hash calc
Browse files Browse the repository at this point in the history
  • Loading branch information
abenso committed Nov 13, 2024
1 parent 5ba6845 commit 273ce6d
Show file tree
Hide file tree
Showing 18 changed files with 257 additions and 536 deletions.
2 changes: 1 addition & 1 deletion app/rust/include/rslib.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ parser_error_t rs_compute_effect_hash();

parser_error_t rs_compute_transaction_plan(transaction_plan_t *plan, uint8_t *output, size_t output_len);

parser_error_t rs_spend_action_hash(Bytes_t *sk, spend_plan_t *plan, uint8_t *output, size_t output_len);
parser_error_t rs_spend_action_hash(spend_key_bytes_t *sk, spend_plan_t *plan, uint8_t *output, size_t output_len);

int32_t rs_bech32_encode(const uint8_t *hrp_ptr, size_t hrp_len, const uint8_t *data_ptr, size_t data_len,
uint8_t *output_ptr, size_t output_len);
Expand Down
8 changes: 0 additions & 8 deletions app/rust/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,34 +20,26 @@ use core::mem::MaybeUninit;
// actions:
// https://rustdoc.penumbra.zone/main/penumbra_transaction/plan/enum.ActionPlan.html
mod address;
mod amount;
mod asset_id;
mod clue_plan;
mod curve_fields;
mod error;
mod fee;
mod note;
mod object_list;
mod plans;
mod position;
mod precision;
mod tx_parameters;
mod value;
mod bytes;
mod balance;

pub use address::Address;
pub use amount::Amount;
pub use asset_id::AssetId;
pub use clue_plan::CluePlan;
pub use curve_fields::{Fq, Fr};
pub use error::ParserError;
pub use fee::Fee;
pub use object_list::ObjectList;
pub use position::{Position, Tree};
pub use precision::Precision;
pub use tx_parameters::TransactionParameters;
pub use value::Value;

#[derive(Clone, Copy, PartialEq, Eq)]
#[cfg_attr(test, derive(Debug))]
Expand Down
80 changes: 0 additions & 80 deletions app/rust/src/parser/amount.rs

This file was deleted.

23 changes: 0 additions & 23 deletions app/rust/src/parser/balance.rs

This file was deleted.

57 changes: 0 additions & 57 deletions app/rust/src/parser/fee.rs

This file was deleted.

Loading

0 comments on commit 273ce6d

Please sign in to comment.