Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion rs_zktrie/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ pub struct Node<H: Hashable> {
pub child_right: Option<H>,
// key is the node's key stored in a leaf node.
pub node_key: H,
// value_preimage can store at most 256 byte32 as fields (represnted by BIG-ENDIAN integer)
// value_preimage can store at most 256 byte32 as fields (represented by BIG-ENDIAN integer)
// and the first 24 can be compressed (each bytes32 consider as 2 fields), in hashing the compressed
// elemments would be calculated first
pub value_preimage: Vec<[u8; 32]>,
Expand Down
2 changes: 1 addition & 1 deletion src/rs_lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl ZkTrieNode {
self.trie_node
.clone()
.node_hash()
.expect("has caluclated")
.expect("has calculated")
.as_ref()
.try_into()
.expect("same length")
Expand Down
2 changes: 1 addition & 1 deletion trie/zk_trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func (t *ZkTrie) Copy() *ZkTrie {
}
}

// Prove is a simlified calling of ProveWithDeletion
// Prove is a simplified calling of ProveWithDeletion
func (t *ZkTrie) Prove(key []byte, fromLevel uint, writeNode func(*Node) error) error {
return t.ProveWithDeletion(key, fromLevel, writeNode, nil)
}
Expand Down
2 changes: 1 addition & 1 deletion trie/zk_trie_node.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ type Node struct {
ChildR *zkt.Hash
// NodeKey is the node's key stored in a leaf node.
NodeKey *zkt.Hash
// ValuePreimage can store at most 256 byte32 as fields (represnted by BIG-ENDIAN integer)
// ValuePreimage can store at most 256 byte32 as fields (represented by BIG-ENDIAN integer)
// and the first 24 can be compressed (each bytes32 consider as 2 fields), in hashing the compressed
// elemments would be calculated first
ValuePreimage []zkt.Byte32
Expand Down