Skip to content

Commit

Permalink
release 0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
ashWhiteHat committed Aug 22, 2023
1 parent 5b18cdb commit 4613b28
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 31 deletions.
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@ authors = [
]
name = "she-elgamal"
description = 'lifted elgamal encryption implementation'
version = "0.0.10"
version = "0.0.11"
edition = "2021"
license = "Apache-2.0"
homepage = 'https://github.com/KogarashiNetwork/Kogarashi/'
repository = 'https://github.com/KogarashiNetwork/Kogarashi/'
readme = 'README.md'
categories = ["cryptography"]
keywords = ["zkp", "blockchain", "elliptic-curve"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs", "--html-in-header", "katex-header.html"]

[dependencies]
zkstd = { version = "0.0.10", default-features = false }
jub-jub = { version = "0.0.10", default-features = false }
ec-pairing = { version = "0.0.10", default-features = false }
zkstd = { version = "0.0.12", default-features = false }
jub-jub = { version = "0.0.14", default-features = false }
ec-pairing = { version = "0.0.11", default-features = false }
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.102", default-features = false, features = ["derive"] }
num-traits = { version = "0.2.15", default-features = false }
Expand Down
15 changes: 15 additions & 0 deletions katex-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.css" integrity="sha384-9eLZqc9ds8eNjO3TmqPeYcDj8n+Qfa4nuSiGYa6DjLNcv9BtN69ZIulL9+8CqC9Y" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/katex.min.js" integrity="sha384-K3vbOmF2BtaVai+Qk37uypf7VrgBubhQreNQe9aGsz9lB63dIFiQVlJbr92dw2Lx" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/auto-render.min.js" integrity="sha384-kmZOZB5ObwgQnS/DuDg6TScgOiWWBiVt0plIRkZCmE6rDZGrEOQeHM5PcHi+nyqe" crossorigin="anonymous"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
renderMathInElement(document.body, {
delimiters: [
{left: "$$", right: "$$", display: true},
{left: "\\(", right: "\\)", display: false},
{left: "$", right: "$", display: false},
{left: "\\[", right: "\\]", display: true}
]
});
});
</script>
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ use parity_scale_codec::{Decode, Encode};
use serde::{Deserialize, Serialize};
use zkstd::common::{CurveGroup, Pairing};

/// Number encrypted by ElGamal encryption
/// ElGamal encryption number encrypted supports additive homomorphism.
/// allows perform Enc(a) + Enc(b) = Enc(a + b)
#[derive(Debug, Clone, Copy, Encode, Decode, PartialEq, Eq, Deserialize, Serialize)]
pub struct EncryptedNumber {
s: JubjubAffine,
Expand Down

0 comments on commit 4613b28

Please sign in to comment.