@circom:eddsa.pub
Derive the EdDSA public key (a Baby Jubjub point, as an [x y] pair) from a secret, the circom-ecosystem signature scheme used by Semaphore and MACI identities. The secret is sensitive: anything bound to a variable can be printed.
⚗️ Experimental — available at next.evmcrispr.com.
Returns: array
Syntax
Section titled “Syntax”@circom:eddsa.pub(secret)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
secret | string | Secret seed (any non-empty string or hex value) |
Examples
Section titled “Examples”# Derive an identity public key from a secretset [$x $y] @circom:eddsa.pub("my secret seed")print "Pubkey:" $x $y- EdDSA over Baby Jubjub with Poseidon hashing — the signature scheme circom circuits verify natively (circomlib
EdDSAPoseidonVerifier), used by Semaphore and MACI identities. - The secret is sensitive. Anything bound to an EVML variable can be printed or shared with a script; derive secrets from throwaway seeds when prototyping, and let protocol modules handle real identity custody.