@@ -118,7 +118,7 @@ where
118118 ) ;
119119
120120 // Reads human address from source_ptr and checks if it is valid.
121- // Returns 0 on if the input is valid. Returns a non-zero memory location to a Region containing an UTF-8 encoded error string for invalid inputs.
121+ // Returns 0 if the input is valid. Returns a non-zero memory location to a Region containing an UTF-8 encoded error string for invalid inputs.
122122 // Ownership of the input pointer is not transferred to the host.
123123 env_imports. insert (
124124 "addr_validate" ,
@@ -143,15 +143,15 @@ where
143143 Function :: new_typed_with_env ( & mut store, & fe, do_addr_humanize) ,
144144 ) ;
145145
146- // Reads a list of points on of the subgroup G1 on the BLS12-381 curve and aggregates them down to a single element.
146+ // Reads a list of points of the subgroup G1 on the BLS12-381 curve and aggregates them down to a single element.
147147 // The "out_ptr" parameter has to be a pointer to a region with the sufficient size to fit an element of G1 (48 bytes).
148148 // Returns a u32 as a result. 0 signifies success, anything else may be converted into a `CryptoError`.
149149 env_imports. insert (
150150 "bls12_381_aggregate_g1" ,
151151 Function :: new_typed_with_env ( & mut store, & fe, do_bls12_381_aggregate_g1) ,
152152 ) ;
153153
154- // Reads a list of points on of the subgroup G2 on the BLS12-381 curve and aggregates them down to a single element.
154+ // Reads a list of points of the subgroup G2 on the BLS12-381 curve and aggregates them down to a single element.
155155 // The "out_ptr" parameter has to be a pointer to a region with the sufficient size to fit an element of G2 (96 bytes).
156156 // Returns a u32 as a result. 0 signifies success, anything else may be converted into a `CryptoError`.
157157 env_imports. insert (
0 commit comments