Compare commits
No commits in common. "f6b8a772770f492221dc99281016d7090f981e63" and "33085a46bff80d63a2fb81a0fa2db705765c9ee0" have entirely different histories.
f6b8a77277
...
33085a46bf
3 changed files with 1 additions and 24 deletions
|
@ -36,8 +36,7 @@ use incrementalmerkletree::{
|
|||
frontier::{
|
||||
CommitmentTree,
|
||||
Frontier,
|
||||
NonEmptyFrontier,
|
||||
PathFiller
|
||||
NonEmptyFrontier
|
||||
},
|
||||
witness::IncrementalWitness
|
||||
};
|
||||
|
@ -1619,17 +1618,6 @@ pub extern "C" fn rust_wrapper_combine_orchard_nodes(
|
|||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_wrapper_get_orchard_root(
|
||||
level: u8,
|
||||
out: *mut u8,
|
||||
out_len: &mut usize
|
||||
){
|
||||
let tree: CommitmentTree<MerkleHashOrchard, 32> = CommitmentTree::empty();
|
||||
let root = tree.root_at_depth(level, PathFiller::empty());
|
||||
let h = Hhex { bytes: root.to_bytes().to_vec() };
|
||||
marshall_to_haskell_var(&h, out, out_len, RW);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
pub extern "C" fn rust_wrapper_read_orchard_commitment_tree(
|
||||
|
|
|
@ -276,13 +276,6 @@ import ZcashHaskell.Types
|
|||
-> `()'
|
||||
#}
|
||||
|
||||
{# fun unsafe rust_wrapper_get_orchard_root as rustWrapperGetOrchardRootTest
|
||||
{ `Int8'
|
||||
, getVarBuffer `Buffer HexString'&
|
||||
}
|
||||
-> `()'
|
||||
#}
|
||||
|
||||
{# fun unsafe rust_wrapper_read_orchard_commitment_tree as rustWrapperReadOrchardCommitmentTree
|
||||
{ toBorshVar* `OrchardFrontier'&
|
||||
, toBorshVar* `BS.ByteString'&
|
||||
|
|
|
@ -218,10 +218,6 @@ getOrchardWitnessAnchor wit =
|
|||
withPureBorshVarBuffer $
|
||||
rustWrapperReadOrchardWitnessAnchor $ toBytes $ orchWit wit
|
||||
|
||||
getOrchardRootTest :: Int -> HexString
|
||||
getOrchardRootTest level =
|
||||
withPureBorshVarBuffer $ rustWrapperGetOrchardRootTest $ fromIntegral level
|
||||
|
||||
-- | Update a Orchard commitment tree
|
||||
updateOrchardCommitmentTree ::
|
||||
OrchardFrontier -- ^ the base tree
|
||||
|
|
Loading…
Reference in a new issue