code: function generateKeyPair() {
      const plain = nacl.sign.keyPair();
      const num = nacl.randomBytes(8);
  
      const publicKey = new Uint8Array(2 + 8 + 32);
      const secretKey = new Uint8Array(2 + 2 + 4 + 16 + 8 + 8 + 64);
  
      publicKey[0] = secretKey[0] = 69; // 'E'
      publicKey[1] = secretKey[1] = 100; // 'd'
  
      secretKey[2] = 66; // 'B'
      secretKey[3] = 75; // 'K'
  
      publicKey.set(num, 2);
      secretKey.set(num, 32);
  
      publicKey.set(plain.publicKey, 10);
      secretKey.set(plain.secretKey, 40);
  
      const checksum = nacl.hash(plain.secretKey).subarray(0, 8);
      secretKey.set(checksum, 24)
  
      return {
          publicKey: Buffer.from(publicKey.buffer).toString('base64'),
          secretKey: Buffer.from(secretKey.buffer).toString('base64')
      };
  }
docs: Generates a new random signing key pair.
  Returns {
  publicKey: string // base64-encoded public key in signify format
  secretKey: string // base64-encoded secret key in format suitable for sign()
  }