Repository: ergoplatform/sigma-rust (language: rust)

Issue:
No way to create ConstantStore value
I cannot find any mean to create `SigmaByteReader` as `ergotree_ir::serialization::constant_store` module is private.

Intended use case:
``` rust
let cursor = Cursor::new(block);
let peekable = PeekableReader::new(cursor);
let reader = SigmaByteReader::new(peekable, ConstantStore::empty());
```


Discussion / hints:
Thanks! Yes, `ConstantStore` should be public. PR is incoming. 

Fix patch:
diff --git a/ergotree-ir/src/serialization.rs b/ergotree-ir/src/serialization.rs
index 75f2ffa99..6e0fc0657 100644
--- a/ergotree-ir/src/serialization.rs
+++ b/ergotree-ir/src/serialization.rs
@@ -11,10 +11,10 @@ mod property_call;
 mod sigmaboolean;
 mod val_def_type_store;
 
-pub(crate) mod constant_store;
 pub(crate) mod op_code;
 pub(crate) mod types;
 
+pub mod constant_store;
 pub mod sigma_byte_reader;
 pub mod sigma_byte_writer;
 


Test patch: