![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
blind-signature
Advanced tools
Node.js implementation of Chaum's blind signatures
This is based on the JSBN library for BigNumbers. It doesn't handle the generation of RSA keys but expects them in the normal format of:
export interface PublicRSAKey {
n: BigInteger,
e: number
}
export interface PrivateRSAKey extends PublicRSAKey {
p: BigInteger
q: BigInteger
d: BigInteger
dmp1: BigInteger
dmq1: BigInteger
coeff: BigInteger
}
The RSA key you use for this library should be used only for these blind signatures! If you use it for encryption or other signatures too, it opens up serious vulnerabilities. This is a pretty low level blind signatures library so make sure you understand the underlying cryptography and the potential vulnerabilities.
Messages are hashed before they are signed. For maximum safety, a hash function
is used with the same bitlength as the RSA key's modulus. We accomplish this by
hmac'ing the message with 1
, then 2
, and so on, concatenating the outputs
together until we get the desired length.
import {
hashAndBlindMessage,
signBlindedMessageHash,
unblindSignature,
verifySignature
} from 'blind-signature'
// this happens on client
const publicKey = // ...
const message = 'hello world'
const { blindedMessageHash, blindingFactor } =
hashAndBlindMessage(publicKey, message)
// this happens on server/signer
const privateKey = // ...
const blindSignature =
signBlindedMessageHash(privateKey, blindedMessageHash)
// this happens on client
const signature =
unblindSignature(publicKey, blindSignature, blindingFactor)
// verification can be done by the signer or client at any time
const isVerified = verifySignature(publicKey, message, signature)
FAQs
Implementation of Chaum's blind signatures
The npm package blind-signature receives a total of 2 weekly downloads. As such, blind-signature popularity was classified as not popular.
We found that blind-signature demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.