Galxe Passport is the most trusted Web3 identity service for proof of personhood
salt
from a crypto-safe random number generatoruser_address
, salt
, passport_data
) into canon_json_str
, a canonical JSON string, then compute its hash using hash = keccak256(cannon_json_str)
signature = ECDSA.sign(witness_priv_key, hash)
signed_cred = json.Marshal(SignedCred{Body: canon_json_str, Signature: signature})
signed_cred
to frontendAES-256-GCM
. Example code: