in src/ristretto255.js [831:835]
function sub(p, q) { const [P, Q] = deserializePandQ(p, q); lowlevelSub(P, Q); // P = P - Q return toBytes(P); }