Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJScrypto hashing signingSingle-choice MCQ

You generate an Ed25519 key pair and try to sign with the streaming crypto.createSign('SHA256') API. What happens?

const { privateKey } = crypto.generateKeyPairSync('ed25519'); const s = crypto.createSign('SHA256'); s.update('data'); s.end(); const sig = s.sign(privateKey);