pub struct LookupCfg {
pub bucket_url: String,
pub api_key: String,
pub cap_url: String,
pub subtree_height: usize,
pub cap_height: usize,
pub tree_height: usize,
}Expand description
A configuration for performing Merkle proof lookups using Blyss.
Typically loaded with from_url or from_json.
Fields§
§bucket_url: StringThe URL of the Blyss bucket containing the subtrees and leaf nodes.
api_key: StringThe API key to optionally use when accessing the bucket. Can be empty.
cap_url: StringThe URL of the JSON file containing the cap of the Merkle tree.
subtree_height: usizeThe height of the subtrees stored in the bucket.
cap_height: usizeThe height of the cap of the Merkle tree.
tree_height: usizeThe height of the full Merkle tree.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LookupCfg
impl<'de> Deserialize<'de> for LookupCfg
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LookupCfg
impl RefUnwindSafe for LookupCfg
impl Send for LookupCfg
impl Sync for LookupCfg
impl Unpin for LookupCfg
impl UnwindSafe for LookupCfg
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more