privacy-scaling-explorations / zk-kit

A monorepo of reusable libraries for zero-knowledge technologies.
https://zkkit.pse.dev
MIT License
291 stars 79 forks source link

feat(eddsa-poseidon): add packSignature and unpackSignature to eddsa-poseidon #201

Closed artwyman closed 8 months ago

artwyman commented 8 months ago

Description

Signatures are packed into 64 bytes using the same format as circomlibjs. Unit tests confirm the compatibility of output.

Other information

There's a TODO in place for one more unit test I'd like to add after #200 lands and fixes the ability to accept signatures in numeric form.

The unpackSignature function returns a Signature<string>. If #199 gets accepted and implemented, it should change to return Signature<bigint>.

artwyman commented 8 months ago

@artwyman Do you want to wait for #199 before merging this?

No, go ahead and merge this one and I'll build my PR on top of it.