Skip to content

Instantly share code, notes, and snippets.

View neuodev's full-sized avatar
🎯
Focusing

Ahmed Ibrahim neuodev

🎯
Focusing
View GitHub Profile
@neuodev
neuodev / eddsa.js
Last active March 16, 2023 14:15
EdDSA on Baby JubJub Elliptic Curve using Poseidon hash
const { buildEddsa } = require("circomlibjs"); // ^0.1.7
const { Scalar } = require("ffjavascript"); // ^0.2.57
async function main() {
const eddsa = await buildEddsa();
// EdDSA for KYC
const poseidonHash = eddsa.poseidon([
BigInt("0x830a030549a7E18db3FffE449ECd44A2D51436D2"), // EoA
BigInt(631040090), // KYC rules

What is this?

This cheet sheat is made by Ahmed Ibrahim ❤️

This Keyword

This cheet sheat summaries the key points from my YouTube video about the this keyword