const {ed25519} = require('@noble/curves/ed25519');
const sign = (
message,
secretKey
) => ed25519.sign(message, secretKey.slice(0, 32));
const transaction = new VersionedTransaction(message);
const extraSignature = sign(transaction.message.serialize(), mintKey.secretKey);
transaction.addSignature(mintKey.publicKey, extraSignature);
transaction.sign([wallet]);