@@ -12,22 +12,19 @@ const NATIVE_INSTANCE_COUNT: usize = 7;
1212/// Number of public instance scalars for the SHA-256 value commitment scheme.
1313const SHA256_INSTANCE_COUNT : usize = 13 ;
1414
15- pub ( crate ) fn base_from_repr ( bytes : [ u8 ; 32 ] ) -> Result < pallas:: Base , ClaimProofError > {
15+ pub fn base_from_repr ( bytes : [ u8 ; 32 ] ) -> Result < pallas:: Base , ClaimProofError > {
1616 Option :: < pallas:: Base > :: from ( pallas:: Base :: from_repr ( bytes) )
1717 . ok_or ( ClaimProofError :: NonCanonicalBase )
1818}
1919
2020#[ cfg( feature = "prove" ) ]
21- pub ( crate ) fn scalar_from_repr ( bytes : [ u8 ; 32 ] ) -> Result < pallas:: Scalar , ClaimProofError > {
21+ pub fn scalar_from_repr ( bytes : [ u8 ; 32 ] ) -> Result < pallas:: Scalar , ClaimProofError > {
2222 Option :: < pallas:: Scalar > :: from ( pallas:: Scalar :: from_repr ( bytes) )
2323 . ok_or ( ClaimProofError :: NonCanonicalScalar )
2424}
2525
2626#[ cfg( feature = "prove" ) ]
27- pub ( crate ) fn target_id_slice (
28- target_id : & [ u8 ; 32 ] ,
29- target_id_len : u8 ,
30- ) -> Result < & [ u8 ] , ClaimProofError > {
27+ pub fn target_id_slice ( target_id : & [ u8 ; 32 ] , target_id_len : u8 ) -> Result < & [ u8 ] , ClaimProofError > {
3128 let target = target_id
3229 . get ( ..usize:: from ( target_id_len) )
3330 . ok_or ( ClaimProofError :: InvalidTargetIdLength ) ?;
@@ -36,7 +33,7 @@ pub(crate) fn target_id_slice(
3633}
3734
3835#[ cfg( feature = "prove" ) ]
39- pub ( crate ) fn point_from_bytes ( bytes : [ u8 ; 32 ] ) -> Result < pallas:: Affine , ClaimProofError > {
36+ pub fn point_from_bytes ( bytes : [ u8 ; 32 ] ) -> Result < pallas:: Affine , ClaimProofError > {
4037 let p = Option :: < pallas:: Point > :: from ( pallas:: Point :: from_bytes ( & bytes) )
4138 . ok_or ( ClaimProofError :: InvalidPoint ) ?;
4239 if bool:: from ( p. is_identity ( ) ) {
@@ -57,7 +54,7 @@ fn coords_or_zero(p: pallas::Point) -> (pallas::Base, pallas::Base) {
5754 }
5855}
5956
60- pub ( crate ) fn to_instance (
57+ pub fn to_instance (
6158 note_commitment_root : [ u8 ; 32 ] ,
6259 cv : Option < [ u8 ; 32 ] > ,
6360 cv_sha256 : Option < [ u8 ; 32 ] > ,
0 commit comments