Skip to content

Commit

Permalink
chore(deps): Upgrade dependency tasm-lib (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-ferdinand authored Jan 28, 2025
1 parent 3687558 commit 7167d4f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 25 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -231,5 +231,5 @@ harness = false
required-features = ["arbitrary-impls"]

[patch.crates-io]
# 04309be3 is tip of “better_snippet_export_pr” on 2025-01-17
tasm-lib = { git = "https://github.com/TritonVM/tasm-lib.git", rev = "04309be3" }
# 6975e5c8 is tip of “master” on 2025-01-25
tasm-lib = { git = "https://github.com/TritonVM/tasm-lib.git", rev = "6975e5c8" }
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,9 @@ impl ConsensusProgram for CollectTypeScripts {
let field_utxos = field!(SaltedUtxos::utxos);
let field_coin = field!(Utxo::coins);
let field_type_script_hash = field!(Coin::type_script_hash);
let contains = library.import(Box::new(Contains {
element_type: DataType::Digest,
}));
let new_list = library.import(Box::new(New {
element_type: DataType::Digest,
}));
let push_digest = library.import(Box::new(Push {
element_type: DataType::Digest,
}));
let contains = library.import(Box::new(Contains::new(DataType::Digest)));
let new_list = library.import(Box::new(New));
let push_digest = library.import(Box::new(Push::new(DataType::Digest)));
let hash_varlen = library.import(Box::new(HashVarlen));
let eq_digest = library.import(Box::new(EqDigest));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,8 @@ impl ConsensusProgram for KernelToOutputs {
fn library_and_code(&self) -> (Library, Vec<LabelledInstruction>) {
let mut library = Library::new();

let new_list = library.import(Box::new(list::new::New {
element_type: DataType::Digest,
}));
let get_digest = library.import(Box::new(list::get::Get {
element_type: DataType::Digest,
}));
let new_list = library.import(Box::new(list::new::New));
let get_digest = library.import(Box::new(list::get::Get::new(DataType::Digest)));
let compute_canonical_commitment =
library.import(Box::new(tasm_lib::neptune::mutator_set::commit::Commit));
let hash_varlen = library.import(Box::new(
Expand Down
10 changes: 5 additions & 5 deletions src/models/blockchain/type_scripts/native_currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ pub struct NativeCurrency;

impl NativeCurrency {
const TIME_LOCK_HASH: Digest = Digest([
BFieldElement::new(15856625234789400986),
BFieldElement::new(14860524825637478569),
BFieldElement::new(16088103707528769286),
BFieldElement::new(9034095039849919237),
BFieldElement::new(18168297044820278740),
BFieldElement::new(11493081001297792331),
BFieldElement::new(14845021226026139948),
BFieldElement::new(4809053857285865793),
BFieldElement::new(5280486431890426245),
BFieldElement::new(12484740501891840491),
]);
}

Expand Down

0 comments on commit 7167d4f

Please sign in to comment.