From 870cee750e93597b8d428cae146be18f9f326abc Mon Sep 17 00:00:00 2001 From: Leo Alt Date: Mon, 6 Feb 2023 11:43:06 +0100 Subject: [PATCH 1/2] Make fields of PrivateKey pub --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 0039b7d..fe84550 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -268,7 +268,7 @@ pub fn decompress_signature(b: &[u8; 64]) -> Result { } pub struct PrivateKey { - key: [u8; 32], + pub key: [u8; 32], } impl PrivateKey { From 5365144e82efa0ee74802672bb842caad74113d8 Mon Sep 17 00:00:00 2001 From: bing Date: Thu, 4 May 2023 15:43:00 +0000 Subject: [PATCH 2/2] fix link to addition-add-2008-bbjlp --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index fe84550..7157258 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -86,7 +86,7 @@ impl PointProjective { #[allow(clippy::many_single_char_names)] pub fn add(&self, q: &PointProjective) -> PointProjective { - // add-2008-bbjlp https://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html#doubling-dbl-2008-bbjlp + // add-2008-bbjlp https://hyperelliptic.org/EFD/g1p/auto-twisted-projective.html#addition-add-2008-bbjlp let mut a = self.z; a.mul_assign(&q.z); let mut b = a;