gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated (f09a502fe -> 0d786a787)


From: gnunet
Subject: [taler-wallet-core] branch master updated (f09a502fe -> 0d786a787)
Date: Wed, 16 Nov 2022 13:03:26 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a change to branch master
in repository wallet-core.

    from f09a502fe fix URLSearchParams and HTTP typing issue
     new f441f16e3 -text
     new 0d786a787 -don't make crypto function used in tests only public

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 packages/taler-util/src/taler-crypto.test.ts | 10 +++++++++-
 packages/taler-util/src/taler-crypto.ts      | 11 +----------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/packages/taler-util/src/taler-crypto.test.ts 
b/packages/taler-util/src/taler-crypto.test.ts
index e90516cc4..913bf4348 100644
--- a/packages/taler-util/src/taler-crypto.test.ts
+++ b/packages/taler-util/src/taler-crypto.test.ts
@@ -31,7 +31,6 @@ import {
   csBlind,
   csUnblind,
   csVerify,
-  scalarMultBase25519,
   deriveSecrets,
   calcRBlind,
   Edx25519,
@@ -50,6 +49,15 @@ import bigint from "big-integer";
 import { AssertionError } from "assert";
 import BigInteger from "big-integer";
 
+/**
+ * Used for testing, simple scalar multiplication with base point of Ed25519
+ * @param s scalar
+ * @returns new point sG
+ */
+async function scalarMultBase25519(s: Uint8Array): Promise<Uint8Array> {
+  return nacl.crypto_scalarmult_ed25519_base_noclamp(s);
+}
+
 test("encoding", (t) => {
   const s = "Hello, World";
   const encStr = encodeCrock(stringToBytes(s));
diff --git a/packages/taler-util/src/taler-crypto.ts 
b/packages/taler-util/src/taler-crypto.ts
index 6ec50f4d2..8762bd8a1 100644
--- a/packages/taler-util/src/taler-crypto.ts
+++ b/packages/taler-util/src/taler-crypto.ts
@@ -15,7 +15,7 @@
  */
 
 /**
- * Native implementation of GNU Taler crypto.
+ * Native implementation of GNU Taler crypto primitives.
  */
 
 /**
@@ -430,15 +430,6 @@ export function deriveSecrets(bseed: Uint8Array): 
CsBlindingSecrets {
   return secrets;
 }
 
-/**
- * Used for testing, simple scalar multiplication with base point of Ed25519
- * @param s scalar
- * @returns new point sG
- */
-export async function scalarMultBase25519(s: Uint8Array): Promise<Uint8Array> {
-  return nacl.crypto_scalarmult_ed25519_base_noclamp(s);
-}
-
 /**
  * calculation of the blinded public point R in CS
  * @param csPub denomination publik key

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]