Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Commit

Permalink
deploy: 67c992d
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt committed Jul 7, 2023
1 parent eff531d commit c30f8b1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion mp_starknet/crypto/commitment/fn.calculate_event_hash.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Calculate the hash of an event."><title>calculate_event_hash in mp_starknet::crypto::commitment - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-e5308b57e507db71.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../../static.files/light-d59023bfa12059d2.css"><link rel="stylesheet" disabled href="../../../static.files/dark-1ca41bb1e10af075.css"><link rel="stylesheet" disabled href="../../../static.files/ayu-18b4181a2f3fb862.css"><script src="../../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../../../mp_starknet/index.html"><img class="rust-logo" src="../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../../mp_starknet/index.html"><img class="rust-logo" src="../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><div class="sidebar-elems"><h2><a href="index.html">In mp_starknet::crypto::commitment</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Function <a href="../../index.html">mp_starknet</a>::<wbr><a href="../index.html">crypto</a>::<wbr><a href="index.html">commitment</a>::<wbr><a class="fn" href="#">calculate_event_hash</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../../src/mp_starknet/crypto/commitment/mod.rs.html#365-375">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub fn calculate_event_hash&lt;T: <a class="trait" href="../../traits/hash/trait.HasherT.html" title="trait mp_starknet::traits::hash::HasherT">HasherT</a>&gt;(event: &amp;<a class="struct" href="../../transaction/types/struct.EventWrapper.html" title="struct mp_starknet::transaction::types::EventWrapper">EventWrapper</a>) -&gt; FieldElement</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Calculate the hash of an event.</p>
<p>See the <a href="https://docs.starknet.io/docs/Events/starknet-events#event-hash">documentation</a>
<p>See the <a href="https://docs.starknet.io/documentation/architecture_and_concepts/Events/starknet-events/#event_hash">documentation</a>
for details.</p>
</div></details></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="mp_starknet" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0-nightly (34e6673a0 2023-02-25)" data-search-js="search-14421e1532aead08.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>
2 changes: 1 addition & 1 deletion mp_starknet/crypto/commitment/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Compute the various commitments."><title>mp_starknet::crypto::commitment - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../static.files/rustdoc-e5308b57e507db71.css" id="mainThemeStyle"><link rel="stylesheet" id="themeStyle" href="../../../static.files/light-d59023bfa12059d2.css"><link rel="stylesheet" disabled href="../../../static.files/dark-1ca41bb1e10af075.css"><link rel="stylesheet" disabled href="../../../static.files/ayu-18b4181a2f3fb862.css"><script src="../../../static.files/storage-3891ce972e3a2bf8.js"></script><script defer src="../../../static.files/main-98a684e84ae5b08b.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="logo-container" href="../../../mp_starknet/index.html"><img class="rust-logo" src="../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../../../mp_starknet/index.html"><img class="rust-logo" src="../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">Module commitment</a></h2><div class="sidebar-elems"><section><ul class="block"><li><a href="#structs">Structs</a></li><li><a href="#functions">Functions</a></li><li><a href="#types">Type Definitions</a></li></ul></section></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Module <a href="../../index.html">mp_starknet</a>::<wbr><a href="../index.html">crypto</a>::<wbr><a class="mod" href="#">commitment</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../../src/mp_starknet/crypto/commitment/mod.rs.html#1-375">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Compute the various commitments.</p>
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.StateCommitmentTree.html" title="struct mp_starknet::crypto::commitment::StateCommitmentTree">StateCommitmentTree</a></div><div class="desc docblock-short">A Patricia Merkle tree with height 251 used to compute transaction and event commitments.</div></li></ul><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.calculate_class_commitment_leaf_hash.html" title="fn mp_starknet::crypto::commitment::calculate_class_commitment_leaf_hash">calculate_class_commitment_leaf_hash</a></div><div class="desc docblock-short">Calculate class commitment tree leaf hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_class_commitment_tree_root_hash.html" title="fn mp_starknet::crypto::commitment::calculate_class_commitment_tree_root_hash">calculate_class_commitment_tree_root_hash</a></div><div class="desc docblock-short">Calculate class commitment tree root hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_commitments.html" title="fn mp_starknet::crypto::commitment::calculate_commitments">calculate_commitments</a></div><div class="desc docblock-short">Calculate the transaction commitment, the event commitment and the event count.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_contract_state_hash.html" title="fn mp_starknet::crypto::commitment::calculate_contract_state_hash">calculate_contract_state_hash</a></div><div class="desc docblock-short">Calculates the contract state hash from its preimage.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_declare_tx_hash.html" title="fn mp_starknet::crypto::commitment::calculate_declare_tx_hash">calculate_declare_tx_hash</a></div><div class="desc docblock-short">Computes the transaction hash of a declare transaction.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_deploy_account_tx_hash.html" title="fn mp_starknet::crypto::commitment::calculate_deploy_account_tx_hash">calculate_deploy_account_tx_hash</a></div><div class="desc docblock-short">Computes the transaction hash of a deploy account transaction.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_event_commitment.html" title="fn mp_starknet::crypto::commitment::calculate_event_commitment">calculate_event_commitment</a></div><div class="desc docblock-short">Calculate transaction commitment hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_event_hash.html" title="fn mp_starknet::crypto::commitment::calculate_event_hash">calculate_event_hash</a></div><div class="desc docblock-short">Calculate the hash of an event.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_invoke_tx_hash.html" title="fn mp_starknet::crypto::commitment::calculate_invoke_tx_hash">calculate_invoke_tx_hash</a></div><div class="desc docblock-short">Computes the transaction hash of an invoke transaction.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_transaction_commitment.html" title="fn mp_starknet::crypto::commitment::calculate_transaction_commitment">calculate_transaction_commitment</a></div><div class="desc docblock-short">Calculate transaction commitment hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_transaction_hash_common.html" title="fn mp_starknet::crypto::commitment::calculate_transaction_hash_common">calculate_transaction_hash_common</a></div><div class="desc docblock-short">Computes the transaction hash using a hash function of type T</div></li></ul><h2 id="types" class="small-section-header"><a href="#types">Type Definitions</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.ClassCommitmentLeafHash.html" title="type mp_starknet::crypto::commitment::ClassCommitmentLeafHash">ClassCommitmentLeafHash</a></div><div class="desc docblock-short">Hash of the leaf of the ClassCommitment tree</div></li></ul></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="mp_starknet" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0-nightly (34e6673a0 2023-02-25)" data-search-js="search-14421e1532aead08.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.StateCommitmentTree.html" title="struct mp_starknet::crypto::commitment::StateCommitmentTree">StateCommitmentTree</a></div><div class="desc docblock-short">A Patricia Merkle tree with height 251 used to compute contract and class tree commitments.</div></li></ul><h2 id="functions" class="small-section-header"><a href="#functions">Functions</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.calculate_class_commitment_leaf_hash.html" title="fn mp_starknet::crypto::commitment::calculate_class_commitment_leaf_hash">calculate_class_commitment_leaf_hash</a></div><div class="desc docblock-short">Calculate class commitment tree leaf hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_class_commitment_tree_root_hash.html" title="fn mp_starknet::crypto::commitment::calculate_class_commitment_tree_root_hash">calculate_class_commitment_tree_root_hash</a></div><div class="desc docblock-short">Calculate class commitment tree root hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_commitments.html" title="fn mp_starknet::crypto::commitment::calculate_commitments">calculate_commitments</a></div><div class="desc docblock-short">Calculate the transaction commitment, the event commitment and the event count.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_contract_state_hash.html" title="fn mp_starknet::crypto::commitment::calculate_contract_state_hash">calculate_contract_state_hash</a></div><div class="desc docblock-short">Calculates the contract state hash from its preimage.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_declare_tx_hash.html" title="fn mp_starknet::crypto::commitment::calculate_declare_tx_hash">calculate_declare_tx_hash</a></div><div class="desc docblock-short">Computes the transaction hash of a declare transaction.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_deploy_account_tx_hash.html" title="fn mp_starknet::crypto::commitment::calculate_deploy_account_tx_hash">calculate_deploy_account_tx_hash</a></div><div class="desc docblock-short">Computes the transaction hash of a deploy account transaction.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_event_commitment.html" title="fn mp_starknet::crypto::commitment::calculate_event_commitment">calculate_event_commitment</a></div><div class="desc docblock-short">Calculate transaction commitment hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_event_hash.html" title="fn mp_starknet::crypto::commitment::calculate_event_hash">calculate_event_hash</a></div><div class="desc docblock-short">Calculate the hash of an event.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_invoke_tx_hash.html" title="fn mp_starknet::crypto::commitment::calculate_invoke_tx_hash">calculate_invoke_tx_hash</a></div><div class="desc docblock-short">Computes the transaction hash of an invoke transaction.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_transaction_commitment.html" title="fn mp_starknet::crypto::commitment::calculate_transaction_commitment">calculate_transaction_commitment</a></div><div class="desc docblock-short">Calculate transaction commitment hash value.</div></li><li><div class="item-name"><a class="fn" href="fn.calculate_transaction_hash_common.html" title="fn mp_starknet::crypto::commitment::calculate_transaction_hash_common">calculate_transaction_hash_common</a></div><div class="desc docblock-short">Computes the transaction hash using a hash function of type T</div></li></ul><h2 id="types" class="small-section-header"><a href="#types">Type Definitions</a></h2><ul class="item-table"><li><div class="item-name"><a class="type" href="type.ClassCommitmentLeafHash.html" title="type mp_starknet::crypto::commitment::ClassCommitmentLeafHash">ClassCommitmentLeafHash</a></div><div class="desc docblock-short">Hash of the leaf of the ClassCommitment tree</div></li></ul></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="mp_starknet" data-themes="" data-resource-suffix="" data-rustdoc-version="1.69.0-nightly (34e6673a0 2023-02-25)" data-search-js="search-14421e1532aead08.js" data-settings-js="settings-f0c5c39777a9a2f6.js" data-settings-css="settings-0bcba95ff279c1db.css" ></div></body></html>
Loading

0 comments on commit c30f8b1

Please sign in to comment.